30 |
uint32_t edged_height; |
uint32_t edged_height; |
31 |
|
|
32 |
IMAGE cur; |
IMAGE cur; |
33 |
IMAGE refn; |
IMAGE refn[3]; // 0 -- last I or P VOP |
34 |
|
// 1 -- first I or P |
35 |
|
// 2,3 -- for interpolate mode B-frame |
36 |
IMAGE refh; |
IMAGE refh; |
37 |
IMAGE refv; |
IMAGE refv; |
38 |
IMAGE refhv; |
IMAGE refhv; |
43 |
uint32_t mb_height; |
uint32_t mb_height; |
44 |
MACROBLOCK * mbs; |
MACROBLOCK * mbs; |
45 |
|
|
46 |
|
// for B-frame |
47 |
|
int32_t frames; // total frame number |
48 |
|
int8_t scalability; |
49 |
|
VECTOR p_fmv, p_bmv; // pred forward & backward motion vector |
50 |
|
MACROBLOCK *last_mbs; // last MB |
51 |
|
int64_t time; // for record time |
52 |
|
int64_t time_base; |
53 |
|
int64_t last_time_base; |
54 |
|
int64_t last_non_b_time; |
55 |
|
uint32_t time_pp; |
56 |
|
uint32_t time_bp; |
57 |
} DECODER; |
} DECODER; |
58 |
|
|
59 |
void init_decoder(uint32_t cpu_flags); |
void init_decoder(uint32_t cpu_flags); |