Function: dvpp_vpc_convert_color_async
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
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 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)
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 the acl.media.dvpp_create_channel API is called to create a 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 this argument is used as an input, the user needs to:
|
|
stream |
Int, stream object. |
Return Value
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code. 0 on success; else, failure. |
Restrictions
- The input and output image resolution must be in the range of (10 x 6, 4096 x 4096].
- For details about the input and output image formats, see Restrictions on Image Formats, Width and Height Alignment, and Buffers.
- For the
Atlas inference product , if the input format is YUV400, the output format can only be YUV400.