[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