mpeg.h 1.09 KB

typedef struct mpeg_stream_struct
    {

				/* Sequence Header Fields */
	int pic_xsize,
	    pic_ysize,
	    pic_PAR,
	    pic_rate,
	    bit_rate,
	    vbv_size,
	    const_flag,
	    iqmat_flag,
	    niqmat_flag,

				/* GOP Header Fields */
	    time_code,
	    closed_gop,
	    broken_link,

				/* Picture Header Fields */
	    temporal_reference,
	    pic_type,
	    vbv_delay,
	    for_full_pel,
	    for_fcode,
	    bak_full_pel,
	    bak_fcode,

	    for_clip_bits,
	    bak_clip_bits,
	    for_rem_bits,
	    bak_rem_bits,
	    for_shift_bits,
	    bak_shift_bits,

				/* Slice Header Fields */
	    quant;

				/* Quant Matrix */
	int iq_mat_new[64],
	    iq_mat[64];

	int niq_mat_new[64],
	    niq_mat[64];


	/* Parsing State */

	int saved_num_zero_bits;
	int saved_start_code;
	int search_startcode;

	int mb_width;

	int picnum_base,
	    picnum_max;

	/* Token Output */

	FILE *token_file;
	char *token_filename;

	/* Bit-wise I/O */

	int in_buf_len,
	    in_cur_bits,
	    in_cur_used,
	    in_cur_word;
	BIT_BUFTYPE *in_bit_buf;
	FILE *huf_file;
	char *huf_filename;
    
    } MPEG_Stream;