acldvppSetChannelDescMode

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function

Channel mode in the channel description, which specifies the function to be implemented by the image data processing channel. Currently, the VPC, JPEGD, JPEGE, and PNGD functions are supported.

API call sequence : acldvppCreateChannelDesc --> acldvppSetChannelDescMode --> acldvppCreateChannel

Prototype

1
aclError acldvppSetChannelDescMode(acldvppChannelDesc *channelDesc, uint32_t mode)

Parameters

Parameter

Input/Output

Description

channelDesc

Output

Pointer to the channel description.

Call the acldvppCreateChannelDesc API to create data of the acldvppChannelDesc type in advance.

mode

Input

Channel mode. For details about the value of each mode, see the enumerated values of acldvppChannelMode.

Returns

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