diff options
author | Jason Garrett-Glaser <darkshikari@gmail.com> | 2010-08-12 01:11:32 +0000 |
---|---|---|
committer | Jason Garrett-Glaser <darkshikari@gmail.com> | 2010-08-12 01:11:32 +0000 |
commit | 05c04cdf54fee9332d337380fd4cd8502bdac2be (patch) | |
tree | a34738cea5f0b5286f5f31c996c8f634361cc31c /libavcodec/x86/vp56_arith.h | |
parent | d2064fd42b2dd1cf1c44e5c4fc4b8aaba6698637 (diff) | |
download | ffmpeg-05c04cdf54fee9332d337380fd4cd8502bdac2be.tar.gz |
VP5/6/8: ~7% faster arithmetic decoding
Grab from the bitstream in 16-bit chunks instead of 8-bit chunks.
TODO: grab in 32-bit chunks on 64-bit systems.
Originally committed as revision 24783 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/x86/vp56_arith.h')
-rw-r--r-- | libavcodec/x86/vp56_arith.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/x86/vp56_arith.h b/libavcodec/x86/vp56_arith.h index ae3bc3dc77..ddbf38b1a9 100644 --- a/libavcodec/x86/vp56_arith.h +++ b/libavcodec/x86/vp56_arith.h @@ -31,7 +31,7 @@ static av_always_inline int vp56_rac_get_prob(VP56RangeCoder *c, uint8_t prob) unsigned int code_word = vp56_rac_renorm(c); unsigned int high = c->high; unsigned int low = 1 + (((high - 1) * prob) >> 8); - unsigned int low_shift = low << 8; + unsigned int low_shift = low << 16; int bit = 0; __asm__( |