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

📄 main.c

📁 这是linux环境下的DCT变换的程序
💻 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   : 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -