1 # Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
3 @page dwx_tools_lraw2raw LRAW to RAW Conversion Tool
6 This tool is available on the x86 Host System and NVIDIA DRIVE<sup>™</sup> OS Linux.
8 The NVIDIA<sup>®</sup> DriveWorks LRAW to RAW conversion tool decompresses
9 the LRAW input file and stores the result to an RCCB file.
11 LRAW stands for Lossless Encode of RAW RCCB data. It uses H264 Lossless Hi
12 Profile (244) for compression of RAW data. This format can be decoded to the
13 exact original, pixels of RCCB data, without any loss due to compression.
15 This tool decompresses the provided LRAW input file to generate the original
16 RAW RCCB file. The provided LRAW file can be in V1 or V2 format. LRAW encoding
17 differs, depending on the platform:
18 - NVIDIA DRIVE<sup>™</sup> PX 2 (T186) encodes to the V1 format
19 - NVIDIA DRIVE<sup>™</sup> AGX Developer Kit (T194) encodes to the V2 format.
21 The tool operates on pure raw data and doesn't need special support for any type of recording.
23 V2 offers these features over V1:
24 - Keeps the top and bottom lines of metadata uncompressed.
25 - Supports MSB-aligned input for the new sensors.
26 - Supports compression of 16-bit data for new sensors.
27 - Supports preview encoding. Specifically, 1 frame in 30 is stored as a preview
28 that the camera provides. The preview frame is encoded in lossy mode and
29 embedded in the lraw file.
31 @note SW Release Applicability: This tool is available in both <b>NVIDIA DriveWorks</b> and <b>NVIDIA DRIVE Software</b> releases.
33 @section dwx_tools_lraw2raw_arguments Input Arguments
35 The lraw2raw tool supports the following arguments:
37 --inputfile=<input.lraw file> The fullpath of the input lraw file in LRAW V2 or V1 format.
38 --outputfile=<outputfile.raw> The fullpath of the output Raw decompressed RCCB file.
39 --usePinnedMemory=1/0 The option to enable or disable use of PinnedMemory
40 for faster CudaMemcpy.
42 @section dwx_tools_lraw2raw_running Running the Tool
43 The usage is shown below.
45 sudo LD_LIBRARY_PATH=<path to CUDA Libraries> ./lraw2raw --inputfile=<input.lraw file> --outputfile=<outputfile.raw> --usePinnedMemory=1/0