VP8: simplify token_prob handling

~1.5% faster decode_block_coeffs

Originally committed as revision 24659 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Jason Garrett-Glaser
2010-08-02 05:20:38 +00:00
parent 9c87c03779
commit 10bf2eebbe
2 changed files with 6 additions and 9 deletions

View File

@@ -314,9 +314,10 @@ static const int8_t vp8_segmentid_tree[][2] =
{ -2, -3 }, // '10', '11'
};
static const uint8_t vp8_coeff_band[16] =
/* Padded by one byte to allow overreads */
static const uint8_t vp8_coeff_band[17] =
{
0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7
0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 0
};
static const uint8_t vp8_dct_cat1_prob[] = { 159, 0 };