• Rostislav Pehlivanov's avatar
    aacenc_is: add a flag to use pure coefficients instead · 4565611b
    Rostislav Pehlivanov authored
    This commit adds a flag to use the pure coefficients instead
    of the processed ones (sce->coeffs). This is needed because
    IS will apply the changes to the coefficients immediately
    before the adjust_common_prediction function and it doesn't
    make sense to measure stereo channel coefficient difference
    when one of the channels coefficients are all zero.
    
    Therefore add a flag to use pure coefficients in that case.
    TNS is the only thing touching the coefficients before IS
    so common window prediction will not take that into account
    but the effect of the TNS filter per coefficient can be small
    (a few percent) so to some approximation it's fine to just
    ignore that.
    
    Also fixed a small error which doesn't alter the results
    that much. pow(sqrt(number), 3.0/4.0) == pow(number, 3.0/8.0) !=
    pow(number, 3.0/4.0).
    Signed-off-by: 's avatarRostislav Pehlivanov <atomnuker@gmail.com>
    4565611b
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore 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...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
arch.mak Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
cmdutils_common_opts.h Loading commit data...
cmdutils_opencl.c Loading commit data...
common.mak Loading commit data...
configure Loading commit data...
ffmpeg.c Loading commit data...
ffmpeg.h Loading commit data...
ffmpeg_dxva2.c Loading commit data...
ffmpeg_filter.c Loading commit data...
ffmpeg_opt.c Loading commit data...
ffmpeg_vdpau.c Loading commit data...
ffmpeg_videotoolbox.c Loading commit data...
ffplay.c Loading commit data...
ffprobe.c Loading commit data...
ffserver.c Loading commit data...
ffserver_config.c Loading commit data...
ffserver_config.h Loading commit data...
library.mak Loading commit data...
version.sh Loading commit data...