DriveWorks SDK Reference
4.0.0 Release
For Test and Development only

Camera.h File Reference

Detailed Description

NVIDIA DriveWorks API: Cameras

Description: This file defines camera methods.

Definition in file Camera.h.

Go to the source code of this file.

Data Structures

struct  dwCameraProperties
 Camera Properties. More...
 

Typedefs

typedef struct dwCameraFrame * dwCameraFrameHandle_t
 Handle to captured frame. More...
 
typedef void NvMediaIPPManager
 

Enumerations

enum  dwCameraExposureControl {
  DW_CAMERA_EXPOSURE_NONE,
  DW_CAMERA_EXPOSURE_UNKNOWN,
  DW_CAMERA_EXPOSURE_AE,
  DW_CAMERA_EXPOSURE_BAE,
  DW_CAMERA_EXPOSURE_CUSTOM
}
 Enum of exposure control types. More...
 
enum  dwCameraFOV {
  DW_CAMERA_FOV_UNKNOWN = 0,
  DW_CAMERA_FOV_30 = 30,
  DW_CAMERA_FOV_48 = 48,
  DW_CAMERA_FOV_50 = 50,
  DW_CAMERA_FOV_55 = 55,
  DW_CAMERA_FOV_60 = 60,
  DW_CAMERA_FOV_65 = 65,
  DW_CAMERA_FOV_90 = 90,
  DW_CAMERA_FOV_100 = 100,
  DW_CAMERA_FOV_110 = 110,
  DW_CAMERA_FOV_120 = 120,
  DW_CAMERA_FOV_185 = 185
}
 Enum of available FOV in degrees for camera lenses. More...
 
enum  dwCameraOutputType {
  DW_CAMERA_OUTPUT_NATIVE_PROCESSED = 1 << 0,
  DW_CAMERA_OUTPUT_NATIVE_RAW = 1 << 1,
  DW_CAMERA_OUTPUT_CUDA_RGBA_UINT8 = 1 << 2,
  DW_CAMERA_OUTPUT_CUDA_YUV420_UINT8_PLANAR = 1 << 3,
  DW_CAMERA_OUTPUT_CUDA_RAW_UINT16 = 1 << 4,
  DW_CAMERA_OUTPUT_CUDA_YUV420_UINT16_SEMIPLANAR = 1 << 5,
  DW_CAMERA_OUTPUT_CUDA_YUV444_UINT8_PLANAR = 1 << 6,
  DW_CAMERA_OUTPUT_CUDA_YUV444_UINT16_PLANAR = 1 << 7
}
 Output types supported by the camera. More...
 
enum  dwCameraRawFormat {
  DW_CAMERA_RAW_FORMAT_UNKNOWN = 0,
  DW_CAMERA_RAW_FORMAT_RGGB = 7000,
  DW_CAMERA_RAW_FORMAT_BGGR = 7100,
  DW_CAMERA_RAW_FORMAT_GRBG = 7200,
  DW_CAMERA_RAW_FORMAT_GBRG = 7300,
  DW_CAMERA_RAW_FORMAT_RCCB = 8000,
  DW_CAMERA_RAW_FORMAT_BCCR = 8100,
  DW_CAMERA_RAW_FORMAT_CRBC = 8200,
  DW_CAMERA_RAW_FORMAT_CBRC = 8300,
  DW_CAMERA_RAW_FORMAT_RCCC = 9000,
  DW_CAMERA_RAW_FORMAT_CRCC = 9100,
  DW_CAMERA_RAW_FORMAT_CCRC = 9200,
  DW_CAMERA_RAW_FORMAT_CCCR = 9300,
  DW_CAMERA_RAW_FORMAT_CCCC = 10000,
  DW_CAMERA_RAW_FORMAT_TOF = 20000
}
 Raw encoding formats pixel-order. More...
 
enum  dwCameraType {
  DW_CAMERA_GENERIC = 0,
  DW_CAMERA_GMSL_AR0231 = 3,
  DW_CAMERA_USB_GENERIC = 4,
  DW_CAMERA_GMSL_AR0144 = 5,
  DW_CAMERA_GMSL_AR0138 = 6,
  DW_CAMERA_GMSL_AR0220 = 7,
  DW_CAMERA_GMSL_AR0820 = 8,
  DW_CAMERA_GMSL_MN34906 = 9,
  DW_CAMERA_GMSL_OV2311 = 10,
  DW_CAMERA_GMSL_IMX390 = 11,
  DW_CAMERA_GMSL_CUSTOM = 99
}
 Enum of available camera sensors. More...
 

Functions

DW_API_PUBLIC dwStatus dwSensorCamera_getCUDAStream (cudaStream_t *stream, dwSensorHandle_t sensor)
 Gets the CUDA stream used. More...
 
DW_API_PUBLIC dwStatus dwSensorCamera_getImage (dwImageHandle_t *image, dwCameraOutputType type, dwCameraFrameHandle_t frame)
 Gets the output image/s image in a format specified by the output type. More...
 
DW_API_PUBLIC dwStatus dwSensorCamera_getImageAsync (dwImageHandle_t *image, dwCameraOutputType type, dwCameraFrameHandle_t frame)
 Gets the output image/s image in a format specified by the output type. More...
 
DW_API_PUBLIC dwStatus dwSensorCamera_getImageProperties (dwImageProperties *imageProperties, dwCameraOutputType type, dwSensorHandle_t sensor)
 Gets information about the image properties for a given 'dwCameraImageOutputType'. More...
 
DW_API_PUBLIC dwStatus dwSensorCamera_getNumSupportedCaptureModes (uint32_t *numModes, dwSensorHandle_t sensor)
 Gets number of supported capture modes. More...
 
DW_API_PUBLIC dwStatus dwSensorCamera_getNvMediaIPPManager (NvMediaIPPManager **manager, dwSensorHandle_t sensor)
 Gets the NvMediaIPPManager used for GMSL camera IPP setup and event callback. More...
 
DW_API_PUBLIC dwStatus dwSensorCamera_getSensorProperties (dwCameraProperties *properties, dwSensorHandle_t sensor)
 Gets information about the camera sensor. More...
 
DW_API_PUBLIC dwStatus dwSensorCamera_getSupportedCaptureMode (dwCameraProperties *captureMode, uint32_t modeIdx, dwSensorHandle_t sensor)
 Gets capture modes by specified index. More...
 
DW_API_PUBLIC dwStatus dwSensorCamera_getTimestamp (dwTime_t *timestamp, dwCameraFrameHandle_t frameHandle)
 Gets the timestamp of the current camera frame. More...
 
DW_API_PUBLIC dwStatus dwSensorCamera_readFrame (dwCameraFrameHandle_t *frameHandle, dwTime_t timeout_us, dwSensorHandle_t sensor)
 Reads a frame handle from the camera sensor. More...
 
DW_API_PUBLIC dwStatus dwSensorCamera_returnFrame (dwCameraFrameHandle_t *frameHandle)
 Returns a frame to the camera after it has been consumed. More...
 
DW_API_PUBLIC dwStatus dwSensorCamera_setCUDAStream (cudaStream_t stream, dwSensorHandle_t sensor)
 Sets the CUDA stream used by getImageAsync during internal cuda related operations. More...