From 8045853d03649f43ea2f7107e7d2dbb9b2d20855 Mon Sep 17 00:00:00 2001 From: Jean-Michel Trivi Date: Fri, 1 Aug 2014 22:17:48 -0700 Subject: AAC decoder: add support for controlling presentation parameters Control the dowmixing of the AAC decoder Control the DRC processing of the AAC decoder Bug 16740915 Change-Id: I9b06ea8785f56213ea120ed85eeb360c88223297 --- include/media/stagefright/ACodec.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/media/stagefright/ACodec.h b/include/media/stagefright/ACodec.h index a68adea..ca5076d 100644 --- a/include/media/stagefright/ACodec.h +++ b/include/media/stagefright/ACodec.h @@ -248,10 +248,19 @@ private: int32_t width, int32_t height, OMX_VIDEO_CODINGTYPE compressionFormat); + typedef struct drcParams { + int32_t drcCut; + int32_t drcBoost; + int32_t heavyCompression; + int32_t targetRefLevel; + int32_t encodedTargetLevel; + } drcParams_t; + status_t setupAACCodec( bool encoder, int32_t numChannels, int32_t sampleRate, int32_t bitRate, - int32_t aacProfile, bool isADTS, int32_t sbrMode); + int32_t aacProfile, bool isADTS, int32_t sbrMode, + int32_t maxOutputChannelCount, const drcParams_t& drc); status_t setupAC3Codec(bool encoder, int32_t numChannels, int32_t sampleRate); -- cgit v1.1