VpcCropAndPaste

Function Usage

Image cropping and pasting function. Before calling this API, call Init to initialize this function.

Prototype

1
APP_ERROR DvppWrapper::VpcCropAndPaste(const DvppDataInfo& inputDataInfo, DvppDataInfo& outputDataInfo, CropRoiConfig& pasteRoi, CropRoiConfig& cropRoi, AscendStream& stream)
1
APP_ERROR DvppWrapper::VpcCropAndPaste(const DvppDataInfo& inputDataInfo, DvppDataInfo& outputDataInfo, CropRoiConfig& pasteRoi, CropRoiConfig& cropRoi);

Parameters

Parameter

Input/Output

Description

inputDataInfo

Input

Source image information.

outputDataInfo

Output

Returned paste information.

pasteRoi

Input

Paste ROI.

cropRoi

Input

Cropping ROI of the source image.

stream

Input

AscendStream type. When AscendStream& stream is not specified or the value is AscendStream::DefaultStream(), the API performs a synchronous operation. In other cases, the API performs asynchronous operations.

Response Parameters

Data Structure

Description

APP_ERROR

For details about the returned error codes, see APP_ERROR Description.