Converts the image format. The width and height of the output image must be the same as those of the input image. This API is asynchronous.
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.
For the supported input and output image formats, see Restrictions on Image Formats, Width and Height Alignment, and Buffers. When the input image format is YUV400, the output image format must be the same.
aclError acldvppVpcConvertColorAsync(acldvppChannelDesc *channelDesc,
acldvppPicDesc *inputDesc,
acldvppPicDesc *outputDesc,
aclrtStream stream)
Parameter |
Input/Output |
Description |
|---|---|---|
channelDesc |
Input |
Pointer to channel description. Must be the same as the channelDesc argument passed to the acldvppCreateChannel call. |
inputDesc |
Input |
Pointer to the input image description.
|
outputDesc |
Input/Output |
Pointer to the output image description. When outputDesc is used an input, the user needs to:
|
stream |
Input |
Stream. |
0 on successful task delivery; else, failure.
For the API call example, see Format Conversion.