📄 tr8x8invdct_ieee.h
字号:
/*****************************************************************************
File name: tr8x8invdct.h
Description : This header file contains the data for the testing of inverse
DCT function. These data have been generated from Matlab.
***************************************************************************/
#include "mds_def.h"
#define PI 3.14159265358979
short zero_in = 0;
segment ("mydata1") fract16 in[64];
segment ("mydata3") fract16 temp[64];
segment ("mydata2") fract16 coeff[10] = {
0x5a82, // C4
0x5a82, // C4
0x30FC, //cos(3pi/8) C6
0x7642, //cos(pi/8) C2
0x18F9, //cos(7pi/16)
0x7D8A, //cos(pi/16)
0x471D, //cos(5pi/16)
0x6A6E, //cos(3pi/16)
0x18F9, //cos(7pi/16)
0x7D8A //cos(pi/16)
};
/*
fract16 coeff[] = {
0x18F8, //cos(7pi/16)
0x7D8A, //cos(pi/16)
0x30FB, //cos(3pi/8)
0x7641, //cos(pi/8)
0x6A6D, //cos(3pi/16)
0x471C, //cos(5pi/16)
0x5a82, //cos(pi/4) C4
0x5a82 //cos(pi/4) C4
};
*/
//In put for Impulse output.
fract16 Testcase2_In[64] = {
0x001f, 0x002c, 0x0029, 0x0025, 0x001f, 0x0019, 0x0011, 0x0008,
0x002c, 0x003d, 0x0039, 0x0033, 0x002c, 0x0022, 0x0017, 0x000c,
0x0029, 0x0039, 0x0036, 0x0030, 0x0029, 0x0020, 0x0016, 0x000b,
0x0025, 0x0033, 0x0030, 0x002c, 0x0025, 0x001d, 0x0014, 0x000a,
0x001f, 0x002c, 0x0029, 0x0025, 0x001f, 0x0019, 0x0011, 0x0008,
0x0019, 0x0022, 0x0020, 0x001d, 0x0019, 0x0013, 0x000d, 0x0006,
0x0011, 0x0017, 0x0016, 0x0014, 0x0011, 0x000d, 0x0009, 0x0004,
0x0008, 0x000c, 0x000b, 0x000a, 0x0008, 0x0006, 0x0004, 0x0002
};
//output corresponding to Testcase2_In .
fract16 Testcase2_out[64] = {
0x00ff, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
};
//Input for the DC output value of 25.
fract16 Testcase3_In[64] = {
0x00c8, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
};
//Output corresponding to input Testcase3_In .
fract16 Testcase3_out[64] = {
0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019,
0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019,
0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019,
0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019,
0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019,
0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019,
0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019,
0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019, 0x0019
};
//This is the mulifrequency input produced with the help of matlab.
//It is inverse of the test case 4 of forward DCT test case 4.
fract16 Testcase4_In[64] = {
0xfe2d, 0x028e, 0x0069, 0x001f, 0x0015, 0x0009, 0x0006, 0x0002,
0x028e, 0x0105, 0xff6d, 0x000c, 0xffe3, 0x0003, 0xfff7, 0x0000,
0x0069, 0xff6d, 0xffe9, 0xfff9, 0xfffc, 0xfffe, 0xffff, 0x0000,
0x001f, 0x000c, 0xfff9, 0x0000, 0xffff, 0x0000, 0x0000, 0x0000,
0x0015, 0xffe3, 0xfffc, 0xffff, 0x0000, 0x0000, 0x0000, 0x0000,
0x0009, 0x0003, 0xfffe, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0006, 0xfff7, 0xffff, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0002, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
};
//Output corresponding to Multifrequency input Testcase4_In.
fract16 Testcase4_out[64] = {
0x00c8, 0x00bf, 0x00a6, 0x007e, 0x004c, 0x0013, 0xffd9, 0xffa2,
0x00bf, 0x00a6, 0x007e, 0x004c, 0x0013, 0xffd9, 0xffa2, 0xff73,
0x00a6, 0x007e, 0x004c, 0x0013, 0xffd9, 0xffa2, 0xff73, 0xff50,
0x007e, 0x004c, 0x0013, 0xffd9, 0xffa2, 0xff73, 0xff50, 0xff3c,
0x004c, 0x0013, 0xffd9, 0xffa2, 0xff73, 0xff50, 0xff3c, 0xff39,
0x0013, 0xffd9, 0xffa2, 0xff73, 0xff50, 0xff3c, 0xff39, 0xff48,
0xffd9, 0xffa2, 0xff73, 0xff50, 0xff3c, 0xff39, 0xff48, 0xff66,
0xffa2, 0xff73, 0xff50, 0xff3c, 0xff39, 0xff48, 0xff66, 0xff91
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -