acldvppVpcCropResizePasteAsync

Description

Crops a selected ROI from the input image and pastes the cropped image to the canvas for output. This API is asynchronous.

A cropped image will be resized again if pasteArea and cropArea have different sizes. The resizing algorithm specified in resizeConfig is used.

Restrictions

Model

Restriction

Atlas 200/300/500 Inference Product

Atlas Training Series Product

Prototype

aclError acldvppVpcCropResizePasteAsync(acldvppChannelDesc *channelDesc,

acldvppPicDesc *inputDesc,

acldvppPicDesc *outputDesc,

acldvppRoiConfig *cropArea,

acldvppRoiConfig *pasteArea,

acldvppResizeConfig *resizeConfig,

aclrtStream stream)

Parameters

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.

outputDesc

Input/Output

Pointer to the output image description.

When outputDesc is used as an input, the user needs to:

cropArea

Input

Pointer to the crop ROI.

Call acldvppCreateRoiConfig to create an ROI configuration.

pasteArea

Input

Pointer to the paste ROI.

  • Call acldvppCreateRoiConfig to create an ROI configuration.
  • Round up the left offset of each paste ROI to the nearest multiple of 16.

resizeConfig

Input

Pointer to the image resizing configuration.

Call acldvppCreateResizeConfig to create an image resizing configuration in advance.

stream

Input

Stream.

Returns

0 on successful task delivery; else, failure.