common.h
来自「关于DVD的MPEG2用的DSP代码,在DSP的实现MPEG的压缩,解压算法.」· C头文件 代码 · 共 35 行
H
35 行
/* General Definitions */
#define MPEG_AUDIO_ID 1
#define MONO 1
#define STEREO 2
#define CRC16_POLYNOMIAL 0x8005
#define SCALE_BLOCK 12
#define SCALE_RANGE 64
#define SBLIMIT 32
#define SIZE_ALLOC_0_1 44 // steps 2, bits 1, group 1,
#define SIZE_ALLOC_2_3 24 // quant 1,
//#define FRAME_SIZE_LIMIT 16129 // =1152*448/32+1
#define FRAME_SIZE_LIMIT 4096*2 //debug
//#define FRAME_SIZE_LIMIT 400*2 //debug
/* MPEG Header Definitions - Mode Values */
#define SYNC_WORD_MPG 0x0fff
#define MPG_MD_STEREO 0
#define MPG_MD_JOINT_STEREO 1
#define MPG_MD_DUAL_CHANNEL 2
#define MPG_MD_MONO 3
/* Error Flags */
#define F_SYNC_ERROR 1
#define F_CRC_ERROR 2
//#define F_LAYER_ERROR 3
#define F_LAYER_ERROR 4
#define F_INFO_ERROR 8
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?