NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
CodecHeaderVideo.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2020-2026 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 
21 #ifndef DW_SENSORS_CODECS_CAMERA_CODECDATAVIDEO_H_
22 #define DW_SENSORS_CODECS_CAMERA_CODECDATAVIDEO_H_
23 
24 #include <dw/core/base/Types.h>
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
37 typedef enum {
52 
55 {
57  uint8_t sensorName[16];
59  uint16_t sensorRevID;
61  uint8_t serializerNameID[16];
63  uint16_t serializerRevID;
65  uint8_t bayerTypeID[4];
67  uint8_t scanlineOrderID;
69  uint8_t lensManuID[16];
71  uint8_t lensNameID[16];
73  uint16_t lensFOVID;
75  uint16_t imageWidth;
77  uint16_t imageHeight;
78 
85 
87  uint16_t channelLightID;
88 
90  uint8_t shadingLightID;
92  uint8_t shadingDataTypeID[2];
93 
95  uint16_t fuseID;
96 
103 
106 
113 
120 
126  uint16_t iRCutFreqID;
134  uint64_t assmTimeID;
136  uint32_t assmLineID;
138  uint16_t channelMeasurementID[4];
144 
146 typedef struct dwCodecCameraSIPLInfo
147 {
155  uint32_t linkIndex;
157  bool cphyMode;
171 
173 typedef struct dwCodecCameraMetadata
174 {
184  uint32_t sensorRevision;
186  uint32_t width;
188  uint32_t height;
194  uint32_t msbPosition;
198 
200 typedef struct dwCodecConfigVideo
201 {
205  uint32_t width;
207  uint32_t height;
209  uint32_t bitDepth;
211  uint32_t frameRate;
225 
228 #ifdef __cplusplus
229 }
230 #endif
231 #endif //DW_SENSORS_CODECS_CAMERA_CODECDATAVIDEO_H_
dwCameraRawFormat
dwCameraRawFormat
Raw encoding formats pixel-order.
Definition: Camera.h:149
dwEncoderConfigRateControl
Encoder rate control parameters.
Definition: Codec.h:350
dwCodecCameraSIPLBlobEEPROM::lensShadingDataID
char8_t lensShadingDataID[800]
Lens shading data.
Definition: CodecHeaderVideo.h:142
dwCodecCameraSIPLBlobEEPROM::scanlineOrderID
uint8_t scanlineOrderID
Scanline order identifier.
Definition: CodecHeaderVideo.h:67
dwCodecCameraSIPLInfo::colorFilterArray
uint32_t colorFilterArray
Color filter array pattern, corresponds to dwCameraRawFormat.
Definition: CodecHeaderVideo.h:159
dwCodecConfigVideo::cameraMetadata
dwCodecCameraMetadata cameraMetadata
Required camera metadata for encoding and decoding video.
Definition: CodecHeaderVideo.h:215
dwCodecCameraSIPLBlobEEPROM::sensorName
uint8_t sensorName[16]
Sensor name identifier.
Definition: CodecHeaderVideo.h:57
dwCodecCameraMetadata::rawFormat
dwCameraRawFormat rawFormat
Raw bayer pattern format.
Definition: CodecHeaderVideo.h:178
dwCodecCameraSIPLInfo::eeprom
dwCodecCameraSIPLBlobEEPROM eeprom
EEPROM blob data.
Definition: CodecHeaderVideo.h:169
dwCodecCameraMetadata::siplInfo
dwCodecCameraSIPLInfo siplInfo
SIPL camera module information.
Definition: CodecHeaderVideo.h:196
dwCodecCameraSIPLBlobEEPROM::secIntrinsicCoeff
float32_t secIntrinsicCoeff[16]
Second intrinsic coefficients.
Definition: CodecHeaderVideo.h:110
dwCodecCameraSIPLInfo
SIPL camera module information stored with recorded camera data.
Definition: CodecHeaderVideo.h:146
dwCodecCameraSIPLInfo::serializerName
char8_t serializerName[64]
Serializer name.
Definition: CodecHeaderVideo.h:161
dwCodecConfigVideo::codecMimeType
char8_t codecMimeType[DW_MAX_CODEC_MIME_TYPE_LENGTH]
Codec mime type.
Definition: CodecHeaderVideo.h:219
dwCodecCameraSIPLBlobEEPROM::channelMeasurementID
uint16_t channelMeasurementID[4]
Channel measurement values in RGGB order (R, GR, GB, B).
Definition: CodecHeaderVideo.h:138
dwCodecCameraSIPLBlobEEPROM::bayerTypeID
uint8_t bayerTypeID[4]
Bayer type identifier.
Definition: CodecHeaderVideo.h:65
Types.h
dwCodecCameraSIPLBlobEEPROM::iRNameID
char8_t iRNameID[16]
IR filter name identifier.
Definition: CodecHeaderVideo.h:124
dwCodecConfigVideo::codec
dwCodecType codec
Codec type.
Definition: CodecHeaderVideo.h:203
dwCodecCameraSIPLBlobEEPROM::channelLightID
uint16_t channelLightID
Channel color response light source ID.
Definition: CodecHeaderVideo.h:87
dwCodecCameraSIPLInfo::cameraModuleDescription
char8_t cameraModuleDescription[128]
Camera module description.
Definition: CodecHeaderVideo.h:151
dwCodecCameraMetadata::height
uint32_t height
Image height in pixels.
Definition: CodecHeaderVideo.h:188
dwCodecCameraSIPLBlobEEPROM::imageHeight
uint16_t imageHeight
Image height in pixels.
Definition: CodecHeaderVideo.h:77
dwCodecCameraSIPLInfo
struct dwCodecCameraSIPLInfo dwCodecCameraSIPLInfo
SIPL camera module information stored with recorded camera data.
dwCodecCameraSIPLInfo::interface
char8_t interface[16]
Interface type (e.g., "CSI-A").
Definition: CodecHeaderVideo.h:153
DW_CODEC_VIDEO_FORMAT_RAW
@ DW_CODEC_VIDEO_FORMAT_RAW
RAW format.
Definition: CodecHeaderVideo.h:46
dwCameraType
dwCameraType
Enum of available camera sensors.
Definition: Camera.h:198
dwCodecCameraMetadata::fov
dwCameraFOV fov
Field of view of the camera lens.
Definition: CodecHeaderVideo.h:182
dwCodecConfigVideo::width
uint32_t width
Video width.
Definition: CodecHeaderVideo.h:205
dwCodecCameraSIPLInfo::serializeri2cAddress
uint32_t serializeri2cAddress
Serializer I2C address.
Definition: CodecHeaderVideo.h:165
DW_CODEC_VIDEO_FORMAT_YUV420
@ DW_CODEC_VIDEO_FORMAT_YUV420
YUV 4:2:0 format.
Definition: CodecHeaderVideo.h:40
Codec.h
dwCodecCameraSIPLBlobEEPROM::lensNameID
uint8_t lensNameID[16]
Lens name identifier.
Definition: CodecHeaderVideo.h:71
dwCodecCameraSIPLBlobEEPROM::assmTimeID
uint64_t assmTimeID
Assembly time identifier.
Definition: CodecHeaderVideo.h:134
DW_MAX_CODEC_MIME_TYPE_LENGTH
@ DW_MAX_CODEC_MIME_TYPE_LENGTH
Maximum length of a codec MIME type string in bytes.
Definition: Codec.h:201
dwCodecCameraSIPLBlobEEPROM::mmIntrinsicModelID
uint8_t mmIntrinsicModelID
Module maker intrinsic model ID.
Definition: CodecHeaderVideo.h:80
dwCodecCameraMetadata::embeddedBottomLines
uint32_t embeddedBottomLines
Number of embedded data lines at the bottom of the frame.
Definition: CodecHeaderVideo.h:192
dwCodecCameraSIPLBlobEEPROM::secIntrinsicFlagID
uint8_t secIntrinsicFlagID
Second intrinsic flag.
Definition: CodecHeaderVideo.h:112
dwCodecConfigVideo
The base configuration for all video encoders and decoders.
Definition: CodecHeaderVideo.h:200
dwCameraExposureControl
dwCameraExposureControl
Enum of exposure control types.
Definition: Camera.h:214
dwCodecConfigVideo::height
uint32_t height
Video height.
Definition: CodecHeaderVideo.h:207
dwCodecCameraSIPLBlobEEPROM::modSerialID
char8_t modSerialID[16]
Module serial identifier.
Definition: CodecHeaderVideo.h:132
dwCodecCameraSIPLInfo::sensorParams
char8_t sensorParams[512]
Sensor creation parameters.
Definition: CodecHeaderVideo.h:167
dwCodecCameraSIPLBlobEEPROM::sensorRevID
uint16_t sensorRevID
Sensor revision ID.
Definition: CodecHeaderVideo.h:59
float32_t
float float32_t
Definition: core/base/BasicTypes.h:43
dwCodecCameraMetadata::embeddedTopLines
uint32_t embeddedTopLines
Number of embedded data lines at the top of the frame.
Definition: CodecHeaderVideo.h:190
dwCodecCameraSIPLBlobEEPROM::intrinsicModelID
uint8_t intrinsicModelID
Primary intrinsic model ID.
Definition: CodecHeaderVideo.h:98
dwCodecCameraSIPLInfo::cphyMode
bool cphyMode
True if using C-PHY mode, false for D-PHY.
Definition: CodecHeaderVideo.h:157
dwCodecCameraSIPLBlobEEPROM::iRCutFreqID
uint16_t iRCutFreqID
IR cut frequency identifier.
Definition: CodecHeaderVideo.h:126
dwCodecCameraSIPLBlobEEPROM::lensManuID
uint8_t lensManuID[16]
Lens manufacturer identifier.
Definition: CodecHeaderVideo.h:69
dwCodecCameraSIPLBlobEEPROM
SIPL EEPROM information blob stored with recorded camera data.
Definition: CodecHeaderVideo.h:54
char8_t
char char8_t
Definition: core/base/BasicTypes.h:55
dwCodecCameraSIPLBlobEEPROM::lensFOVID
uint16_t lensFOVID
Lens field-of-view identifier.
Definition: CodecHeaderVideo.h:73
dwCodecCameraMetadata::msbPosition
uint32_t msbPosition
MSB position of the raw pixel data.
Definition: CodecHeaderVideo.h:194
dwCodecCameraSIPLInfo::serializerDescription
char8_t serializerDescription[128]
Serializer description.
Definition: CodecHeaderVideo.h:163
dwCodecConfigVideo::rateControl
dwEncoderConfigRateControl rateControl
Encoder rate control parameters.
Definition: CodecHeaderVideo.h:217
dwCodecCameraSIPLBlobEEPROM::thirdIntrinsicCoeff
float32_t thirdIntrinsicCoeff[16]
Third intrinsic coefficients.
Definition: CodecHeaderVideo.h:117
DW_MAX_RAW_SIPL_HEADER_LENGTH
@ DW_MAX_RAW_SIPL_HEADER_LENGTH
Maximum length of a raw SIPL header in bytes.
Definition: Codec.h:202
dwCodecCameraSIPLBlobEEPROM::shadingLightID
uint8_t shadingLightID
Lens shading light source ID.
Definition: CodecHeaderVideo.h:90
dwCodecConfigVideo
struct dwCodecConfigVideo dwCodecConfigVideo
The base configuration for all video encoders and decoders.
DW_CODEC_VIDEO_FORMAT_YUV422
@ DW_CODEC_VIDEO_FORMAT_YUV422
YUV 4:2:2 format.
Definition: CodecHeaderVideo.h:50
dwCodecCameraMetadata
struct dwCodecCameraMetadata dwCodecCameraMetadata
Required camera metadata for encoding and decoding video.
dwCodecCameraSIPLBlobEEPROM::secIntrinsicModelID
uint8_t secIntrinsicModelID
Second intrinsic model ID.
Definition: CodecHeaderVideo.h:108
dwCodecCameraSIPLBlobEEPROM::serializerNameID
uint8_t serializerNameID[16]
Serializer name identifier.
Definition: CodecHeaderVideo.h:61
dwCodecCameraMetadata::exposure
dwCameraExposureControl exposure
Exposure control type.
Definition: CodecHeaderVideo.h:180
dwCodecType
dwCodecType
Codec Type.
Definition: Codec.h:64
dwCodecCameraSIPLBlobEEPROM::fuseDataID
char8_t fuseDataID[16]
Fuse data identifier.
Definition: CodecHeaderVideo.h:140
DW_CODEC_VIDEO_FORMAT_YUV400
@ DW_CODEC_VIDEO_FORMAT_YUV400
YUV 4:0:0 (monochrome) format.
Definition: CodecHeaderVideo.h:48
dwCodecConfigVideo::bitDepth
uint32_t bitDepth
Frame bit depth.
Definition: CodecHeaderVideo.h:209
dwCodecCameraSIPLBlobEEPROM::shadingDataTypeID
uint8_t shadingDataTypeID[2]
Lens shading data type identifier.
Definition: CodecHeaderVideo.h:92
dwCodecCameraSIPLBlobEEPROM::intrinsicCoeff
float32_t intrinsicCoeff[16]
Primary intrinsic coefficients.
Definition: CodecHeaderVideo.h:100
dwCodecCameraMetadata::sensorRevision
uint32_t sensorRevision
Sensor revision number.
Definition: CodecHeaderVideo.h:184
DW_CODEC_VIDEO_FORMAT_RGB
@ DW_CODEC_VIDEO_FORMAT_RGB
RGB format.
Definition: CodecHeaderVideo.h:44
dwCodecCameraMetadata::cameraType
dwCameraType cameraType
Camera sensor type.
Definition: CodecHeaderVideo.h:176
dwCodecCameraSIPLBlobEEPROM::intrinsicFlagID
uint8_t intrinsicFlagID
Primary intrinsic flag.
Definition: CodecHeaderVideo.h:102
dwCodecCameraSIPLBlobEEPROM::modMakerID
char8_t modMakerID[16]
Module maker identifier.
Definition: CodecHeaderVideo.h:128
dwCodecCameraSIPLBlobEEPROM
struct dwCodecCameraSIPLBlobEEPROM dwCodecCameraSIPLBlobEEPROM
SIPL EEPROM information blob stored with recorded camera data.
dwCodecConfigVideo::format
dwCodecVideoFormat format
Video format.
Definition: CodecHeaderVideo.h:213
dwCodecConfigVideo::enableAnonymization
bool enableAnonymization
Boolean flag to indicate if video anonymization is enabled.
Definition: CodecHeaderVideo.h:223
dwCodecCameraSIPLBlobEEPROM::fuseID
uint16_t fuseID
Fuse ID.
Definition: CodecHeaderVideo.h:95
dwCodecCameraSIPLBlobEEPROM::mmIntrinsicCoeff
float32_t mmIntrinsicCoeff[16]
Module maker intrinsic coefficients.
Definition: CodecHeaderVideo.h:82
Camera.h
dwCodecCameraSIPLInfo::linkIndex
uint32_t linkIndex
Link index on the deserializer.
Definition: CodecHeaderVideo.h:155
dwCodecVideoFormat
dwCodecVideoFormat
Enum of supported video format types for codec operations.
Definition: CodecHeaderVideo.h:38
dwCodecCameraSIPLBlobEEPROM::mmIntrinsicFlagID
uint8_t mmIntrinsicFlagID
Module maker intrinsic flag.
Definition: CodecHeaderVideo.h:84
DW_CODEC_VIDEO_FORMAT_YUV444
@ DW_CODEC_VIDEO_FORMAT_YUV444
YUV 4:4:4 format.
Definition: CodecHeaderVideo.h:42
dwCodecCameraSIPLBlobEEPROM::thirdIntrinsicModelID
uint8_t thirdIntrinsicModelID
Third intrinsic model ID.
Definition: CodecHeaderVideo.h:115
dwCodecCameraSIPLBlobEEPROM::modNameID
char8_t modNameID[16]
Module name identifier.
Definition: CodecHeaderVideo.h:130
dwCodecCameraSIPLBlobEEPROM::assmLineID
uint32_t assmLineID
Assembly line identifier.
Definition: CodecHeaderVideo.h:136
dwCodecConfigVideo::rawHeader
char8_t rawHeader[DW_MAX_RAW_SIPL_HEADER_LENGTH]
Raw sipl data from the camera.
Definition: CodecHeaderVideo.h:221
dwCodecCameraSIPLBlobEEPROM::thirdIntrinsicFlagID
uint8_t thirdIntrinsicFlagID
Third intrinsic flag.
Definition: CodecHeaderVideo.h:119
dwCodecCameraSIPLInfo::cameraModuleName
char8_t cameraModuleName[64]
Camera module name.
Definition: CodecHeaderVideo.h:149
dwCodecCameraMetadata
Required camera metadata for encoding and decoding video.
Definition: CodecHeaderVideo.h:173
dwCodecConfigVideo::frameRate
uint32_t frameRate
Frame rate.
Definition: CodecHeaderVideo.h:211
dwCodecCameraSIPLBlobEEPROM::eflID
float32_t eflID
Effective focal length.
Definition: CodecHeaderVideo.h:122
dwCameraFOV
dwCameraFOV
Enum of available FOV in degrees for camera lenses.
Definition: Camera.h:228
dwCodecCameraSIPLBlobEEPROM::extrinsicParamsID
float32_t extrinsicParamsID[6]
Extrinsic parameters (6 DOF).
Definition: CodecHeaderVideo.h:105
dwCodecCameraMetadata::width
uint32_t width
Image width in pixels.
Definition: CodecHeaderVideo.h:186
dwCodecCameraSIPLBlobEEPROM::serializerRevID
uint16_t serializerRevID
Serializer revision ID.
Definition: CodecHeaderVideo.h:63
dwCodecCameraSIPLBlobEEPROM::imageWidth
uint16_t imageWidth
Image width in pixels.
Definition: CodecHeaderVideo.h:75