43 |
{ |
{ |
44 |
// decoder/encoder |
// decoder/encoder |
45 |
VECTOR mvs[4]; |
VECTOR mvs[4]; |
|
uint32_t sad8[4]; // SAD values for inter4v-VECTORs |
|
|
uint32_t sad16; // SAD value for inter-VECTOR |
|
46 |
|
|
47 |
short int pred_values[6][MBPRED_SIZE]; |
short int pred_values[6][MBPRED_SIZE]; |
48 |
int acpred_directions[6]; |
int acpred_directions[6]; |
57 |
|
|
58 |
// encoder specific |
// encoder specific |
59 |
|
|
60 |
|
VECTOR mv16; |
61 |
VECTOR pmvs[4]; |
VECTOR pmvs[4]; |
62 |
|
|
63 |
|
int32_t sad8[4]; // SAD values for inter4v-VECTORs |
64 |
|
int32_t sad16; // SAD value for inter-VECTOR |
65 |
|
|
66 |
int dquant; |
int dquant; |
67 |
int cbp; |
int cbp; |
68 |
|
|
74 |
int mb_type; |
int mb_type; |
75 |
int dbquant; |
int dbquant; |
76 |
|
|
77 |
} MACROBLOCK; |
// stuff for block based ME (needed for Qpel ME) |
78 |
|
// backup of last integer ME vectors/sad |
79 |
|
|
80 |
|
VECTOR i_mv16; |
81 |
|
VECTOR i_mvs[4]; |
82 |
|
|
83 |
|
int32_t i_sad8[4]; // SAD values for inter4v-VECTORs |
84 |
|
int32_t i_sad16; // SAD value for inter-VECTOR |
85 |
|
|
86 |
|
} |
87 |
|
MACROBLOCK; |
88 |
|
|
89 |
static __inline int8_t get_dc_scaler(uint32_t quant, uint32_t lum) |
static __inline int8_t |
90 |
|
get_dc_scaler(uint32_t quant, |
91 |
|
uint32_t lum) |
92 |
{ |
{ |
93 |
if(quant < 5) |
if(quant < 5) |
94 |
return 8; |
return 8; |