|
|
NVIDIA DriveOS Linux NSR SDK API Reference
|
7.0.3.0 Release
|
Go to the documentation of this file.
11 #ifndef PVA_ALGOS_IMAGE_PROCESSOR
12 #define PVA_ALGOS_IMAGE_PROCESSOR
16 struct ImageProcessorContext;
156 #endif //PVA_ALGOS_IMAGE_PROCESSOR
Structure that holds configuration parameters for the image processor.
void * outputImage
Out: Output image pointer.
void * cupvaStream_t
Dummy definition for non PVA supported platforms.
uint32_t outputHeight
Output image height - used when enableResize is 1.
@ Y8UV8_TO_RGBFP32
YUV 420 NV 12 8 bit to RGB FP 32 bit.
uint32_t inputHeight
Input image height.
@ RGBX8_TO_RGBFP32
RGBX 8 bit to RGB FP 32 bit.
@ Y8UV8_TO_RGB8
YUV 420 NV 12 8 bit to RGB interleaved 8 bit.
uint32_t numRois
Number of ROIs.
pvaAlgosError_t pvaAlgosImageProcessorInit(pvaAlgosImageProcessorContext_t *imageProcessorContext, pvaAlgosImageProcessorConfig_t *imageProcessorParams)
Initializes the necessary values for the internal objects in ImageProcessorContext object.
@ RGBX8_TO_RGB8
RGBX 8 bit to RGB interleaved 8 bit.
@ RGBX8_TO_RGBFP16
RGBX 8 bit to RGB FP 16 bit normalized.
pvaAlgosError_t pvaAlgosImageProcessorProcess(pvaAlgosImageProcessorContext_t *imageProcessorContext, pvaAlgosImageProcessorIOBuffer_t *imageProcessorBuffers, cupvaStream_t *instanceStream, int execTimeout)
Sets the I/O Buffers to the internal objects and runs the Image Processor.
pvaAlgosError_t pvaAlgosImageProcessorDeInit(pvaAlgosImageProcessorContext_t *imageProcessorContext)
Frees the internal objects and the ImageProcessorContext object.
uint32_t normalizationScale
Normalization scale factor.
Structure that holds I/O Buffers for the image processor.
pvaAlgosError_t pvaAlgosImageProcessorGetContext(pvaAlgosImageProcessorContext_t *imageProcessorContext)
Initializes ImageProcessorContext object and stores it in the context structure.
bool enableResize
Enable resize operation.
@ Y8UV8_TO_RGBFP16
YUV 420 NV 12 8 bit to RGB FP 16 bit normalized.
uint32_t inputWidth
Input image width.
pvaAlgosImageProcessorColorFormat_t colorFormat
Color format conversion.
void * inputImage
In: Input image pointer.
uint32_t outputWidth
Output image width - used when enableResize is 1.
@ COLOR_FORMAT_MAX
Do not use.
struct ImageProcessorContext * pvaAlgosImageProcessorContext_t
Structure that stores internal objects needed for image processor.
uint32_t inputLinePitch
Input image line pitch.
bool enableNormalize
Enable normalization - works only with fp 16 output format.
pvaAlgosError_t
Possible error codes returned by PVA Algos.
uint16_t * roi
In: ROI x,y,w,h.
pvaAlgosImageProcessorColorFormat_t
Enum for input and output color formats.