26 #ifndef AVCODEC_VP56_H
27 #define AVCODEC_VP56_H
42 #define VP56_SIZE_CHANGE 1
47 int offset1,
int offset2,
int stride,
54 int buf_size,
int *golden_frame);
77 uint8_t coeff_reorder[64];
78 uint8_t coeff_index_to_pos[64];
79 uint8_t vector_sig[2];
80 uint8_t vector_dct[2];
81 uint8_t vector_pdi[2][2];
82 uint8_t vector_pdv[2][7];
83 uint8_t vector_fdv[2][8];
84 uint8_t coeff_dccv[2][11];
85 uint8_t coeff_ract[2][3][6][11];
86 uint8_t coeff_acct[2][3][3][6][5];
87 uint8_t coeff_dcct[2][36][5];
88 uint8_t coeff_runv[2][14];
89 uint8_t mb_type[3][10][10];
90 uint8_t mb_types_stats[3][10][2];
200 code_word |= bytestream_get_be16(&c->
buffer) <<
bits;
213 #ifndef vp56_rac_get_prob
214 #define vp56_rac_get_prob vp56_rac_get_prob
218 unsigned int low = 1 + (((c->
high - 1) * prob) >> 8);
219 unsigned int low_shift = low << 16;
220 int bit = code_word >= low_shift;
222 c->
high = bit ? c->
high - low : low;
223 c->
code_word = bit ? code_word - low_shift : code_word;
229 #ifndef vp56_rac_get_prob_branchy
234 unsigned low = 1 + (((c->
high - 1) * prob) >> 8);
235 unsigned low_shift = low << 16;
237 if (code_word >= low_shift) {
253 int low = (c->
high + 1) >> 1;
254 unsigned int low_shift = low << 16;
255 int bit = code_word >= low_shift;
258 code_word -= low_shift;
327 const uint8_t *probs)
329 while (tree->
val > 0) {
345 const uint8_t *probs,
int i)
358 const uint8_t *probs)