diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-04-12 05:50:34 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-13 04:14:27 +0200 |
commit | f7f71b5795d708763eb0c55fe5e2cb051b2b69f4 (patch) | |
tree | 8df18b1a8d27c0b8ef6cf1256d153caf705733f3 /libavcodec/aac.h | |
parent | c919cc61a155c45147913841003f742e0a53ac0d (diff) | |
download | ffmpeg-f7f71b5795d708763eb0c55fe5e2cb051b2b69f4.tar.gz |
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>
Diffstat (limited to 'libavcodec/aac.h')
-rw-r--r-- | libavcodec/aac.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/aac.h b/libavcodec/aac.h index b25b40c9c6..2701386376 100644 --- a/libavcodec/aac.h +++ b/libavcodec/aac.h @@ -141,6 +141,9 @@ typedef struct PredictorState { #define SCALE_MAX_DIFF 60 ///< maximum scalefactor difference allowed by standard #define SCALE_DIFF_ZERO 60 ///< codebook index corresponding to zero scalefactor indices difference +#define NOISE_PRE 256 ///< preamble for NOISE_BT, put in bitstream with the first noise band +#define NOISE_PRE_BITS 9 ///< length of preamble + /** * Long Term Prediction */ |