Function: dvpp_vpc_convert_color_async
Applicable Products
Product |
Supported (√/x) |
|---|---|
x |
|
√ |
|
√ |
|
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 is an asynchronous API.
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)
Parameters
Parameter |
Description |
|---|---|
dvpp_channel_desc |
Int, pointer address of the channel description. The value must be the same as that of dvpp_channel_desc specified when a channel is created by calling acl.media.dvpp_create_channel. |
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 Values
Return Value |
Description |
|---|---|
ret |
Int, error code: 0 on success; else, failure. |
Constraints
- 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
Atlas inference products , when the input image format is YUV400, the output image format must be the same.