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

📄 tr8x8dct.h

📁 dct,离散余弦变换汇编原代码
💻 H
字号:
/*****************************************************************************
Copyright (c) 2000 Analog Devices Inc. All rights reserved.
*****************************************************************************

File name: tr8x8dct.h

Description : This header file contains the data for the testing of forward
               DCT function. These data have been generated from Matlab.

Date : 9th Oct 2000.

***************************************************************************/

#include "mds_def.h"

fract16 coef[] = {

0x5a82,           //cos(pi/4)  C4
0x5a82,           //cos(pi/4)  C4

0x30FB,           //cos(3pi/8) 
0x7641,           //cos(pi/8)

0x18F8,           //cos(7pi/16)
0x7D8A,           //cos(pi/16)

0x471C,           //cos(5pi/16)
0x6A6D           //cos(3pi/16)

};


//Out put for Impulse Input
fract16 Testcase2_out[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 for DC input of value 25.

fract16 Testcase3_out[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

};

//This is the mulifrequency input produced with the help of following
//formula in matlab.

// N= 64;
//for i=1:n,
//   for j=1:n,
//      Testcase4_In(i,j)= 200*cos( ( 2*pi*(i-1)*3/N ) + ( 2*pi*(j-1)*3/N ));
//	end
//end


fract16 Testcase4_In[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

};

//Output corresponding to  Multifrequency input Testcase4_In.

fract16 Testcase4_out[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

};

⌨️ 快捷键说明

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