acldvppSetChannelDescMode

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. This API is synchronous.

The Ascend 310 AI Processor does not support this API in the current version.

The Ascend 910 AI Processor does not support this API in the current version.

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

0 on success; else, failure.