acldvppVpcPyrDownAsync
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
☓ |
|
|
☓ |
|
|
☓ |
|
|
☓ |
|
|
√ |
|
|
☓ |
Function Description
Performs pyramid resizing to resize the output image to half the original size. This API is asynchronous.
Prototype
1 2 3 4 5 |
aclError acldvppVpcPyrDownAsync(acldvppChannelDesc *channelDesc, acldvppPicDesc *inputDesc, acldvppPicDesc *outputDesc, void *reserve, 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:
|
|
reserve |
Input |
Pointer to the pyramid scaling configuration parameter. This parameter is reserved. |
|
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
- Input image
- Input image resolution: [20 × 12, 2048 × 2048]
- Input image format: PIXEL_FORMAT_YUV_400
- Output image
- Output image resolution: input image resolution/2
- Format: PIXEL_FORMAT_YUV_400
- For details about the alignment requirements of the PIXEL_FORMAT_YUV_400 image format, see Restrictions on Image Formats, Width and Height Alignment, and Buffers.