Resizes an image. This API is asynchronous.
For details about the restrictions on the image resolution, format, width and height alignment, and buffer of the VPC function, see Restrictions.
aclError acldvppVpcResizeAsync(acldvppChannelDesc *channelDesc,
acldvppPicDesc *inputDesc,
acldvppPicDesc *outputDesc,
acldvppResizeConfig *resizeConfig,
aclrtStream stream)
Parameter |
Input/Output |
Description |
|---|---|---|
channelDesc |
Input |
Pointer to the channel description. Must be the same as the channelDesc argument passed to the acldvppCreateChannel call. |
inputDesc |
Input |
Pointer to the input image information.
NOTE:
On the Ascend 310 AI Processor, if the input width/height is not a multiple of 2, VPC automatically rounds down it to the nearest multiple of 2. For example, for a 15 x 15 input image, VPC rounds down the image size to 14 x 14 before resizing the image. On the Ascend 910 AI Processor, if the input width/height is not a multiple of 2, VPC automatically rounds down it to the nearest multiple of 2. For example, for a 15 x 15 input image, VPC rounds down the image size to 14 x 14 before resizing the image. |
outputDesc |
Input/Output |
Pointer to the output image description. When outputDesc is used as an input, the user needs to:
|
resizeConfig |
Input |
Pointer to the image resizing configuration. Call acldvppCreateResizeConfig to create an image resizing configuration. |
stream |
Input |
Stream. |
0 on successful task delivery; else, failure.
For details about the API call sequence and example, see Typical Functions of VPC.