acldvppVpcCropResizeAsync
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
☓ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Description
Crops a sub-image from an input image based on the specified ROI and stores the cropped image to the output buffer as the output image. The cropped image will be resized again if the size of cropArea is inconsistent with that of the canvas. The resizing algorithm specified in resizeConfig is used. This API is asynchronous.
Prototype
1 2 3 4 5 6 |
aclError acldvppVpcCropResizeAsync(acldvppChannelDesc *channelDesc, acldvppPicDesc *inputDesc, acldvppPicDesc *outputDesc, acldvppRoiConfig *cropArea, acldvppResizeConfig *resizeConfig, aclrtStream stream) |
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
channelDesc |
Input |
Pointer to the channel description. The value must be the same as that of channelDesc specified when the acldvppCreateChannel API is called to create a channel. |
|
inputDesc |
Input |
Pointer to the input image description.
|
|
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. |
|
resizeConfig |
Input |
Pointer to the image resizing configuration. Call acldvppCreateResizeConfig to create an image resizing configuration in advance. |
|
stream |
Input |
Stream. For details about the type definition, see aclrtStream. |
Returns
If the return value is 0, the task is successfully delivered. If the return value is not 0, the task fails to be delivered. For details, see aclError.
Restrictions
|
Model |
Restriction |
|---|---|
|
|
|
|
|
|
|
|
|