• Måns Rullgård's avatar
    AAC: Compress codebook tables and optimise sign bit handling · c816d3d0
    Måns Rullgård authored
    The codebooks each consist of small number of values repeated in
    groups of 2 or 4.  Storing the codebooks as a packed list of 2- or
    4-bit indexes into a table reduces their size substantially (from 7.5k
    to 1.5k), resulting in less cache pressure.
    
    For the band types with sign bits in the bitstream, storing the number
    and position of non-zero codebook values using a few bits avoids
    multiple get_bits() calls and floating-point comparisons which gcc
    handles miserably.
    
    Some float/int type punning also avoids gcc brain damage.
    
    Overall speedup 20-35% on Cortex-A8, 20% on Core i7.
    
    Originally committed as revision 21188 to svn://svn.ffmpeg.org/ffmpeg/trunk
    c816d3d0
Name
Last commit
Last update
doc Loading commit data...
ffpresets Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswscale Loading commit data...
tests Loading commit data...
tools Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
Doxyfile Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
cmdutils_common_opts.h Loading commit data...
common.mak Loading commit data...
configure Loading commit data...
ffmpeg.c Loading commit data...
ffplay.c Loading commit data...
ffserver.c Loading commit data...
ffserver.h Loading commit data...
subdir.mak Loading commit data...
version.sh Loading commit data...