acldvppSetChannelDescMode

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Description

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

Restrictions

API call sequence: acldvppCreateChannelDesc-> acldvppSetChannelDescMode-> acldvppCreateChannel

Prototype

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 enum values of acldvppChannelMode.

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.