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

📄 vars.h.bak

📁 代码实现了基于ARM7的MPEG-4视频解码器
💻 BAK
字号:
//******************************************
//File name:  vars.h
//Author:     Anna
//Date:  
//******************************************


/*** *** ***/

typedef struct {
	int val, len;
} tab_type;

/***/

typedef struct {
	int last;
	int run;
	int level;
} event_t;


typedef struct _ac_dc
{
	int dc_store_lum[2*DEC_MBR+1][2*DEC_MBC+1];
	int ac_left_lum[2*DEC_MBR+1][2*DEC_MBC+1][7];
	int ac_top_lum[2*DEC_MBR+1][2*DEC_MBC+1][7];

	int dc_store_chr[2][DEC_MBR+1][DEC_MBC+1];
	int ac_left_chr[2][DEC_MBR+1][DEC_MBC+1][7];
	int ac_top_chr[2][DEC_MBR+1][DEC_MBC+1][7];

	int predict_dir;

} ac_dc;

typedef struct 
{
	// bit input
	int infile;
	unsigned char rdbfr[2051];
	unsigned char *rdptr;
	unsigned char inbfr[16];
	int incnt;
	int bitcnt;
	int length;
	// block data
	short block[64];
} MP4_STREAM;



typedef struct _MP4_STATE_
{
	//mp4_header hdr;

	int	modemap[DEC_MBR+1][DEC_MBC+2];
	int	quant_store[DEC_MBR+1][DEC_MBC+1]; // [Review]
	int	MV[2][6][DEC_MBR+1][DEC_MBC+2];

	ac_dc coeff_pred;

	short iclp_data[1024];       
	short *iclp;
	unsigned char clp_data[1024];
	unsigned char *clp;


	int	horizontal_size;
	int	vertical_size;
	int	mb_width;
	int	mb_height;
	int	juice_hor;
	int	juice_ver;
	int	coded_picture_width;
	int	coded_picture_height;
	int	chrom_width;
	int	chrom_height;
	
	char *infilename;
	char * outputname;

} 
MP4_STATE;

typedef struct _MP4_TABLES_
{
	unsigned int zig_zag_scan[64];
	unsigned int alternate_vertical_scan[64];
	unsigned int alternate_horizontal_scan[64];
	unsigned int intra_quant_matrix[64];
	unsigned int nonintra_quant_matrix[64];

	unsigned int msk[33];

	int roundtab[16];
	int saiAcLeftIndex[8];
	int DQtab[4];

	tab_type MCBPCtabIntra[32];
	tab_type MCBPCtabInter[256];
	tab_type CBPYtab[48];

	tab_type MVtab0[14];
	tab_type MVtab1[96];
	tab_type MVtab2[124];

	tab_type tableB16_1[112];
	tab_type tableB16_2[96];
	tab_type tableB16_3[120];
	tab_type tableB17_1[112];
	tab_type tableB17_2[96];
	tab_type tableB17_3[120];
} 
MP4_TABLES;
    
    
    

⌨️ 快捷键说明

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