mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-06-05 22:39:13 +02:00
AAC-Decoder: DRC metadata in stream info
Provide relevant DRC metadata information via API needed for DRC presentation mode wrapper. Bug 9428126 Change-Id: I827cd6bdfd2a8799c21935ae32af23739c90a9b6
This commit is contained in:
@@ -719,6 +719,10 @@ void CStreamInfoInit(CStreamInfo *pStreamInfo)
|
||||
pStreamInfo->frameSize = 0;
|
||||
|
||||
pStreamInfo->outputDelay = 0;
|
||||
|
||||
/* DRC */
|
||||
pStreamInfo->drcProgRefLev = -1; /* set program reference level to not indicated */
|
||||
pStreamInfo->drcPresMode = -1; /* default: presentation mode not indicated */
|
||||
}
|
||||
|
||||
/*!
|
||||
@@ -1785,6 +1789,13 @@ LINKSPEC_CPP AAC_DECODER_ERROR CAacDecoder_DecodeFrame(
|
||||
/* Add additional concealment delay */
|
||||
self->streamInfo.outputDelay += CConcealment_GetDelay(&self->concealCommonData) * self->streamInfo.aacSamplesPerFrame;
|
||||
|
||||
/* Map DRC data to StreamInfo structure */
|
||||
aacDecoder_drcGetInfo (
|
||||
self->hDrcInfo,
|
||||
&self->streamInfo.drcPresMode,
|
||||
&self->streamInfo.drcProgRefLev
|
||||
);
|
||||
|
||||
/* Reorder channel type information tables. */
|
||||
{
|
||||
AUDIO_CHANNEL_TYPE types[(8)];
|
||||
|
Reference in New Issue
Block a user