AL_ERR AL_Decoder_Create(AL_HDecoder* hDec, AL_TIDecChannel* pDecChannel, AL_TAllocator* pAllocator, AL_TDecSettings* pSettings, AL_TDecCallBacks* pCB) - 2023.1 English

H.264/H.265 Video Codec Unit v1.2 Solutions LogiCORE IP Product Guide (PG252)

Document ID
PG252
Release Date
2023-05-16
Version
2023.1 English
[out] hDec Handle to the newly created decoder
[in] pDecChannel Pointer to the Scheduler structure
[in] pAllocator Pointer to an allocator
[in] pSettings Pointer to the decoder settings
[in] pCB Pointer to the decoder callbacks

Description

Creates a decoder object. The AL_TIDecChannel object is created by AL_DecChannelMcu_Create. The AL_TAllocator object is created by DmaAlloc_Create. The AL_TDecSettings object and the AL_TDecCallBacks object are initialized by settings their fields directly.

Return

On success, returns AL_SUCCESS. Otherwise, returns one of the following errors:

  • AL_ERROR – Unidentified error
  • AL_ERR_NO_MEMORY – Memory allocation failure
  • AL_ERR_INIT_FAILED – See CheckSettings

See

AL_DecChannelMcu_Create, /dev/allegroDecodeIP, DmaAlloc_Create, AssignSettings, CheckSettings, AL_TDecCallBacks