Creates a border around an image (also referred to as padding). This API is asynchronous.
The Ascend 310 AI Processor does not support this API in the current version.
The Ascend 910 AI Processor does not support this API in the current version.
For details about the restrictions on the image resolution, format, width and height alignment, and buffer of the VPC function, see Restrictions.
aclError acldvppVpcMakeBorderAsync(const acldvppChannelDesc *channelDesc,
const acldvppPicDesc *inputDesc,
acldvppPicDesc *outputDesc,
const acldvppBorderConfig *borderConfig,
aclrtStream stream)
Parameter |
Input/Output |
Description |
|---|---|---|
channelDesc |
Input |
Pointer to channel description. Must be the same as the channelDesc argument passed to the acldvppCreateChannel call. |
inputDesc |
Input |
Pointer to the input image description.
|
outputDesc |
Input/Output |
Pointer to the output image description. When outputDesc is an input, the user needs to:
|
borderConfig |
Input |
Pointer to the border configuration. Call acldvppCreateBorderConfig to create a border configuration. |
stream |
Input |
Stream. |
0 on successful task delivery; else, failure.