acldvppSetChannelDescMode

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

Sets the channel mode in an image processing channel description to specify the purpose (selected from VPC, JPEGD, JPEGE, and PNGD) of the channel.

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 acldvppCreateChannelDesc to create data of the acldvppChannelDesc type in advance.

mode

Input

Channel mode. For details, see the values of acldvppChannelMode.

Returns

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