NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
PVA_ALGOS_Image_Processor

Detailed Description

Data Structures

struct  pvaAlgosImageProcessorConfig_t
 Structure that holds configuration parameters for the image processor. More...
 
struct  pvaAlgosImageProcessorIOBuffer_t
 Structure that holds I/O Buffers for the image processor. More...
 

Typedefs

typedef struct ImageProcessorContext * pvaAlgosImageProcessorContext_t
 Structure that stores internal objects needed for image processor. More...
 

Enumerations

enum  pvaAlgosImageProcessorColorFormat_t {
  Y8UV8_TO_RGB8,
  Y8UV8_TO_RGBFP16,
  Y8UV8_TO_RGBFP32,
  RGBX8_TO_RGB8,
  RGBX8_TO_RGBFP16,
  RGBX8_TO_RGBFP32,
  COLOR_FORMAT_MAX
}
 Enum for input and output color formats. More...
 

Functions

pvaAlgosError_t pvaAlgosImageProcessorGetContext (pvaAlgosImageProcessorContext_t *imageProcessorContext)
 Initializes ImageProcessorContext object and stores it in the context structure. More...
 
pvaAlgosError_t pvaAlgosImageProcessorInit (pvaAlgosImageProcessorContext_t *imageProcessorContext, pvaAlgosImageProcessorConfig_t *imageProcessorParams)
 Initializes the necessary values for the internal objects in ImageProcessorContext object. More...
 
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. More...
 
pvaAlgosError_t pvaAlgosImageProcessorDeInit (pvaAlgosImageProcessorContext_t *imageProcessorContext)
 Frees the internal objects and the ImageProcessorContext object. More...
 

Typedef Documentation

◆ pvaAlgosImageProcessorContext_t

typedef struct ImageProcessorContext* pvaAlgosImageProcessorContext_t

Structure that stores internal objects needed for image processor.

Definition at line 90 of file pva_algos_image_processor.h.

Enumeration Type Documentation

◆ pvaAlgosImageProcessorColorFormat_t

Enum for input and output color formats.

Enumerator
Y8UV8_TO_RGB8 

YUV 420 NV 12 8 bit to RGB interleaved 8 bit.

Y8UV8_TO_RGBFP16 

YUV 420 NV 12 8 bit to RGB FP 16 bit normalized.

Y8UV8_TO_RGBFP32 

YUV 420 NV 12 8 bit to RGB FP 32 bit.

RGBX8_TO_RGB8 

RGBX 8 bit to RGB interleaved 8 bit.

RGBX8_TO_RGBFP16 

RGBX 8 bit to RGB FP 16 bit normalized.

RGBX8_TO_RGBFP32 

RGBX 8 bit to RGB FP 32 bit.

COLOR_FORMAT_MAX 

Do not use.

Definition at line 23 of file pva_algos_image_processor.h.

Function Documentation

◆ pvaAlgosImageProcessorDeInit()

pvaAlgosError_t pvaAlgosImageProcessorDeInit ( pvaAlgosImageProcessorContext_t imageProcessorContext)

Frees the internal objects and the ImageProcessorContext object.

Parameters
[in]imageProcessorContextThe pointer to a pvaAlgosImageProcessorContext_t object that stores the internal parameters needed for Image Processor
Returns
pvaAlgosError_t The completion status of the operation. Its value is pvaAlgosStatusSuccess if the operation is successful

◆ pvaAlgosImageProcessorGetContext()

pvaAlgosError_t pvaAlgosImageProcessorGetContext ( pvaAlgosImageProcessorContext_t imageProcessorContext)

Initializes ImageProcessorContext object and stores it in the context structure.

Parameters
[in]imageProcessorContextThe pointer to a pvaAlgosImageProcessorContext_t object that stores the internal parameters needed for Image Processor
Returns
pvaAlgosError_t The completion status of the operation. Its value is pvaAlgosStatusSuccess if the operation is successful

◆ pvaAlgosImageProcessorInit()

pvaAlgosError_t pvaAlgosImageProcessorInit ( pvaAlgosImageProcessorContext_t imageProcessorContext,
pvaAlgosImageProcessorConfig_t imageProcessorParams 
)

Initializes the necessary values for the internal objects in ImageProcessorContext object.

Parameters
[in]imageProcessorContextThe pointer to a pvaAlgosImageProcessorContext_t object that stores the internal parameters needed for Image Processor
[in]imageProcessorParamsThe pointer to a pvaAlgosImageProcessorConfig_t object that stores the configuration parameters for Image Processor
Returns
pvaAlgosError_t The completion status of the operation. Possible values are:

◆ pvaAlgosImageProcessorProcess()

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.

Parameters
[in]imageProcessorContextThe pointer to a pvaAlgosImageProcessorContext_t object that stores the internal parameters needed for Image Processor
[in]imageProcessorBuffersThe pointer to a pvaAlgosImageProcessorIOBuffer_t object that stores the I/O Buffers that change each frame
[in]postFenceThe pointer to a cupvaFence_t object needed for the synchronization across instructions sent to the PVA Engine
[in]instanceStreamThe pointer to a cupvaStream_t object needed to submit instructions to the PVA Engine
Returns
pvaAlgosError_t The completion status of the operation. Its value is pvaAlgosStatusSuccess if the operation is successful