DriveWorks SDK Reference
4.0.0 Release
For Test and Development only

CodecHeaderVideo.h
Go to the documentation of this file.
1 // This code contains NVIDIA Confidential Information and is disclosed
3 // under the Mutual Non-Disclosure Agreement.
4 //
5 // Notice
6 // ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
7 // NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
8 // THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
9 // MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
10 //
11 // NVIDIA Corporation assumes no responsibility for the consequences of use of such
12 // information or for any infringement of patents or other rights of third parties that may
13 // result from its use. No license is granted by implication or otherwise under any patent
14 // or patent rights of NVIDIA Corporation. No third party distribution is allowed unless
15 // expressly authorized by NVIDIA. Details are subject to change without notice.
16 // This code supersedes and replaces all information previously supplied.
17 // NVIDIA Corporation products are not authorized for use as critical
18 // components in life support devices or systems without express written approval of
19 // NVIDIA Corporation.
20 //
21 // Copyright (c) 2020 NVIDIA Corporation. All rights reserved.
22 //
23 // NVIDIA Corporation and its licensors retain all intellectual property and proprietary
24 // rights in and to this software and related documentation and any modifications thereto.
25 // Any use, reproduction, disclosure or distribution of this software and related
26 // documentation without an express license agreement from NVIDIA Corporation is
27 // strictly prohibited.
28 //
30 
31 #ifndef DW_SENSORS_CODECS_CAMERA_CODECDATAVIDEO_H_
32 #define DW_SENSORS_CODECS_CAMERA_CODECDATAVIDEO_H_
33 
34 #include <dw/core/base/Types.h>
35 #include <dw/sensors/Codec.h>
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
41 // Video format
42 typedef enum {
48 
51 {
52  uint8_t sensorName[16];
53  uint16_t sensorRevID;
54  uint8_t serializerNameID[16];
55  uint16_t serializerRevID;
56  uint8_t bayerTypeID[4];
57  uint8_t scanlineOrderID;
58  uint8_t lensManuID[16];
59  uint8_t lensNameID[16];
60  uint16_t lensFOVID;
61  uint16_t imageWidth;
62  uint16_t imageHeight;
63 
64  // Group: MODULE_MAKER_INTRINSIC
68 
69  // Group: CHANNEL_COLOR_RESPONSES
70  uint16_t channelLightID;
71 
72  // Group: LENS_SHADING
73  uint8_t shadingLightID;
74  uint8_t shadingDataTypeID[2];
75 
76  // Group: FUSE_ID
77  uint16_t fuseID;
78 
79  // Group: INTRINSIC_PARAMETERS
82  uint8_t intrinsicFlagID;
83 
84  // Group: EXTRINSIC_PARAMETERS
86 
87  // Group: SECOND_INTRINSIC_PARAMETERS
91 
92  // Group: THIRD_INTRINSIC_PARAMETERS
96 
97  // Group least important parameters here so that its easy to remove them if needed
100  uint16_t iRCutFreqID;
104  uint64_t assmTimeID;
105  uint32_t assmLineID;
106  uint16_t channelMeasurementID[4]; // order of channels R, GR, GB, B
110 
111 // TODO (nperla): reconsile dwCodecCameraSIPLInfo with the sensor sipl structure
113 typedef struct dwCodecCameraSIPLInfo
114 {
115  char8_t cameraModuleName[64];
116  char8_t cameraModuleDescription[128];
117  char8_t interface[16];
118  uint32_t linkIndex;
119  bool cphyMode;
121  char8_t serializerName[64];
122  char8_t serializerDescription[128];
124  char8_t sensorParams[512];
127 
129 typedef struct dwCodecCameraMetadata
130 {
135  uint32_t sensorRevision;
136  uint32_t width;
137  uint32_t height;
140  uint32_t msbPosition;
143 
145 typedef struct dwCodecConfigVideo
146 {
148  uint32_t width;
149  uint32_t height;
150  uint32_t bitDepth;
151  uint64_t bitRate;
152  uint32_t frameRate;
153  dwCodecVideoFormat format;
157 
158 #ifdef __cplusplus
159 }
160 #endif
161 
162 #endif //DW_SENSORS_CODECS_CAMERA_CODECDATAVIDEO_H_
NVIDIA DriveWorks API: Core Types
Encoder rate control parameters.
Definition: Codec.h:154
float float32_t
Specifies POD types.
Definition: Types.h:70
dwCameraExposureControl
Enum of exposure control types.
Definition: Camera.h:132
dwEncoderConfigRateControl rateControl
dwCodecCameraMetadata cameraMetadata
NVIDIA DriveWorks API: Codec Methods
Required camera metadata for encoding and decoding video.
SIPL information.
dwCameraType
Enum of available camera sensors.
Definition: Camera.h:117
dwCodecCameraSIPLBlobEEPROM eeprom
dwCodecVideoFormat format
dwCameraFOV
Enum of available FOV in degrees for camera lenses.
Definition: Camera.h:146
dwCameraRawFormat rawFormat
dwCodecType
Codec Type.
Definition: Codec.h:70
SIPL EEPROM information.
char char8_t
Definition: Types.h:72
dwCodecCameraSIPLInfo siplInfo
dwCodecVideoFormat
dwCameraRawFormat
Raw encoding formats pixel-order.
Definition: Camera.h:93
The base configuration for all video encoders and decoders.
dwCameraExposureControl exposure