dctc.h

来自「arm ads1.2 with crack.rar」· C头文件 代码 · 共 36 行

H
36
字号
/*
 * Discrete Cosine Transform C definitions and prototypes
 * Copyright (C) ARM Limited 1998-1999. All rights reserved.
 */

#ifndef _DCT_C_
#define _DCT_C_

#ifndef PIMI
	#define PIMI	3.14159265358
	/* definition is platform independent, always same value, used for PI */
#endif	/* PIMI */

#ifndef PIMD
	#define PIMD	4.0*atan( 1.0 )
	/* machine dependent difinition */
#endif	/* PIMD */

#ifndef	PI
	#define	PI	PIMI
#endif	/* PI */

#ifndef BLOCKSIZE
	#define	BLOCKSIZE	8
#endif	/* BLOCKSIZE */

typedef int		DCTArray[ BLOCKSIZE ][ BLOCKSIZE ] ;
/* define the array that holds a block of data to be DCT'd */
typedef double	DCTCosArray[ BLOCKSIZE ][ BLOCKSIZE ] ;
/* define the array that will hold the cosine lookup table for real DCT */

unsigned int DCTCosArrayInit( DCTCosArray dctCosArray ) ;
unsigned int FDCTReal( DCTCosArray dctCosArray, DCTArray dctIn, DCTArray dctOut ) ;
unsigned int RDCTReal( DCTCosArray dctCosArray, DCTArray dctIn, DCTArray dctOut ) ;

#endif	/* _DCT_C_ */

⌨️ 快捷键说明

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