aclvdecDestroyChannel
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
☓ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Description
Destroys a video decoding channel. Only the channels created by calling aclvdecCreateChannel can be destroyed.
Restrictions
- The channel is destroyed after the transmitted frames are decoded and the callback function is handled.
- aclvdecDestroyChannel encapsulates the aclrtUnSubscribeReport API to cancel thread registration (the callback function on the stream is no longer processed by the specified thread) and the aclrtDestroyStream API to destroy the stream. You do not need to call these two APIs separately when implementing the VDEC function.
- If the channel description has been destroyed by calling aclvdecDestroyChannelDesc before the channel is destroyed by calling aclvdecDestroyChannel, an error is reported when the channel is destroyed by calling aclvdecDestroyChannel.
Prototype
1
|
aclError aclvdecDestroyChannel(aclvdecChannelDesc *channelDesc) |
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
channelDesc |
Input |
Pointer to the channel description. The value must be the same as that of channelDesc specified when the aclvdecCreateChannel API is called to create a channel. |
Returns
0 on success; otherwise, failure. For details, see aclError.