Eliminate a LUT in escape decoding in VP8 decode_block_coeffs

Originally committed as revision 24441 to svn://svn.ffmpeg.org/ffmpeg/trunk
oldabi
Jason Garrett-Glaser 15 years ago
parent 8d5fa2baa6
commit 2a38c2e99a
  1. 2
      libavcodec/vp8.c
  2. 2
      libavcodec/vp8data.h

@ -803,7 +803,7 @@ static int decode_block_coeffs(VP56RangeCoder *c, DCTELEM block[16],
else if (token >= DCT_CAT1) { else if (token >= DCT_CAT1) {
int cat = token-DCT_CAT1; int cat = token-DCT_CAT1;
token = vp8_rac_get_coeff(c, vp8_dct_cat_prob[cat]); token = vp8_rac_get_coeff(c, vp8_dct_cat_prob[cat]);
token += vp8_dct_cat_offset[cat]; token += 3 + (2<<cat);
} }
// after the first token, the non-zero prediction context becomes // after the first token, the non-zero prediction context becomes

@ -361,8 +361,6 @@ static const uint8_t * const vp8_dct_cat_prob[6] =
vp8_dct_cat6_prob, vp8_dct_cat6_prob,
}; };
static const uint8_t vp8_dct_cat_offset[6] = { 5, 7, 11, 19, 35, 67 };
static const uint8_t vp8_token_default_probs[4][8][3][NUM_DCT_TOKENS-1] = static const uint8_t vp8_token_default_probs[4][8][3][NUM_DCT_TOKENS-1] =
{ {
{ {

Loading…
Cancel
Save