NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
CameraSensorPlugin.h File Reference

Detailed Description

NVIDIA DriveWorks: Camera Sensor Plugin Interface to interact with live sensors

Description: This file defines the interfaces to be implemented for Camera sensor plugins.

Definition in file CameraSensorPlugin.h.

Go to the source code of this file.

Data Structures

struct  dwCameraSensorPluginFunction
 Function Table exposing camera sensor plugin functions. More...
 

Typedefs

typedef enum dwCameraImageType dwCameraImageType
 
typedef void(* dwCameraCallback) (dwCameraSIPLNotification *notification, dwSensorHandle_t sensor)
 
typedef void(* dwCameraPluginCallback) (dwCameraSIPLNotification *notification, uint32_t sensorId)
 
typedef dwStatus(* dwSensorCameraPlugin_readFrame) (void **rawBuffers, uint32_t numBuffers, dwTime_t const timeoutUs, dwSensorPluginSensorHandle_t sensor)
 Handle to captured frame. More...
 
typedef dwStatus(* dwSensorCameraPlugin_returnFrame) (void **outBuffer, uint32_t const numBuffers, dwSensorPluginSensorHandle_t sensorHandle)
 Return a frame buffer to the camera sensor. More...
 
typedef dwStatus(* dwSensorCameraPlugin_initializePipeline) (dwSensorPluginSensorHandle_t sensorHandle)
 Initialize a pipeline for the camera sensor. More...
 
typedef dwStatus(* dwSensorCameraPlugin_setEventCallback) (dwCameraCallback blkCallback, dwCameraCallback lineCallback, dwSensorPluginSensorHandle_t sensorHandle)
 Set the event callback for the camera sensor. More...
 
typedef dwStatus(* dwSensorCameraPlugin_setSensorErrorCallback) (dwCameraPluginCallback callback, dwSensorPluginSensorHandle_t sensorHandle)
 Set the sensor error callback for the camera sensor. More...
 
typedef dwStatus(* dwSensorCameraPlugin_initializeHandleEx) (dwSensorPluginSensorHandle_t *handle, char const *params, dwCodecHeaderPluginHandle_t codecHeader, dwContextHandle_t ctx)
 Initialize the handle for the camera sensor. More...
 
typedef dwErrorSignal(* dwSensorCameraPlugin_getErrorSignal) (dwSensorPluginSensorHandle_t sensorHandle)
 Get the error signal for the camera sensor. More...
 
typedef dwStatus(* dwSensorCameraPlugin_clearErrorSignal) (dwSensorPluginSensorHandle_t sensorHandle)
 Clear the error signal for the camera sensor. More...
 
typedef dwImageProperties(* dwSensorCameraPlugin_getImageProperties) (uint32_t type, dwSensorPluginSensorHandle_t sensorHandle)
 Get the image properties for the camera sensor. More...
 
typedef dwStatus(* dwCameraSensorPlugin_setImagePool) (NvSciBufObj **ispImages, uint32_t *ispCounts, NvSciBufObj *imageGroup, uint32_t imageGroupCount, dwCameraImageType siplClientType, dwSensorPluginSensorHandle_t handle)
 Sets the image pool for the camera. More...
 
typedef dwStatus(* dwCameraSensorPlugin_getCameraInfo) (void const **cameraInfo, dwSensorPluginSensorHandle_t handle)
 Gets the camera information for the specified camera output type. More...
 
typedef dwStatus(* dwCameraSensorPlugin_getNvSciImageAttr) (uint8_t outputType, NvSciBufAttrList *nvSciImageAttr, dwSensorPluginSensorHandle_t handle)
 Gets the NvSci attributes for the camera sensor. More...
 
typedef dwStatus(* dwCameraSensorPlugin_bootstrap) (dwSensorPluginSensorHandle_t handle)
 Bootstraps the camera sensor. More...
 
typedef dwStatus(* dwCameraSensorPlugin_getAvailableOutputFormats) (uint32_t *availableOutputFormats, dwSensorPluginSensorHandle_t handle)
 Gets the available output formats for the camera sensor. More...
 
typedef bool(* dwCameraSensorPlugin_isEOFSyncSet) (dwCameraImageType clientType, dwSensorPluginSensorHandle_t handle)
 Checks if the EOF sync is set for the camera sensor. More...
 
