summaryrefslogtreecommitdiffstats
path: root/libavcodec/aac.h
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2015-08-21 19:27:38 +0100
committerRostislav Pehlivanov <atomnuker@gmail.com>2015-08-21 19:27:38 +0100
commita1c487e9215c5685f0694ebde5bba07f4a07e95a (patch)
treecf7031383eb8a966eebeb2be96d22f57856c1a4c /libavcodec/aac.h
parenteab12d072e657ec748f0259b5281bd6912dccd70 (diff)
downloadffmpeg-streaming-a1c487e9215c5685f0694ebde5bba07f4a07e95a.zip
ffmpeg-streaming-a1c487e9215c5685f0694ebde5bba07f4a07e95a.tar.gz
aacenc_tns: implement temporal noise shaping
This commit implements temporal noise shaping support in the encoder, along with an -aac_tns option to toggle it on or off (off by default for now). TNS will increase audio quality and reduce quantization noise by applying a multitap FIR filter across allowed coefficients and transmit side information to the decoder so it could create an inverse filter. Users are encouraged to test the new functionality by enabling -aac_tns 1 during encoding. No major bugs are observable at this time so after a while if no new problems appear and if the current implementation is deemed of high enough quality and stability it will be enabled by default, possibly at the same time the encoder has its experimental flag removed and becomes the standard aac encoder in ffmpeg. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/aac.h')
-rw-r--r--libavcodec/aac.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/aac.h b/libavcodec/aac.h
index 4ac4a34..9ab2639 100644
--- a/libavcodec/aac.h
+++ b/libavcodec/aac.h
@@ -195,6 +195,7 @@ typedef struct TemporalNoiseShaping {
int length[8][4];
int direction[8][4];
int order[8][4];
+ int coef_idx[8][4][TNS_MAX_ORDER];
INTFLOAT coef[8][4][TNS_MAX_ORDER];
} TemporalNoiseShaping;
OpenPOWER on IntegriCloud