86 #ifndef MPEGH_DECODER_TIMING_HANDLING_WRAPPER
87 #define MPEGH_DECODER_TIMING_HANDLING_WRAPPER
94 #include "mpeghexport.h"
165 typedef struct MPEGH_DECODER_CONTEXT*
196 MPEGHDEC_EXPORT HANDLE_MPEGH_DECODER_CONTEXT
mpeghdecoder_init(int32_t cicpSetup);
209 const uint8_t* config,
210 uint32_t configSize);
234 const uint8_t* inData, uint32_t inLength,
253 const uint8_t* inData,
273 int32_t* outData, uint32_t outLength,
MPEGHDEC_EXPORT MPEGH_DECODER_ERROR mpeghdecoder_flush(HANDLE_MPEGH_DECODER_CONTEXT hCtx)
Flush the decoder and discard all pending samples in the samples queue. This function should be used ...
This structure gives information about the currently decoded audio data. All fields are read-only...
MPEGH_DECODER_PARAMETER
Options for handling of Dynamic Range Control (DRC) parameters.
MPEGHDEC_EXPORT HANDLE_MPEGH_DECODER_CONTEXT mpeghdecoder_init(int32_t cicpSetup)
Open an MPEG-H decoder instance.
struct MPEGH_DECODER_OUTPUT_INFO MPEGH_DECODER_OUTPUT_INFO
This structure gives information about the currently decoded audio data. All fields are read-only...
MPEGHDEC_EXPORT MPEGH_DECODER_ERROR mpeghdecoder_setMhaConfig(HANDLE_MPEGH_DECODER_CONTEXT hCtx, const uint8_t *config, uint32_t configSize)
Explicitly configure the decoder by passing the MHA config contained in a binary buffer. This is required for MPEG-H MHA format bitstreams which have no in-band config.
MPEGHDEC_EXPORT MPEGH_DECODER_ERROR mpeghdecoder_setParam(HANDLE_MPEGH_DECODER_CONTEXT hCtx, MPEGH_DECODER_PARAMETER param, int value)
Set decoder parameter.
MPEGHDEC_EXPORT MPEGH_DECODER_ERROR mpeghdecoder_process(HANDLE_MPEGH_DECODER_CONTEXT hCtx, const uint8_t *inData, uint32_t inLength, uint64_t timestamp)
Fill MPEG-H decoder's internal input buffer with bitstream data from the external input buffer and ad...
MPEGH_DECODER_ERROR
MPEG-H decoder error codes.
MPEGHDEC_EXPORT MPEGH_DECODER_ERROR mpeghdecoder_processTimescale(HANDLE_MPEGH_DECODER_CONTEXT hCtx, const uint8_t *inData, uint32_t inLength, uint64_t timestamp, uint32_t timescale)
Fill MPEG-H decoder's internal input buffer with bitstream data from the external input buffer and ad...
MPEGHDEC_EXPORT void mpeghdecoder_destroy(HANDLE_MPEGH_DECODER_CONTEXT hCtx)
De-allocate all resources of an MPEG-H decoder instance.
struct MPEGH_DECODER_CONTEXT * HANDLE_MPEGH_DECODER_CONTEXT
MPEGHDEC_EXPORT MPEGH_DECODER_ERROR mpeghdecoder_flushAndGet(HANDLE_MPEGH_DECODER_CONTEXT hCtx)
Flush the decoder and push the flushed PCM samples into a samples queue. The decoded PCM samples can ...
MPEGHDEC_EXPORT MPEGH_DECODER_ERROR mpeghdecoder_getSamples(HANDLE_MPEGH_DECODER_CONTEXT hCtx, int32_t *outData, uint32_t outLength, MPEGH_DECODER_OUTPUT_INFO *outInfo)
Get a decoded audio frame.