typedef dwStatus(* dwCameraSensorPlugin_getCodecHeader) (dwCodecHeaderHandle_t *codecHeader, dwSensorPluginSensorHandle_t handle)
 Gets the codec header for the camera sensor. More...
 
typedef dwStatus(* dwCameraSensorPlugin_getIsReplayInfo) (bool *isReplay, dwSensorPluginSensorHandle_t handle)
 Gets the is replay info for the camera sensor. More...
 
typedef dwStatus(* dwCameraSensorPlugin_manageImageLock) (NvSciBufObj imageSciBufObj, bool lock, dwSensorPluginSensorHandle_t handle)
 Manages the image lock for the camera sensor. More...
 
typedef dwStatus(* dwCameraSensorPlugin_getSensorIndex) (uint32_t *sensorIndex, dwSensorPluginSensorHandle_t handle)
 Gets the sensor index for the camera sensor. More...
 
typedef dwStatus(* dwCameraSensorPlugin_init) (bool asyncInit, dwSensorPluginSensorHandle_t handle)
 Initialize the camera sensor. More...
 
typedef struct dwCameraSensorPluginFunction dwCameraSensorPluginFunction
 Function Table exposing camera sensor plugin functions. More...
 

Enumerations

enum  dwCameraImageType {
  DW_CAMERA_IMG_TYPE_ISP = 0,
  DW_CAMERA_IMG_TYPE_ICP = 1,
  DW_CAMERA_IMG_TYPE_ISP1 = 2,
  DW_CAMERA_IMG_TYPE_ISP2 = 3,
  DW_CAMERA_IMG_TYPE_NUM_VALID_TYPES = 4,
  DW_CAMERA_IMG_TYPE_UNSUPPORTED = 5,
  DW_CAMERA_IMG_TYPE_ISP = 0,
  DW_CAMERA_IMG_TYPE_ICP = 1,
  DW_CAMERA_IMG_TYPE_ISP1 = 2,
  DW_CAMERA_IMG_TYPE_ISP2 = 3,
  DW_CAMERA_IMG_TYPE_NUM_VALID_TYPES = 4,
  DW_CAMERA_IMG_TYPE_UNSUPPORTED = 5
}
 

Variables

const typedef dwImageMemoryType *(* dwCameraSensorPlugin_getIspOutputMemoryFormat )(dwSensorPluginSensorHandle_t handle)
 Gets the ISP output memory format for the camera sensor. More...
 
const typedef dwImageFormat *(* dwCameraSensorPlugin_getIspOutputImageFormat )(dwSensorPluginSensorHandle_t handle)
 Gets the ISP output image format for the camera sensor. More...
 

Typedef Documentation

◆ dwCameraCallback

typedef void(* dwCameraCallback) (dwCameraSIPLNotification *notification, dwSensorHandle_t sensor)

Definition at line 67 of file CameraSensorPlugin.h.

◆ dwCameraImageType

◆ dwCameraPluginCallback

typedef void(* dwCameraPluginCallback) (dwCameraSIPLNotification *notification, uint32_t sensorId)

Definition at line 68 of file CameraSensorPlugin.h.

Enumeration Type Documentation

◆ dwCameraImageType

Enumerator
DW_CAMERA_IMG_TYPE_ISP 

Attaches to NvSIPL ISP0 output (Image Signal Processing) where it treats images processed via ISP.

DW_CAMERA_IMG_TYPE_ICP 

Attaches to NvSIPL ICP output (Input Capture Processing) where it treats direct camera driver captured output as RAW or YUV.

DW_CAMERA_IMG_TYPE_ISP1 

Attaches to NvSIPL ISP1 output (Image Signal Processing) where it treats images processed via ISP1.

DW_CAMERA_IMG_TYPE_ISP2 

Attaches to NvSIPL ISP2 output (Image Signal Processing) where it treats images processed via ISP2.

DW_CAMERA_IMG_TYPE_NUM_VALID_TYPES 

Number of valid camera image types.

DW_CAMERA_IMG_TYPE_UNSUPPORTED 

Unsupported camera image type.

DW_CAMERA_IMG_TYPE_ISP 
DW_CAMERA_IMG_TYPE_ICP 
DW_CAMERA_IMG_TYPE_ISP1 
DW_CAMERA_IMG_TYPE_ISP2 
DW_CAMERA_IMG_TYPE_NUM_VALID_TYPES 
DW_CAMERA_IMG_TYPE_UNSUPPORTED 

Definition at line 59 of file CameraSensorPlugin.h.