1 # Copyright (c) 2019-2020 NVIDIA CORPORATION. All rights reserved.
3 @page camera_usecase3 SIPL-based Image Sensors (Live)
5 @note SW Release Applicability: This tutorial is applicable to modules in both **NVIDIA DriveWorks** and **NVIDIA DRIVE Software** releases.
7 Initialize the Sensor Abstraction Layer
10 dwSAL_initialize(&sal, sdk);
15 dwSensor cameraSensor = DW_NULL_HANDLE;
16 dwSensorParams params;
17 params.parameters = "camera-name=SF3324,interface=csi-a,link=0,output-format=processed";
18 params.protocol = "camera.gmsl.sipl";
19 dwSAL_createSensor(&cameraSensor, params, sal);
23 after starting the sensor, the camera will start acquiring frames
26 dwSensor_start(cameraSensor);
31 We read a frame, which is stored as a `::dwCameraFrameHandle_t` and specify a timeout value in microseconds
35 dwCameraFrameHandle_t frameHandle = DW_NULL_HANDLE;
36 dwTime_t timeout = 33000;
37 dwSensorCamera_readFrame(&frameHandle, timeout, cameraSensor);
41 we get an image with type `::DW_CAMERA_OUTPUT_NATIVE_PROCESSED`.
45 dwImageHandle_t imageNative;
46 dwSensorCamera_getImage(&imageNative, DW_CAMERA_IMAGE_OUTPUT_NATIVE_PROCESSED,...);
48 // CODE: use imageNative (maybe send to serializer)
53 return frames to the fifo
57 dwSensorCamera_returnFrame(...);
61 stop the sensor and release
64 dwSensor_stop(cameraSensor);
65 dwSAL_releaseSensor(&cameraSensor);
69 - @ref dwx_camera_sample