Mercurial > libavcodec.hg
comparison vp8.c @ 12229:cf675a4d5195 libavcodec
Eliminate a LUT in escape decoding in VP8 decode_block_coeffs
author | darkshikari |
---|---|
date | Thu, 22 Jul 2010 22:08:09 +0000 |
parents | 9c63566f623f |
children | 00a4a6b56c7f |
comparison
equal
deleted
inserted
replaced
12228:9c63566f623f | 12229:cf675a4d5195 |
---|---|
801 if (token == DCT_EOB) | 801 if (token == DCT_EOB) |
802 break; | 802 break; |
803 else if (token >= DCT_CAT1) { | 803 else if (token >= DCT_CAT1) { |
804 int cat = token-DCT_CAT1; | 804 int cat = token-DCT_CAT1; |
805 token = vp8_rac_get_coeff(c, vp8_dct_cat_prob[cat]); | 805 token = vp8_rac_get_coeff(c, vp8_dct_cat_prob[cat]); |
806 token += vp8_dct_cat_offset[cat]; | 806 token += 3 + (2<<cat); |
807 } | 807 } |
808 | 808 |
809 // after the first token, the non-zero prediction context becomes | 809 // after the first token, the non-zero prediction context becomes |
810 // based on the last decoded coeff | 810 // based on the last decoded coeff |
811 if (!token) { | 811 if (!token) { |