📄 global.h
字号:
#ifndef _GLOBAL_
#define _GLOBAL_
#ifndef CHIP_6416
#define CHIP_6416 1
#endif
#include <stdio.h>
#include <stdlib.h>
#define BYTE unsigned char
#define int8 char
#define int16 short
#define int32 int
#define BOOL int16
#ifndef UINT32
#define UINT32 unsigned int
#endif
#ifndef TRUE
#define TRUE 1
#define FALSE 0
#endif
#ifndef INT_MAX
#define INT_MAX 2147483647
#endif
//For choosing different algorithms, spinous, 2005-01-29
#define DCT_PROCESS
//#define HISTOGRAM
//#define NOISE
//#define FILTER
#define SQCIF_LINES 96
#define SQCIF_PELS 128
#define CIF_LINES 288
#define CIF_PELS 352
#define QCIF_LINES (CIF_LINES / 2)
#define QCIF_PELS (CIF_PELS / 2)
#define SIF_LINES 192
#define SIF_PELS 256
//spinous, 2005-01-28
#define DATA_LINES CIF_LINES
#define DATA_PELS CIF_PELS
#define SF_SQCIF 1 // 001
#define SF_QCIF 2 // 010
#define SF_CIF 3 // 011
#define SF_SIF 7 // 111
#define MB_SECTION 6
#define MB_SIZE 16 // This should not be changed
#define MB_LENGTH (MB_SIZE*MB_SIZE/4)
#define YUV_SIZE (DATA_PELS * DATA_LINES * 3/2)
#define Y_SIZE DATA_PELS * DATA_LINES
//Modified by WXW, 2004/03/23
#define UV_SIZE DATA_PELS * DATA_LINES * 1/4
#define GOB_SIZE (DATA_PELS * MB_SIZE * 3/2)
// Used in MB of codec
extern int16 m_iBlock[MB_LENGTH*(MB_SECTION+1)]; // MB_SECTION + 1 is for idct use, look at idct_8x8.asm for full
// Used for DMA of codec
extern BYTE m_pGobY[GOB_SIZE]; // One Gob of Original Data
extern BYTE m_pGobY_DCT[GOB_SIZE]; // One Gob of DCT Data
extern BYTE *m_pGobCr, *m_pGobCb;
extern int CoefArray[16];//={1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};//{a[0][0],a[0][1],a[0][2]...a[3][2],a[3][3]}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -