26 #ifndef AVCODEC_VP56_H
27 #define AVCODEC_VP56_H
45 int offset1,
int offset2,
int stride,
52 int buf_size,
int *golden_frame);
75 uint8_t coeff_reorder[64];
76 uint8_t coeff_index_to_pos[64];
77 uint8_t vector_sig[2];
78 uint8_t vector_dct[2];
79 uint8_t vector_pdi[2][2];
80 uint8_t vector_pdv[2][7];
81 uint8_t vector_fdv[2][8];
82 uint8_t coeff_dccv[2][11];
83 uint8_t coeff_ract[2][3][6][11];
84 uint8_t coeff_acct[2][3][3][6][5];
85 uint8_t coeff_dcct[2][36][5];
86 uint8_t coeff_runv[2][14];
87 uint8_t mb_type[3][10][10];
88 uint8_t mb_types_stats[3][10][2];
198 code_word |= bytestream_get_be16(&c->
buffer) <<
bits;
211 #ifndef vp56_rac_get_prob
212 #define vp56_rac_get_prob vp56_rac_get_prob
216 unsigned int low = 1 + (((c->
high - 1) * prob) >> 8);
217 unsigned int low_shift = low << 16;
218 int bit = code_word >= low_shift;
220 c->
high = bit ? c->
high - low : low;
221 c->
code_word = bit ? code_word - low_shift : code_word;
227 #ifndef vp56_rac_get_prob_branchy
232 unsigned low = 1 + (((c->
high - 1) * prob) >> 8);
233 unsigned low_shift = low << 16;
235 if (code_word >= low_shift) {
251 int low = (c->
high + 1) >> 1;
252 unsigned int low_shift = low << 16;
253 int bit = code_word >= low_shift;
256 code_word -= low_shift;
325 const uint8_t *probs)
327 while (tree->
val > 0) {
343 const uint8_t *probs,
int i)
356 const uint8_t *probs)