acldvppVpcConvertColorAsync
Applicability
|
Product |
Supported |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
x |
Description
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.
Prototype
aclError acldvppVpcConvertColorAsync(acldvppChannelDesc *channelDesc, acldvppPicDesc *inputDesc, acldvppPicDesc *outputDesc, aclrtStream stream)
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
channelDesc |
Input |
Pointer to the 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 as an input, the user needs to:
|
|
stream |
Input |
Stream. |
Returns
0 on successful task delivery; else, failure. For details, see aclError.
Restrictions
- The input and output image resolution must be in the range of [10 × 6, 4096 × 4096].
- For the supported input and output image formats, see Restrictions on Image Formats, Width and Height Alignment, and Buffers.
- For the
Atlas inference products , when the input image format is YUV400, the output image format must be the same.