DriveWorks SDK Reference
3.0.4260 Release
For Test and Development only

/dvs/git/dirty/gitlab-master_av/dw/sdk/samples/sensors/camera/camera_slave_raw/README.md
Go to the documentation of this file.
1 # Copyright (c) 2019-2020 NVIDIA CORPORATION. All rights reserved.
2 
3 @page dwx_camera_slave_raw_sample Camera Slave with Raw Data Sample
4 @tableofcontents
5 
6 @note SW Release Applicability: This sample is available in both **NVIDIA DriveWorks** and **NVIDIA DRIVE Software** releases.
7 
8 @section dwx_camera_slave_raw_sample_description Description
9 
10 The Camera Slave with Raw Data sample uses the GMSL camera interface available on
11 NVIDIA DRIVE<sup>&trade;</sup> platforms. The sample creates a file for the RAW
12 data from the first camera on the selected camera group. The file is written to the disk.
13 
14 @section dwx_camera_slave_raw_sample_running Running the Sample
15 
16 The Camera Slave with Raw Data sample, sample_camera_slave_raw, accepts the following parameters:
17 
18  ./sample_camera_slave_raw --host=[ip_address]
19  --port=[tcp_port_num]
20  --link=[sibling-num]
21  --mode=[fifo|mailbox]
22  --fifo-size=[3..16]
23  --interpolationDemosaic=[0|positive_integer]
24  --serializer-type=[h264|h265]
25  --write-file=[path/to/output/file]
26 
27 Where:
28 
29  --host=[ip_address]
30  Specifies the host IP address of the camera server
31  Default value: 127.0.0.1
32 
33  --port=[tcp_port_num]
34  Specifies the port # to connect to the server, each port number mapsto one camera group.
35  Default value: 49252
36 
37  --link=[sibling-num]
38  Specifies the sibling index of the camera group to connect to
39  Default value: 0
40 
41  --mode=[fifo|mailbox]
42  Specifies the streaming mode. Available options: fifo/mailbox
43  In fifo mode, the server will queue the frames up to fifo-size frames, and if the slave is still slow, drop frame happens.
44  In mailbox mode, each readFrame call will get the latest frame from server, and server will not queue frames.
45  Default value: fifo
46 
47  --fifo-size[3..16]
48  Specifies the fifo size of the sensor
49  If it exceeds certain threshold which is defined by camera server, the size will be cut off to safe value.
50  Default value: 4
51 
52  --serializer-type=[raw|lraw]
53  Represents the format of the video with two possible options:
54  raw or lraw.
55  Default value: raw
56 
57  --write-file=[path/to/output/file]
58  Specifies the output file.
59  If --write-file is not provided, no file is written out on disk.
60  Default value: none
61 
62 @note: @ref sensor_distribution_tool must be running before launching this sample.