NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
NvSIPLCDICommon.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2020-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
13 #ifndef NVSIPL_CDI_COMMON_STRUCTS_H
14 #define NVSIPL_CDI_COMMON_STRUCTS_H
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif /* __cplusplus */
19 
28 #define NVSIPL_TRUE (0 == 0)
29 
30 #define NVSIPL_FALSE (0 == 1)
31 
32 typedef uint32_t NvSiplBool;
41 typedef struct {
43  double_t x;
45  double_t y;
47 
49 #define DEVBLK_CDI_MAX_EXPOSURES (8U)
50 
52 #define DEVBLK_CDI_MAX_SENSOR_NAME_LENGTH (32U)
53 
55 #define DEVBLK_CDI_MAX_FUSE_ID_LENGTH (32U)
56 
58 #define DEVBLK_CDI_MAX_COLOR_COMPONENT (4U)
59 
61 #define DEVBLK_CDI_MAX_NUM_TEMPERATURES (4U)
62 
64 #define DEVBLK_CDI_MAX_SENSOR_CONTEXTS (4U)
65 
70 #define DEVBLK_CDI_MAX_PWL_KNEEPOINTS (64U)
71 
73 #define DEVBLK_CDI_MAX_FRAME_REPORT_BYTES (4U)
74 
81 typedef struct {
85  float_t min;
86 
90  float_t max;
91 
93 
100 typedef struct {
107 
113 
119 
121 
133 
140  uint32_t sensorCFA;
141 
146 
152 
163 
174 
185 
211 
218 
223 
225 
232 typedef struct {
237 
242 
244 
251 typedef struct {
256 
260  uint16_t frameContextID;
261 
263 
274  uint32_t lineLength;
275 
279  uint8_t *lineData;
281 
296 typedef struct {
301 
308  float_t exposureTime[DEVBLK_CDI_MAX_EXPOSURES];
309 
314 
321  float_t sensorGain[DEVBLK_CDI_MAX_EXPOSURES];
322 
324 
331 typedef struct {
341 
352 typedef struct {
357 
367 
369 
376 typedef struct {
381 
386 
388 
395 typedef struct {
400 
406 
412  float_t sensorTempCelsius[DEVBLK_CDI_MAX_NUM_TEMPERATURES];
413 
415 
422 typedef struct {
427 
432  uint8_t numBytes;
433 
439  uint8_t sensorframeReport[DEVBLK_CDI_MAX_FRAME_REPORT_BYTES];
440 
442 
449 typedef struct {
454 
459  uint8_t numKneePoints;
460 
466 
467 } DevBlkCDIPWL;
468 
475 typedef struct {
480 
484  uint32_t computedCRC;
485 
489  uint32_t embeddedCRC;
490 
491 } DevBlkCDICRC;
492 
499 typedef struct DevBlkCDIFrameTimestamp {
505  uint64_t frameTimestamp;
507 
532  uint32_t numExposures;
533 
539 
545 
550 
555 
560 
565 
571 
577 
583 
588  int8_t errorFlag;
589 
596 
599 #ifdef __cplusplus
600 } /* extern "C" */
601 #endif /* __cplusplus */
602 
603 #endif /* NVSIPL_CDI_COMMON_STRUCTS_H */
DevBlkCDIFrameTimestamp
Holds the sensor frame timestamp structure.
Definition: NvSIPLCDICommon.h:499
DevBlkCDIExposure::expTimeValid
NvSiplBool expTimeValid
Holds a flag which enables or disables the exposure block.
Definition: NvSIPLCDICommon.h:300
DevBlkCDICRC::embeddedCRC
uint32_t embeddedCRC
Holds the frame CRC value parsed from embedded data.
Definition: NvSIPLCDICommon.h:489
DEVBLK_CDI_MAX_SENSOR_NAME_LENGTH
#define DEVBLK_CDI_MAX_SENSOR_NAME_LENGTH
Maximum possible length of sensor name.
Definition: NvSIPLCDICommon.h:52
DevBlkCDIWhiteBalance::wbValid
NvSiplBool wbValid
Holds a flag which enables or disables the white balance gain block.
Definition: NvSIPLCDICommon.h:356
DEVBLK_CDI_MAX_FUSE_ID_LENGTH
#define DEVBLK_CDI_MAX_FUSE_ID_LENGTH
Maximum possible length of sensor fuse id.
Definition: NvSIPLCDICommon.h:55
DevBlkCDIEmbeddedDataInfo::sensorCRCInfo
DevBlkCDICRC sensorCRCInfo
Holds the parsed embedded data sensor CRC info for the captured frame.
Definition: NvSIPLCDICommon.h:554
DevBlkCDIFrameTimestamp::frameTimestamp
uint64_t frameTimestamp
Holds the sensor frame timestamp value.
Definition: NvSIPLCDICommon.h:505
DEVBLK_CDI_MAX_FRAME_REPORT_BYTES
#define DEVBLK_CDI_MAX_FRAME_REPORT_BYTES
Maximum number of frame report bytes.
Definition: NvSIPLCDICommon.h:73
DevBlkCDIEmbeddedDataInfo::sensorWBInfo
DevBlkCDIWhiteBalance sensorWBInfo
Holds the parsed embedded data sensor white balance info for the captured frame.
Definition: NvSIPLCDICommon.h:544
DevBlkCDIFrameSeqNum::frameSequenceNumber
uint64_t frameSequenceNumber
Holds the sensor frame sequence number value.
Definition: NvSIPLCDICommon.h:241
DevBlkCDISensorAttributes::numActiveExposures
uint8_t numActiveExposures
Holds the number of active exposures attribute.
Definition: NvSIPLCDICommon.h:151
DevBlkCDICRC::computedCRC
uint32_t computedCRC
Holds the frame CRC value computed from embedded data.
Definition: NvSIPLCDICommon.h:484
DevBlkCDIEmbeddedDataInfo::illuminationInfo
DevBlkCDIIllumination illuminationInfo
Holds the parsed embedded data illumination info for the captured frame.
Definition: NvSIPLCDICommon.h:564
DevBlkCDIFrameSeqNum::frameSeqNumValid
NvSiplBool frameSeqNumValid
Holds a flag which enables or disables the frame sequence number block.
Definition: NvSIPLCDICommon.h:236
DevBlkCDIAttrQuantizationStepSize
Holds the parameters regarding step size for non-HDR sensors.
Definition: NvSIPLCDICommon.h:100
DevBlkCDISensorAttributes
struct DevBlkCDISensorAttributes DevBlkCDISensorAttributes
Holds the sensor attributes.
DevBlkCDIFrameTimestamp::frameTimestampValid
NvSiplBool frameTimestampValid
Holds a flag which indicates if the frame timestamp from the sensor is valid.
Definition: NvSIPLCDICommon.h:502
DevBlkCDIFrameTimestamp
struct DevBlkCDIFrameTimestamp DevBlkCDIFrameTimestamp
Holds the sensor frame timestamp structure.
DevBlkCDIEmbeddedDataChunk
Holds the sensor embedded data chunk structure.
Definition: NvSIPLCDICommon.h:270
DevBlkCDIAttrRange
Holds the range of a sensor attribute.
Definition: NvSIPLCDICommon.h:81
DevBlkCDIEmbeddedDataChunk::lineLength
uint32_t lineLength
Holds the line length of an embedded chunk, in bytes.
Definition: NvSIPLCDICommon.h:274
DevBlkCDIAttrQuantizationStepSize::quantizationStepSizeSG
float_t quantizationStepSizeSG
Holds the sensor gain quantization step size.
Definition: NvSIPLCDICommon.h:112
DevBlkCDISensorAttributes::sensorFuseId
uint8_t sensorFuseId[DEVBLK_CDI_MAX_FUSE_ID_LENGTH]
Holds the fuse ID attribute.
Definition: NvSIPLCDICommon.h:145
DevBlkCDISensorAttributes::sensorQuantizationStepSize
DevBlkCDIAttrQuantizationStepSize sensorQuantizationStepSize
Holds the quantization step size parameters for non-HDR sensors.
Definition: NvSIPLCDICommon.h:222
DevBlkCDIEmbeddedDataInfo::errorFlag
int8_t errorFlag
Holds information on errors present in the embedded data.
Definition: NvSIPLCDICommon.h:588
DevBlkCDITemperature::numTemperatures
uint8_t numTemperatures
Holds the number of active temperatures.
Definition: NvSIPLCDICommon.h:405
DevBlkCDIFrameReport::frameReportValid
NvSiplBool frameReportValid
Holds a flag which enables or disables frame report block.
Definition: NvSIPLCDICommon.h:426
DevBlkCDIEmbeddedDataChunk
struct DevBlkCDIEmbeddedDataChunk DevBlkCDIEmbeddedDataChunk
Holds the sensor embedded data chunk structure.
DevBlkCDIEmbeddedDataInfo::sensorTempInfo
DevBlkCDITemperature sensorTempInfo
Holds the parsed embedded data sensor temperature info for the captured frame.
Definition: NvSIPLCDICommon.h:570
DevBlkCDISensorAttributes::sensorWhiteBalanceRange
DevBlkCDIAttrRange sensorWhiteBalanceRange[DEVBLK_CDI_MAX_EXPOSURES]
Holds the sensor white balance ranges for active exposures.
Definition: NvSIPLCDICommon.h:184
DevBlkCDIPWL
Holds the sensor companding piecewise linear (PWL) structure.
Definition: NvSIPLCDICommon.h:449
DevBlkCDIFrameReport
Holds the sensor report frame report structure.
Definition: NvSIPLCDICommon.h:422
DevBlkCDISensorAttributes::sensorName
char sensorName[DEVBLK_CDI_MAX_SENSOR_NAME_LENGTH]
Holds the name as a string.
Definition: NvSIPLCDICommon.h:132
DevBlkCDIWhiteBalanceGain
Per-channel gains, intended for use with DevBlkCDIWhiteBalance.
Definition: NvSIPLCDICommon.h:331
DevBlkCDISensorAttributes::numFrameReportBytes
uint32_t numFrameReportBytes
Holds the number of frame report bytes supported by the sensor.
Definition: NvSIPLCDICommon.h:217
DevBlkCDIIllumination::bValid
NvSiplBool bValid
Holds a flag which shows the illumination is valid.
Definition: NvSIPLCDICommon.h:380
DevBlkCDIEmbeddedDataInfo::frameTimestampInfo
DevBlkCDIFrameTimestamp frameTimestampInfo
Holds parsed embedded data frame timestamp info for the captured frame.
Definition: NvSIPLCDICommon.h:582
DevBlkCDISensorAttributes::sensorCFA
uint32_t sensorCFA
Holds the CFA attribute.
Definition: NvSIPLCDICommon.h:140
DevBlkCDIEmbeddedDataInfo::frameSeqNumInfo
DevBlkCDIFrameSeqNum frameSeqNumInfo
Holds parsed embedded data frame sequence number info for the captured frame.
Definition: NvSIPLCDICommon.h:576
NvSiplPointDouble
Defines the double-precision location of a point on a two-dimensional object.
Definition: NvSIPLCDICommon.h:41
DevBlkCDIIllumination::bEnable
NvSiplBool bEnable
Holds a flag which enables or disables the illumination.
Definition: NvSIPLCDICommon.h:385
DevBlkCDIFrameCtxID::frameContextID
uint16_t frameContextID
Holds the sensor frame context id value.
Definition: NvSIPLCDICommon.h:260
DevBlkCDIEmbeddedDataInfo::sensorExpInfo
DevBlkCDIExposure sensorExpInfo
Holds the parsed embedded data sensor exposure info for the captured frame.
Definition: NvSIPLCDICommon.h:538
DevBlkCDIWhiteBalance
Holds the sensor white balance gain structure.
Definition: NvSIPLCDICommon.h:352
DevBlkCDITemperature::tempValid
NvSiplBool tempValid
Holds a flag which enables or disables the sensor temperature block.
Definition: NvSIPLCDICommon.h:399
DevBlkCDIPWL::pwlValid
NvSiplBool pwlValid
Holds a flag which enables or disables the sensor PWL block.
Definition: NvSIPLCDICommon.h:453
NvSiplPointDouble::x
double_t x
Holds the horizontal location of the point.
Definition: NvSIPLCDICommon.h:43
DevBlkCDISensorAttributes::sensorGainRange
DevBlkCDIAttrRange sensorGainRange[DEVBLK_CDI_MAX_EXPOSURES]
Holds the sensor gain ranges for active exposures.
Definition: NvSIPLCDICommon.h:173
DevBlkCDIEmbeddedDataInfo::frameCtxIDInfo
DevBlkCDIFrameCtxID frameCtxIDInfo
Holds parsed embedded data frame context id info for the captured frame.
Definition: NvSIPLCDICommon.h:594
DevBlkCDIEmbeddedDataInfo::numExposures
uint32_t numExposures
Holds the parsed embedded data frame number of exposures for the captured frame.
Definition: NvSIPLCDICommon.h:532
DevBlkCDIFrameCtxID
Holds the sensor frame context id structure.
Definition: NvSIPLCDICommon.h:251
DevBlkCDIIllumination
Holds the sensor illumination control structure.
Definition: NvSIPLCDICommon.h:376
DevBlkCDIExposure::gainValid
NvSiplBool gainValid
Holds a flag which enables or disables the sensor gain block.
Definition: NvSIPLCDICommon.h:313
DevBlkCDISensorAttributes::sensorGainFactor
float_t sensorGainFactor[DEVBLK_CDI_MAX_EXPOSURES]
Holds the additional sensor gain factor between active exposures.
Definition: NvSIPLCDICommon.h:210
DevBlkCDIFrameReport::numBytes
uint8_t numBytes
Holds the number of active frame report bytes.
Definition: NvSIPLCDICommon.h:432
DevBlkCDICRC::crcValid
NvSiplBool crcValid
Holds a flag which enables or disables the CRC block.
Definition: NvSIPLCDICommon.h:479
DevBlkCDITemperature
Holds the sensor temperature structure.
Definition: NvSIPLCDICommon.h:395
NvSiplBool
uint32_t NvSiplBool
Definition: NvSIPLCDICommon.h:32
DevBlkCDISensorAttributes::sensorExpRange
DevBlkCDIAttrRange sensorExpRange[DEVBLK_CDI_MAX_EXPOSURES]
Holds the sensor exposure ranges (in seconds) for active exposures.
Definition: NvSIPLCDICommon.h:162
DevBlkCDIAttrRange::min
float_t min
Holds the sensor attribute's minimum value.
Definition: NvSIPLCDICommon.h:85
DevBlkCDIEmbeddedDataInfo::sensorReportInfo
DevBlkCDIFrameReport sensorReportInfo
Holds the parsed embedded data frame report info for the captured frame.
Definition: NvSIPLCDICommon.h:559
DevBlkCDISensorAttributes
Holds the sensor attributes.
Definition: NvSIPLCDICommon.h:128
DevBlkCDIEmbeddedDataInfo
struct DevBlkCDIEmbeddedDataInfo DevBlkCDIEmbeddedDataInfo
Holds the sensor embedded data parsed info structure.
DevBlkCDIExposure
Holds sensor exposure information.
Definition: NvSIPLCDICommon.h:296
DevBlkCDIPWL::numKneePoints
uint8_t numKneePoints
Holds the number of active PWL knee points.
Definition: NvSIPLCDICommon.h:459
DevBlkCDIAttrQuantizationStepSize::isQuantizationStepSizeValid
NvSiplBool isQuantizationStepSizeValid
Holds the a flag to determine whether the exposure time and sensor gain quantization step sizes are r...
Definition: NvSIPLCDICommon.h:106
DevBlkCDIEmbeddedDataInfo::sensorPWLInfo
DevBlkCDIPWL sensorPWLInfo
Holds the parsed embedded data sensor PWL info for the captured frame.
Definition: NvSIPLCDICommon.h:549
DEVBLK_CDI_MAX_EXPOSURES
#define DEVBLK_CDI_MAX_EXPOSURES
Maximum number of exposures.
Definition: NvSIPLCDICommon.h:49
DevBlkCDIFrameCtxID::frameCtxIDValid
NvSiplBool frameCtxIDValid
Holds a flag indicating whether frame context id is valid or not.
Definition: NvSIPLCDICommon.h:255
DevBlkCDIAttrQuantizationStepSize::quantizationStepSizeET
float_t quantizationStepSizeET
Holds the exposure time quantization step size.
Definition: NvSIPLCDICommon.h:118
NvSiplPointDouble::y
double_t y
Holds the vertical location of the point.
Definition: NvSIPLCDICommon.h:45
DevBlkCDIFrameSeqNum
Holds the sensor frame sequence number structure.
Definition: NvSIPLCDICommon.h:232
DEVBLK_CDI_MAX_NUM_TEMPERATURES
#define DEVBLK_CDI_MAX_NUM_TEMPERATURES
Maximum number of sensor temperature values.
Definition: NvSIPLCDICommon.h:61
DevBlkCDIAttrRange::max
float_t max
Holds the sensor attribute's maximum value.
Definition: NvSIPLCDICommon.h:90
DEVBLK_CDI_MAX_PWL_KNEEPOINTS
#define DEVBLK_CDI_MAX_PWL_KNEEPOINTS
Maximum number of sensor companding piecewise linear (PWL) curve knee points.
Definition: NvSIPLCDICommon.h:70
DevBlkCDICRC
Holds the sensor CRC structure.
Definition: NvSIPLCDICommon.h:475
DevBlkCDIEmbeddedDataInfo
Holds the sensor embedded data parsed info structure.
Definition: NvSIPLCDICommon.h:527
DevBlkCDIEmbeddedDataChunk::lineData
uint8_t * lineData
Holds a pointer to the data chunk.
Definition: NvSIPLCDICommon.h:279
DEVBLK_CDI_MAX_COLOR_COMPONENT
#define DEVBLK_CDI_MAX_COLOR_COMPONENT
Maximum number of color components.
Definition: NvSIPLCDICommon.h:58