tok.h
885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#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