From a1c487e9215c5685f0694ebde5bba07f4a07e95a Mon Sep 17 00:00:00 2001 From: Rostislav Pehlivanov Date: Fri, 21 Aug 2015 19:27:38 +0100 Subject: 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 --- libavcodec/aac.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/aac.h') diff --git a/libavcodec/aac.h b/libavcodec/aac.h index 4ac4a34a48..9ab2639ac8 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; -- cgit v1.2.3