aclvdecDestroyChannel

Applicable Products

Product

Supported

Ascend 950PR / Ascend 950DT

x

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

√

Function

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, these two APIs 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

1
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.

Reference

For details about the API call sequence and example, see Media Data Processing V1.