tok.h 885 Bytes
#define XSIZE    (352)
#define YSIZE    (240)
#define LUMSIZE  (XSIZE*YSIZE)
#define PICSIZE  (XSIZE*YSIZE*3/2)

typedef unsigned char *PIC;

typedef struct tok_context_struct
    {
	/*	Sequence Header Stuff	*/

	short xsize,
	      ysize,
	      bitrate_h,
	      bitrate_l,
	      bitbuf_h,
	      bitbuf_l,
	      pic_rate,
	      pic_format;

	short iqmat[64];
	short niqmat[64];

	/*	Picture buffers		*/

	unsigned char ref1[PICSIZE],
	              ref2[PICSIZE],
	              bidir1[PICSIZE],
	              bidir2[PICSIZE],
	              raster[PICSIZE];

	PIC cur;
	PIC ref_for;
	PIC ref_bak;
	PIC bidir_next;
	short tref_cur;
	short ptype_cur;

	short mbnum;
	
	short avail[4];		/* Temp_refs of available pictures */
	
	/*	Other			*/

	short *tokstream;
	short *tokend;

    } Tok_Context;
	
#define TOK_BUF_SIZE	(512)

#include "mpeg_tok.h"


#define C_CHECK