]> git.sesse.net Git - ffmpeg/commit
aacenc: Add support for Perceptual Noise Substitution energy values
authorRostislav Pehlivanov <atomnuker@gmail.com>
Sun, 12 Apr 2015 04:50:34 +0000 (05:50 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 13 Apr 2015 02:14:27 +0000 (04:14 +0200)
commitf7f71b5795d708763eb0c55fe5e2cb051b2b69f4
tree8df18b1a8d27c0b8ef6cf1256d153caf705733f3
parentc919cc61a155c45147913841003f742e0a53ac0d
aacenc: Add support for Perceptual Noise Substitution energy values

This commit implements support for writing the noise energy values used in PNS.
The difference between regular scalefactors and noise energy values is that the latter
require a small preamble (NOISE_PRE + energy_value_diff) to be written as the first
noise-containing band. Any following noise energy values use the previous one to
base their "diff" on. Ordinary scalefactors remain unchanged other than that they ignore the noise values.

This commit should not change anything by itself, the following commits will bring it in use.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/aac.h
libavcodec/aacenc.c