30 |
uint32_t edged_height; |
uint32_t edged_height; |
31 |
|
|
32 |
IMAGE cur; |
IMAGE cur; |
33 |
IMAGE refn[2]; |
IMAGE refn[3]; // 0 -- last I or P VOP |
34 |
|
// 1 -- first I or P |
35 |
|
// 2 -- 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 |
} DECODER; |
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 |
|
uint8_t low_delay; // low_delay flage (1 means no B_VOP) |
58 |
|
} |
59 |
|
DECODER; |
60 |
|
|
61 |
void init_decoder(uint32_t cpu_flags); |
void init_decoder(uint32_t cpu_flags); |
62 |
|
|
63 |
int decoder_create(XVID_DEC_PARAM * param); |
int decoder_create(XVID_DEC_PARAM * param); |
64 |
int decoder_destroy(DECODER * dec); |
int decoder_destroy(DECODER * dec); |
65 |
int decoder_decode(DECODER * dec, XVID_DEC_FRAME * frame); |
int decoder_decode(DECODER * dec, |
66 |
|
XVID_DEC_FRAME * frame); |
67 |
|
|
68 |
|
|
69 |
#endif /* _DECODER_H_ */ |
#endif /* _DECODER_H_ */ |