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.
API call sequence: acldvppCreateChannelDesc-> acldvppSetChannelDescMode-> acldvppCreateChannel
aclError acldvppSetChannelDescMode(acldvppChannelDesc *channelDesc, uint32_t mode)
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. |
0 on success; else, failure.