Function: dvpp_vpc_convert_color_async
Applicability
|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
x |
|
|
√ |
|
|
√ |
Function Usage
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
- C Prototype
1aclError acldvppVpcConvertColorAsync(acldvppChannelDesc *channelDesc, acldvppPicDesc *inputDesc, acldvppPicDesc *outputDesc, aclrtStream stream)
- Python Function
1ret = acl.media.dvpp_vpc_convert_color_async(dvpp_channel_desc, input_dvpp_pic_desc, output_dvpp_pic_desc, stream)
Parameter Description
|
Parameter |
Description |
|---|---|
|
dvpp_channel_desc |
Int, pointer address of the channel description. It must be the same as dvpp_channel_desc passed to the acl.media.dvpp_create_channel call. |
|
input_dvpp_pic_desc |
Int, pointer address of the input image information.
|
|
output_dvpp_pic_desc |
Int, pointer address of the output image information.
When it is used as an input, the user needs to:
|
|
stream |
Int, stream object. |
Return Value Description
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code: 0 on success; else, failure. |
Restrictions
- The input and output image resolutions must be in the range of (10 x 6, 4096 x 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.