Decode DCT tokens by branching to a different code path for each branch
authorDavid Conrad <lessen42@gmail.com>
Fri, 23 Jul 2010 21:46:17 +0000 (21:46 +0000)
committerDavid Conrad <lessen42@gmail.com>
Fri, 23 Jul 2010 21:46:17 +0000 (21:46 +0000)
commitfe1b5d974acf7736151e2e13f2498f4fbd6af765
treea5135bb741533094e8824b8b9ff63659aa43a811
parent5474ec2ac8a4964c4d6a0b51cd00a0ec2e7bb9a6
Decode DCT tokens by branching to a different code path for each branch
on the huffman tree, instead of traversing the tree in a while loop.

Based on the similar optimization in libvpx's detokenize.c

10% faster at normal bitrates, and 30% faster for high-bitrate intra-only

Originally committed as revision 24468 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/vp56.h
libavcodec/vp8.c
libavcodec/vp8data.h