aclvencCreateChannel

Applicability

Product

Supported

Atlas A3 training products / Atlas A3 inference products

x

Atlas A2 training products / Atlas A2 inference products

x

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

x

Description

Creates a video encoding channel, which is reusable. After being destroyed, the channel is no longer available.

Restrictions

  • Channels are thread-unsafe, that is, a separate channel should be created for each thread.
  • The restrictions on the number of channels are described in Overview.
  • Two streams are created by calling aclrtCreateStream twice. One is for the video stream encoding task, and the other is for processing the callback function. These streams can be automatically destroyed only after the channel is destroyed by calling aclvencDestroyChannel.

    When implementing the VENC function, observe the restrictions of aclrtCreateStream, such as the number of streams.

Prototype

aclError aclvencCreateChannel(aclvencChannelDesc *channelDesc)

Parameters

Parameter

Input/Output

Description

channelDesc

Input/Output

Pointer to the channel description.

Call aclvencCreateChannelDesc to create data of the aclvencChannelDesc type as a channel description and then call the aclvencSetChannelDesc series to set the channel description.

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