Equalize image histogram for the input image. More...
Functions | |
| VPIStatus | vpiCreateEqualizeHist (uint64_t backend, VPIImageFormat fmt, VPIPayload *payload) |
| Creates payload for vpiSubmitEqualizeHist. More... | |
| VPIStatus | vpiSubmitEqualizeHist (VPIStream stream, uint64_t backend, VPIPayload payload, VPIImage input, VPIImage output) |
| Equalize the histogram of the image. More... | |
Equalize image histogram for the input image.
Refer to Equalize Histogram for more details and usage examples.
| VPIStatus vpiCreateEqualizeHist | ( | uint64_t | backend, |
| VPIImageFormat | fmt, | ||
| VPIPayload * | payload | ||
| ) |
#include <vpi/algo/EqualizeHist.h>
Creates payload for vpiSubmitEqualizeHist.
| [in] | backend | VPI backend that will execute the algorithm.
|
| [in] | fmt | Format of input image.
|
| [out] | payload | Pointer to the payload variable that receives the created handle. |
| VPI_ERROR_INVALID_ARGUMENT | payload is NULL. |
| VPI_ERROR_INVALID_ARGUMENT | backends refers to an invalid backend. |
| VPI_IMAGE_FORMAT_INVALID | fmt is not supported. |
| VPI_ERROR_INVALID_CONTEXT | Current context is destroyed. |
| VPI_ERROR_NOT_IMPLEMENTED | Equalize Histogram algorithm is not supported by given backend. |
| VPI_ERROR_OUT_OF_MEMORY | Cannot allocate required resources. |
| VPI_ERROR_INVALID_OPERATION | Backend isn't enabled in current context. |
| VPI_SUCCESS | Operation executed successfully. |
| VPIStatus vpiSubmitEqualizeHist | ( | VPIStream | stream, |
| uint64_t | backend, | ||
| VPIPayload | payload, | ||
| VPIImage | input, | ||
| VPIImage | output | ||
| ) |
#include <vpi/algo/EqualizeHist.h>
Equalize the histogram of the image.
| [in] | stream | The stream where the operation will be queued in.
|
| [in] | backend | VPI backend that will execute the algorithm.
|
| [in] | payload | Payload created with vpiCreateEqualizeHist |
| [in] | input | Input image.
|
| [out] | output | Where the resulting image will be written to.
|
| VPI_ERROR_INVALID_ARGUMENT | stream is NULL. |
| VPI_ERROR_INVALID_ARGUMENT | input or output are NULL. |
| VPI_ERROR_INVALID_ARGUMENT | payload must be created by vpiCreateEqualizeHist. |
| VPI_ERROR_INVALID_ARGUMENT | input and output must have same dimensions. |
| VPI_ERROR_INVALID_IMAGE_FORMAT | input image format does not match with one associated with payload. |
| VPI_ERROR_INVALID_IMAGE_FORMAT | output format doesn't match input's. |
| VPI_ERROR_INVALID_PAYLOAD_TYPE | payload is invalid. |
| VPI_ERROR_INVALID_OPERATION | The needed backends aren't enabled in stream, input or output. |
| VPI_SUCCESS | Operation executed successfully. |