66 |
|
|
67 |
typedef struct |
typedef struct |
68 |
{ |
{ |
69 |
// bitstream |
/* bitstream */ |
70 |
|
|
71 |
uint32_t shape; |
uint32_t shape; |
72 |
uint32_t time_inc_bits; |
uint32_t time_inc_bits; |
78 |
uint32_t top_field_first; |
uint32_t top_field_first; |
79 |
uint32_t alternate_vertical_scan; |
uint32_t alternate_vertical_scan; |
80 |
|
|
81 |
// image |
/* image */ |
82 |
|
|
83 |
uint32_t width; |
uint32_t width; |
84 |
uint32_t height; |
uint32_t height; |
86 |
uint32_t edged_height; |
uint32_t edged_height; |
87 |
|
|
88 |
IMAGE cur; |
IMAGE cur; |
89 |
IMAGE refn[3]; // 0 -- last I or P VOP |
IMAGE refn[3]; /* 0 -- last I or P VOP */ |
90 |
// 1 -- first I or P |
/* 1 -- first I or P */ |
91 |
// 2 -- for interpolate mode B-frame |
/* 2 -- for interpolate mode B-frame */ |
92 |
IMAGE refh; |
IMAGE refh; |
93 |
IMAGE refv; |
IMAGE refv; |
94 |
IMAGE refhv; |
IMAGE refhv; |
95 |
|
|
96 |
// macroblock |
/* macroblock */ |
97 |
|
|
98 |
uint32_t mb_width; |
uint32_t mb_width; |
99 |
uint32_t mb_height; |
uint32_t mb_height; |
100 |
MACROBLOCK *mbs; |
MACROBLOCK *mbs; |
101 |
|
|
102 |
// for B-frame |
/* for B-frame */ |
103 |
int32_t frames; // total frame number |
int32_t frames; /* total frame number */ |
104 |
int8_t scalability; |
int8_t scalability; |
105 |
VECTOR p_fmv, p_bmv; // pred forward & backward motion vector |
VECTOR p_fmv, p_bmv; /* pred forward & backward motion vector */ |
106 |
MACROBLOCK *last_mbs; // last MB |
MACROBLOCK *last_mbs; /* last MB */ |
107 |
int64_t time; // for record time |
int64_t time; /* for record time */ |
108 |
int64_t time_base; |
int64_t time_base; |
109 |
int64_t last_time_base; |
int64_t last_time_base; |
110 |
int64_t last_non_b_time; |
int64_t last_non_b_time; |
111 |
uint32_t time_pp; |
uint32_t time_pp; |
112 |
uint32_t time_bp; |
uint32_t time_bp; |
113 |
uint8_t low_delay; // low_delay flage (1 means no B_VOP) |
uint8_t low_delay; /* low_delay flage (1 means no B_VOP) */ |
114 |
|
|
115 |
XVID_DEC_PICTURE* out_frm; // This is used for slice rendering |
XVID_DEC_PICTURE* out_frm; /* This is used for slice rendering */ |
116 |
} |
} |
117 |
DECODER; |
DECODER; |
118 |
|
|