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 <vpi/algo/ImageFlip.h>
Flips a 2D image either horizontally, vertically or both.
| 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. |