• Nathan Caldwell's avatar
    aacenc: Correct spreading calculation for high spreading. · d56920e2
    Nathan Caldwell authored
    The 3GPP spec uses the following calculation for high spreading:
    
    thr'_spr = max(thr_scaled, s_h(n) * thr_scaled(n-1))
    
    where, n is defined as the current band, and s_h() is defined as "[...] the
    distance of adjacent bands in Bark and a constant slope that is 15 dB/Bark
    [...]". This is a little ambiguous as you would assume you want the Bark
    width of the previous band for this calculation. However, this assumption
    appears to be incorrect, and you really want the Bark width of the current
    band. Coincidentally this is exactly what the spec calls for! =P
    
    This noticeably improves Tom's Diner at low bitrates (I tested at 64kbps,
    with mid/side disabled).
    
    Patch by: Nathan Caldwell <saintdev@gmail.com>
    
    Originally committed as revision 25622 to svn://svn.ffmpeg.org/ffmpeg/trunk
    d56920e2
Name
Last commit
Last update
doc Loading commit data...
ffpresets Loading commit data...
libavcodec Loading commit data...
libavcore 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...
ffprobe.c Loading commit data...
ffserver.c Loading commit data...
ffserver.h Loading commit data...
subdir.mak Loading commit data...
version.sh Loading commit data...