aclvdecDestroyChannel
Description
Destroys a video decoding channel created by the aclvdecCreateChannel call. This API is synchronous.
Restrictions
- The channel is destroyed only after the transmitted frames are decoded and the callback function is processed.
- aclvdecDestroyChannel encapsulates the aclrtUnSubscribeReport to unsubscribe from a thread (the callback function in the stream is no longer processed by the specified thread), and aclrtDestroyStream to destroy a stream. To implement the VDEC function, aclrtUnSubscribeReport and aclrtDestroyStream do not need to be called separately.
- If aclvdecDestroyChannelDesc has been called to destroy the channel description before the aclvdecDestroyChannel call, an error is reported.
Prototype
aclError aclvdecDestroyChannel(aclvdecChannelDesc *channelDesc)
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
channelDesc |
Input |
Pointer to the channel description. Must be the same as the channelDesc argument passed to the aclvdecCreateChannel call. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.
Parent topic: VDEC Channel