Changes the dimensions of the input image while stretching/squeezing it. More...
Functions | |
VPIStatus | vpiSubmitRescale (VPIStream stream, uint64_t backend, VPIImage input, VPIImage output, VPIInterpolationType interpolationType, VPIBorderExtension border, uint64_t flags) |
Changes the size and scale of a 2D image. More... | |
Changes the dimensions of the input image while stretching/squeezing it.
Refer to Rescale for more details and usage examples.
VPIStatus vpiSubmitRescale | ( | VPIStream | stream, |
uint64_t | backend, | ||
VPIImage | input, | ||
VPIImage | output, | ||
VPIInterpolationType | interpolationType, | ||
VPIBorderExtension | border, | ||
uint64_t | flags | ||
) |
#include </opt/nvidia/vpi2/include/vpi/algo/Rescale.h>
Changes the size and scale of a 2D image.
[in] | stream | The stream where the operation will be queued in.
|
[in] | backend | VPI backend that will execute the algorithm.
|
[in] | input | Input image to be rescaled.
|
[out] | output | Output image with the desired resulting dimensions.
|
[in] | interpolationType | Interpolation method to be used.
|
[in] | border | Border extension to be used when sampling pixels outside the image border.
|
[in] | flags | Control flags.
|
VPI_ERROR_INVALID_ARGUMENT | stream is NULL. |
VPI_ERROR_INVALID_ARGUMENT | input or output are NULL. |
VPI_ERROR_INVALID_ARGUMENT | input or output dimensions are outside valid range. |
VPI_ERROR_INVALID_ARGUMENT | flags has some unsupported flag(s). |
VPI_ERROR_INVALID_ARGUMENT | border not supported. |
VPI_ERROR_INVALID_ARGUMENT | interpolationType not supported. |
VPI_ERROR_INVALID_ARGUMENT | backend is invalid or unknown. |
VPI_ERROR_INVALID_ARGUMENT | input and output formats are not compatible. |
VPI_ERROR_INVALID_IMAGE_FORMAT | input or output format not supported. |
VPI_ERROR_NOT_IMPLEMENTED | Rescale algorithm is not supported by given backend. |
VPI_ERROR_INVALID_OPERATION | Backend hardware not available. |
VPI_ERROR_INVALID_OPERATION | The needed backends aren't enabled in stream , input or output . |
VPI_SUCCESS | Operation executed successfully. |