From 603f48ab99ce76f552f4f6f85d06b8c5b94c698e Mon Sep 17 00:00:00 2001 From: Jean-Michel Trivi Date: Mon, 30 Dec 2013 16:01:08 -0800 Subject: AAC Decoder: introduce time domain limiter Introduce time domain limiter. The module is per default enabled for all AAC-LC and HE-AAC v1/2 streams. For all ER-AAC-LD and ER-AAC-ELD streams the limiter is disabled per default. The feature can be en- or disabled via dynamic API parameter. Note that the limiter introduces an additional output delay which depends on the module parameters and the streams sampling rate. Bug 9428126 Change-Id: I299a072340b33e2c324facbd347a72c8de3d380e --- libAACdec/src/aacdecoder.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libAACdec/src/aacdecoder.h') diff --git a/libAACdec/src/aacdecoder.h b/libAACdec/src/aacdecoder.h index f581054..bcbc040 100644 --- a/libAACdec/src/aacdecoder.h +++ b/libAACdec/src/aacdecoder.h @@ -111,6 +111,7 @@ amm-info@iis.fraunhofer.de #include "aacdec_drc.h" #include "pcmutils_lib.h" + #include "limiter.h" /* Capabilities flags */ @@ -215,6 +216,12 @@ struct AAC_DECODER_INSTANCE { CAncData ancData; /*!< structure to handle ancillary data */ HANDLE_PCM_DOWNMIX hPcmUtils; /*!< privat data for the PCM utils. */ + TDLimiterPtr hLimiter; /*!< Handle of time domain limiter. */ + UCHAR limiterEnableUser; /*!< The limiter configuration requested by the library user */ + UCHAR limiterEnableCurr; /*!< The current limiter configuration. */ + + FIXP_DBL extGain[1]; /*!< Gain that must be applied to the output signal. */ + UINT extGainDelay; /*!< Delay that must be accounted for extGain. */ }; -- cgit v1.2.3