86#ifndef MPEGH_DECODER_TIMING_HANDLING_WRAPPER
87#define MPEGH_DECODER_TIMING_HANDLING_WRAPPER
94#include "mpeghexport.h"
165typedef struct MPEGH_DECODER_CONTEXT*
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_getSamples(HANDLE_MPEGH_DECODER_CONTEXT hCtx, int32_t *outData, uint32_t outLength, MPEGH_DECODER_OUTPUT_INFO *outInfo)
Get a decoded audio frame.
MPEGH_DECODER_PARAMETER
Options for handling of Dynamic Range Control (DRC) parameters.
@ MPEGH_DEC_PARAM_TARGET_REFERENCE_LEVEL
@ MPEGH_DEC_PARAM_ALBUM_MODE
@ MPEGH_DEC_PARAM_BOOST_FACTOR
@ MPEGH_DEC_PARAM_ATTENUATION_FACTOR
@ MPEGH_DEC_PARAM_EFFECT_TYPE
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...
struct MPEGH_DECODER_CONTEXT * HANDLE_MPEGH_DECODER_CONTEXT
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 ...
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....
MPEGHDEC_EXPORT HANDLE_MPEGH_DECODER_CONTEXT mpeghdecoder_init(int32_t cicpSetup)
Open an MPEG-H decoder instance.
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_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 MPEGH_DECODER_ERROR mpeghdecoder_setParam(HANDLE_MPEGH_DECODER_CONTEXT hCtx, MPEGH_DECODER_PARAMETER param, int value)
Set decoder parameter.
MPEGH_DECODER_ERROR
MPEG-H decoder error codes.
@ MPEGH_DEC_UNSUPPORTED_PARAM
@ MPEGH_DEC_NEEDS_RESTART
@ MPEGH_DEC_OUT_OF_MEMORY
@ MPEGH_DEC_PROCESS_ERROR
@ MPEGH_DEC_NULLPTR_ERROR
MPEGHDEC_EXPORT void mpeghdecoder_destroy(HANDLE_MPEGH_DECODER_CONTEXT hCtx)
De-allocate all resources of an MPEG-H decoder instance.
This structure gives information about the currently decoded audio data. All fields are read-only.