Flips a 2D image either horizontally, vertically or both. More...
Functions | |
VPIStatus | vpiSubmitImageFlip (VPIStream stream, uint64_t backend, VPIImage input, VPIImage output, VPIFlipMode flipMode) |
Flips a 2D image either horizontally, vertically or both. More... | |
Flips a 2D image either horizontally, vertically or both.
Refer to Image Flip for more details and usage examples.
VPIStatus vpiSubmitImageFlip | ( | VPIStream | stream, |
uint64_t | backend, | ||
VPIImage | input, | ||
VPIImage | output, | ||
VPIFlipMode | flipMode | ||
) |
#include </opt/nvidia/vpi2/include/vpi/algo/ImageFlip.h>
Flips a 2D image either horizontally, vertically or both.
[in] | stream | A stream handle where the operation will be queued into. |
[in] | backend | Backend that will execute the algorithm.
|
[in] | input | Input image to be flipped.
|
[out] | output | Output image where the result will be written to.
|
[in] | flipMode | Direction the image needs to be flipped in.
|
VPI_ERROR_INVALID_ARGUMENT | stream is NULL. |
VPI_ERROR_INVALID_ARGUMENT | input or output are NULL. |
VPI_ERROR_INVALID_ARGUMENT | input and output image dimensions and formats do not match. |
VPI_ERROR_INVALID_ARGUMENT | Image dimensions aren't supported for given format. |
VPI_ERROR_INVALID_ARGUMENT | flipMode is not valid. |
VPI_ERROR_INVALID_ARGUMENT | backend is invalid or unknown. |
VPI_ERROR_INVALID_IMAGE_FORMAT | input and output formats aren't supported |
VPI_ERROR_NOT_IMPLEMENTED | Image Flip 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. |