Small refactoring: Instead of 4 loops for decoding AC coefficients based
authorMike Melanson <mike@multimedia.cx>
Wed, 2 Dec 2009 04:06:27 +0000 (04:06 +0000)
committerMike Melanson <mike@multimedia.cx>
Wed, 2 Dec 2009 04:06:27 +0000 (04:06 +0000)
commit9d8bb0318a0bc59a04c71555a3c575f8146eab41
treee40e9d5d6c8ca12af8293cf3442a321835b2f19f
parent098523eb28df3a1cf4bddca088d80d5cbd2b9a1f
Small refactoring: Instead of 4 loops for decoding AC coefficients based
on their grouping, create one loop that indexes into a table of AC VLC
tables.

There is also a small optimization here: Do not call unpack_vlcs()
if there are no fragments in the list with outstanding coefficients.
My profiling indicates that this can save upwards of 1 million
dezicycles per frame throughout the course of unpack_dct_coeffs().

Originally committed as revision 20699 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/vp3.c