VPI - Vision Programming Interface

3.0 Release

Image Flip

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...
 

Detailed Description

Flips a 2D image either horizontally, vertically or both.

Refer to Image Flip for more details and usage examples.

Function Documentation

◆ vpiSubmitImageFlip()

VPIStatus vpiSubmitImageFlip ( VPIStream  stream,
uint64_t  backend,
VPIImage  input,
VPIImage  output,
VPIFlipMode  flipMode 
)

#include </opt/nvidia/vpi3/include/vpi/algo/ImageFlip.h>

Flips a 2D image either horizontally, vertically or both.

Parameters
[in]streamA stream handle where the operation will be queued into.
[in]backendBackend that will execute the algorithm.
[in]inputInput image to be flipped.
[out]outputOutput image where the result will be written to.
  • It must have the same format and dimensions as input.
[in]flipModeDirection the image needs to be flipped in.
Return values
VPI_ERROR_INVALID_ARGUMENTstream is NULL.
VPI_ERROR_INVALID_ARGUMENTinput or output are NULL.
VPI_ERROR_INVALID_ARGUMENTinput and output image dimensions and formats do not match.
VPI_ERROR_INVALID_ARGUMENTImage dimensions aren't supported for given format.
VPI_ERROR_INVALID_ARGUMENTflipMode is not valid.
VPI_ERROR_INVALID_ARGUMENTbackend is invalid or unknown.
VPI_ERROR_INVALID_IMAGE_FORMATinput and output formats aren't supported
VPI_ERROR_NOT_IMPLEMENTEDImage Flip algorithm is not supported by given backend.
VPI_ERROR_INVALID_OPERATIONBackend hardware not available.
VPI_ERROR_INVALID_OPERATIONThe needed backends aren't enabled in stream, input or output.
VPI_SUCCESSOperation executed successfully.