?? main_zou.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 <stdio.h>
//#include <defBF533.h>
//#include "data_init.h"
//#include "data_init_h.h"
//#include "data_init_v.h"
//#include "data_init_hv.h"
//#include "data_init_64x32.h"
//#include "data_init_h_64x32.h"
//#include "data_init_v_64x32.h"
//#include "data_init_hv_64x32.h"
//#include "data_init_80x32.h"
//#include "data_init_h_80x32.h"
//#include "data_init_v_80x32.h"
//#include "data_init_hv_80x32.h"
#include "data_init_352x416.h"
#include "data_init_h_352x416.h"
#include "data_init_v_352x416.h"
#include "data_init_hv_352x416.h"
int error_flag = 0;
void (*f1)();
int cycle_count[2000];
//void _Compute_Cycle_Count();
void _fullinterpolate();
void main (void)
{
int n_hight,m_width, i, j,x,y,Width,Hight,Stride,rounding,cycles,Stride_Width,stride_add,H,W;
unsigned char *in_ptr,*h_ptr,*v_ptr,*hv_ptr;
in_ptr=&input[0][0];
h_ptr=&h_output[0][0];
v_ptr=&v_output[0][0];
hv_ptr=&hv_output[0][0];
f1 = _fullinterpolate;
n_hight =3;
m_width =352;
Width=352;
Hight=288;
Stride=416;
Stride_Width=Stride-Width;
stride_add=(n_hight-1)*Stride;
cycles=0;
H=Hight/n_hight;
W=Width/m_width;
for (y = 0,i=0; y <Hight; y += n_hight,i++)
{
for (x = 0,j=0; x < Width; x += m_width,j++)
{
/*cycle_count[j+i*W] = Compute_Cycle_Count(in_ptr, h_ptr,v_ptr,hv_ptr,m_width,n_hight,Stride);*/
/*cycle_count[1] = Compute_Cycle_Count(in_ptr, h_ptr,v_ptr,hv_ptr,m_width,n_hight,Stride); */
_fullinterpolate(in_ptr, h_ptr,v_ptr,hv_ptr,m_width,n_hight,Stride);
in_ptr += m_width;
h_ptr += m_width;
v_ptr += m_width;
hv_ptr += m_width;
}
h_ptr += Stride_Width;
v_ptr += Stride_Width;
hv_ptr += Stride_Width;
in_ptr += Stride_Width;
h_ptr += stride_add;
v_ptr += stride_add;
hv_ptr += stride_add;
in_ptr += stride_add;
}
/* for (i = 0; i <H;i++)
for (j = 0; j < W;j++)
cycles+=cycle_count[j+i*W];
printf("cycles=%d\n",cycles);*/
/* printf("h_output[368][304]=\n");
for (i = 0; i < 304; i++)
{
for (j = 0; j < 368; j++)
printf("%d ",h_output[i][j]);
printf("\n");
}
printf("v_output[368][304]=\n");
for (i = 0; i < 8; i++)
{
for (j = 0; j < 8; j++)
printf("%d ",v_output[i][j]);
printf("\n");
}
printf("hv_output[368][304]=\n");
for (i = 0; i < 8; i++)
{
for (j = 0; j < 8; j++)
printf("%d ",hv_output[i][j]);
printf("\n");
}*/
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -