⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 twlift_inv_bior3_5_jpeg2000.c

📁 利用ADI公司 Blackfin dsp实现 jpeg2
💻 C
字号:
/*******************************************************************************
Copyright(c) 2000 - 2002 Analog Devices. All Rights Reserved.
Developed by Joint Development Software Application Team, IPDC, Bangalore, India
for Blackfin DSPs  ( Micro Signal Architecture 1.0 specification).

By using this module you agree to the terms of the Analog Devices License
Agreement for DSP Software. 
********************************************************************************
File name   : twlift_inv_bior3_5_JPEG2000.c
Description : This module tests wlift_inv_bior3_5_JPEG2000().
*******************************************************************************/
#include <stdio.h>
#include "testinp.h"
#include "testout.h"
/*Test a 1-D Wavelet 3.5 based inverse lifting scheme*/

int error_flag = 0;
void (*f1)();
int cycle_count[10];

void _wlift_inv_bior3_5_JPEG2000();

main()
{
    int i,N;

    f1 = _wlift_inv_bior3_5_JPEG2000;

//Test case : 1

    N=256;  /*Number of input samples to be lifted. Must be even*/  

    for(i=0;i<256;i++)
        im[i]=output[i];

    cycle_count[0] = Compute_Cycle_Count(im,N);
                      //This function inturn calls wlift_inv_bior3_5_JPEG2000()

    for(i=0;i<N;i++)
    {
        if(im[i]!=input[i])
        {
            error_flag = error_flag | 1;
            break;
        }
    }
    #ifdef PRINTF_SUPPORT
        if(error_flag & 1)
            printf("Test Case 1 failed\n");
        else
            printf("Test Case 1 passed\n");
    #endif
    
    printf("cycle_count[0]=%d\n",cycle_count[0]);
    
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -