Function: dvpp_vpc_pyr_down_async
Applicability
Product |
Supported (√/x) |
|---|---|
x |
|
x |
|
x |
|
√ |
|
x |
Function Usage
Performs pyramid resizing to resize the output 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)
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:
|
reserve |
Int, pointer address of the pyramid configuration parameter. This parameter is reserved. |
stream |
Int, stream object. |
Return Value Description
Return Value |
Description |
|---|---|
ret |
Int, error code: 0 on success; else, failure. |
Restrictions
- Input image
- Resolution: 20 x 12 to 2048 x 2048
- Format: PIXEL_FORMAT_YUV_400
- Output image
- Resolution: input image resolution/2
- Format: PIXEL_FORMAT_YUV_400
- For details about the image alignment requirements for PIXEL_FORMAT_YUV_400 images, see Restrictions on Image Formats, Width and Height Alignment, and Buffers.