aclvdecDestroyChannel

Applicability

Product

Supported

Atlas A3 training products / Atlas A3 inference products

Atlas A2 training products / Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Description

Destroys a video decoding channel created by calling aclvdecCreateChannel.

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. When implementing 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

0 on success; else, failure. For details, see aclError.

See Also

For details about the API call sequence and example, see DVPP Image/Video Processing (V1).