Function: dvpp_vpc_pyr_down_async
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
x |
x |
|
x |
|
x |
|
√ |
|
x |
Description
Performs pyramid resizing to resize the input image to half the original size. This API is asynchronous.
Prototype
- C Prototype
1aclError acldvppVpcPyrDownAsync(acldvppChannelDesc *channelDesc, acldvppPicDesc *inputDesc, acldvppPicDesc *outputDesc, void *reserve, aclrtStream stream)
- Python Function
1ret = acl.media.dvpp_vpc_pyr_down_async(dvpp_channel_desc, input_dvpp_pic_desc, output_dvpp_pic_desc, reserve, 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:
|
reserve |
Int, pointer address of the pyramid configuration parameter. This parameter is reserved. |
stream |
Int, stream object. |
Return Value
Return Value |
Description |
|---|---|
ret |
Int, error code. 0 on success; else, failure. |
Restrictions
- Input image
- Input image resolution: 20 x 12 to 2048 x 2048
- Input image format: PIXEL_FORMAT_YUV_400
- Output image
- Output image resolution: input image resolution/2
- Format: PIXEL_FORMAT_YUV_400
- For details about the alignment requirements of the PIXEL_FORMAT_YUV_400 image format, see Restrictions on Image Formats, Width and Height Alignment, and Buffers.