diff options
author | Jason Garrett-Glaser <darkshikari@gmail.com> | 2010-08-02 05:20:38 +0000 |
---|---|---|
committer | Jason Garrett-Glaser <darkshikari@gmail.com> | 2010-08-02 05:20:38 +0000 |
commit | 10bf2eebbe285ca7d8a2a28dda76f44f6f77efb7 (patch) | |
tree | 7b98799499f4bca7002f80823ae882722bbf12bc /libavcodec/vp8data.h | |
parent | 9c87c037793c79bf52352516c211ab556c4bc93e (diff) | |
download | ffmpeg-10bf2eebbe285ca7d8a2a28dda76f44f6f77efb7.tar.gz |
VP8: simplify token_prob handling
~1.5% faster decode_block_coeffs
Originally committed as revision 24659 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp8data.h')
-rw-r--r-- | libavcodec/vp8data.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/vp8data.h b/libavcodec/vp8data.h index 28cc0b3403..67e8ef3f47 100644 --- a/libavcodec/vp8data.h +++ b/libavcodec/vp8data.h @@ -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 }; |