main.c

来自「这是linux环境下的DCT变换的程序」· C语言 代码 · 共 46 行

C
46
字号
/*******************************************************************************
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   : tr8x8dct.c
Description : This is the test file for the testing of functionality of
              of forward 8x8 DCT.
*******************************************************************************/
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include "tr8x8dct.h"
//#include "mds_def.h"

extern void ff_bfin_r8x8dct (fract16 *s, fract16 *coeff, fract16 *temp, fract16 *coeff1);
/*int error_flag = 0;
void (*f1)();
int cycle_count[10];

void _r8x8dct();*/

void main (void)
{
    int n, i, j;

   // f1 = _r8x8dct;      

    n = 8;

    /*cycle_count[1] = Compute_Cycle_Count(in, coeff,temp,coeff1);*/
    
    ff_bfin_r8x8dct (in, coeff,temp,coeff1);                          
    //printf("cycle_count[1]=%d\n",cycle_count[1]);
    for (i = 0; i < 8; i++)
    {
        for (j = 0; j < 8; j++)
        printf("%d ",in[j+i*8]);
        printf("\n");
    }
}

⌨️ 快捷键说明

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