📄 tc.h
字号:
/*
* Copyright (c) 1995,1996,1997, 1998, 1999 by Philips Semiconductors.
*
* +------------------------------------------------------------------+
* | This software is furnished under a license and may only be used |
* | and copied in accordance with the terms and conditions of such |
* | a license and with the inclusion of this copyright notice. This |
* | software or any other copies of this software may not be provided|
* | or otherwise made available to any other person. The ownership |
* | and title of this software is not transferred. |
* | |
* | The information in this software is subject to change without |
* | any prior notice and should not be construed as a commitment by |
* | Philips Semiconductors. |
* | |
* | this code and information is provided "as is" without any |
* | warranty of any kind, either expressed or implied, including but |
* | not limited to the implied warranties of merchantability and/or |
* | fitness for any particular purpose. |
* +------------------------------------------------------------------+
*
* Module name : tc.h 1.1
*
* Last update : 12:40:03 - 99/03/26
*
* Description :
*
* IDCT example program:
*
*
*/
#include "ops/custom_defs.h"
#define MAXVAL 256
typedef struct { double v[MAXVAL]; int dim[2]; } VALU;
typedef union {
int i;
double d;
VALU v;
char s[MAXVAL];
} YYSTYPE;
typedef struct {
int scale;
int width;
int randx;
int verbose;
int nblocks;
int range;
} STATEINFO;
#define MAXSTATE 10
STATEINFO *state;
STATEINFO sstk[MAXSTATE];
YYSTYPE yylval;
int varno;
#define MAXVAR 100
#define max(a,b) ((a>b)?a:b)
#define min(a,b) ((a<b)?a:b)
/* parameters for ieee test */
#define THR_PIXEL_PEAK_ERROR 1.0
#define THR_PIXEL_MEAN_SQUARE_ERROR 0.06
#define THR_OVERALL_MEAN_SQUARE_ERROR 0.02
#define THR_PIXEL_ABS_MEAN_ERROR 0.015
#define THR_OVERALL_ABS_MEAN_ERROR 0.0015
#define O_FWD 1
#define O_DIM1D 2
#define O_8POINT 4
#define O_SEP 8
#define O_4POINT 10
#define failed_p_m_s 1 /* a pixel m sq error is too large */
#define failed_o_m_s 2 /* an over. m sq error is too large */
#define failed_p_m_e 4 /* a pixel abs m error is too large */
#define failed_o_m_e 8 /* an over. abs m error is too large */
#define iserr(x) con[(exit_code&x)!=0]
double fabs();
void dct(double, double, int, int) ;
#ifdef __LITTLE_ENDIAN__
#define LITTLE_ENDIAN 1
#else
#define LITTLE_ENDIAN 0
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -