Function: vdec_destroy_channel
Applicability
|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Usage
Destroys a video processing channel created by calling acl.media.vdec_create_channel.
Prototype
- C Prototype
1aclError aclvdecDestroyChannel(aclvdecChannelDesc *channelDesc)
- Python Function
1ret = acl.media.vdec_destroy_channel(vdec_channel_desc)
Parameter Description
|
Parameter |
Description |
|---|---|
|
vdec_channel_desc |
Int, pointer address of the channel description. It must be the same as the vdec_channel_desc argument passed to the acl.media.vdec_create_channel call. |
Return Value Description
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code: 0 on success; else, failure. |
Restrictions
- The channel is destroyed only after the transmitted frames are decoded and the callback function is processed.
- acl.media.vdec_destroy_channel encapsulates acl.rt.unsubscribe_report to unsubscribe from a thread (callback function in the stream is no longer processed by the specified thread), and acl.rt.destroy_stream to destroy a stream. To implement the VDEC function, acl.rt.unsubscribe_report and acl.rt.destroy_stream do not need to be called separately.
- If acl.media.vdec_destroy_channel_desc has been called to destroy the channel description before the acl.media.vdec_destroy_channel call, an error is reported.
Parent topic: VDEC Channel