NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
Image.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2016-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 
33 #ifndef DW_IMAGE_IMAGE_H_
34 #define DW_IMAGE_IMAGE_H_
35 
36 #include <dw/core/base/Config.h>
37 #include <dw/core/base/Exports.h>
38 #include <dw/core/base/Types.h>
39 #include <dw/core/base/Status.h>
40 #include <dw/core/context/Context.h>
41 
42 #if (defined(__cplusplus) && (defined(LINUX) || defined(VIBRANTE)))
43 #pragma GCC diagnostic push
44 #pragma GCC diagnostic ignored "-Wold-style-cast"
45 #endif
46 
47 #if (defined(__cplusplus) && (defined(LINUX) || defined(VIBRANTE)))
48 #pragma GCC diagnostic pop
49 #endif
50 
51 #include <sys/time.h>
52 
53 #include <nvscibuf.h>
54 
55 #ifdef DW_SDK_BUILD_PVA
56 #include <cupva_host_scheduling.h>
57 #endif
58 
59 #ifdef __cplusplus
60 extern "C" {
61 #endif
62 
67 typedef enum dwSyncType {
68  DW_SYNC_TYPE_WAITER, // The sync will wait for a signaler
69  DW_SYNC_TYPE_SIGNALER, // The sync will notify the waiters
70 } dwSyncType;
71 
72 #define DW_MAX_IMAGE_PLANES 3
73 #define DW_ISP_MAX_COLOR_COMPONENT (4U)
74 #define DW_MAX_NUM_TEMPERATURES 4
76 #define DW_IMAGE_NUM_SPLINE_COMPONENTS 18U
77 
79 typedef enum dwImageType {
85  DW_IMAGE_GL = 0xFF
86 } dwImageType;
87 
88 typedef struct dwImageObject* dwImageHandle_t;
89 typedef struct dwImageObject const* dwConstImageHandle_t;
90 
92 typedef struct dwImageAllocationAttrList* dwImageAllocationAttrListHandle_t;
93 
95 typedef struct dwImagePool
96 {
100  size_t imageCount;
101 } dwImagePool;
102 
105 typedef enum dwImageFormat {
108 
109  // Interleaved formats
111 
118 
124 
133 
139 
141 
142  // interleaved YUV444 format
145 
146  // Planar formats
154 
159 
164 
170 
171  // planar YUV 444
180 
181 } dwImageFormat;
182 
184 typedef enum {
191 
193 
195 typedef struct dwImageDataLines
196 {
198  uint32_t bytesPerLine;
199 
202 
204  uint8_t* topLineData;
206  uint8_t* bottomLineData;
208 
210 typedef enum {
211 
216 
219 
222 
226 
230 
233 
236 
239 
242 
245 
248 
252 
254 {
262 
263 // This is the max number of exposures supported currently
264 #define DW_DEVBLK_CDI_MAX_EXPOSURES 4
265 
266 typedef struct dwExposureDuration
267 {
273 
274 typedef struct dwSensorTemperature
275 {
286 
288 #define DW_LUMINANCE_CALIB_MATRIX_SIZE 4
289 typedef struct dwImageSensorStatistics
291 {
294 
298 
301 
304 
307 
310 
313 
330  float64_t luminanceCalibrationFactor DW_DEPRECATED("This structure variable is deprecated and will be removed in the next major release. Please use the new variable in luminanceCalibrationMatrix in this struct");
331 
337 
340 
343 
346 
349 
352 
355 
360 
362  bool nightMode;
364 
365 typedef struct dwImageRawProperties
366 {
368  uint32_t msbPosition;
369 
376 
380  uint32_t rawBitDataType;
381 
387 
389 typedef struct dwImageTimestamps
390 {
413 
415 typedef struct dwImageMetaData
416 {
418  uint32_t flags;
419 
422 
424  float32_t exposureTime
425  DW_DEPRECATED("This structure variable is deprecated and will be removed in the next major release. Please use the new variable in sensorStatistics in this struct");
426 
428  float32_t analogGain
429  DW_DEPRECATED("This structure variable is deprecated and will be removed in the next major release. Please use the new variable in sensorStatistics in this struct");
430 
432  float32_t conversionGain
433  DW_DEPRECATED("This structure variable is deprecated and will be removed in the next major release. Please use the new variable in sensorStatistics in this struct");
434 
436  float32_t digitalGain
437  DW_DEPRECATED("This structure variable is deprecated and will be removed in the next major release. Please use the new variable in sensorStatistics in this struct");
438 
440  float32_t wbGain[4] DW_DEPRECATED("This structure variable is deprecated and will be removed in the next major release. Please use the new variable in sensorStatistics in this struct");
441 
443  uint32_t msbPosition
444  DW_DEPRECATED("This structure variable is deprecated and will be removed in the next major release. Please use the new variable in rawProperties in this struct");
445 
448 
457 
458  // Holds properties unique to raw images
460 
461  // All paramters from here are read-only
462 
465 
468 
471 
473  int32_t colorStdPriv;
475 
477 typedef struct dwImageProperties
478 {
482  uint32_t width;
484  uint32_t height;
492 
494 typedef struct dwImageCPU
495 {
505 } dwImageCPU;
506 
508 typedef struct dwImageCUDA
509 {
513  size_t pitch[DW_MAX_IMAGE_PLANES]; // pitch in bytes
521 } dwImageCUDA;
522 
524 typedef struct dwImageNvMedia
525 {
528 
535 
553  dwImageProperties properties,
554  dwContextHandle_t const ctx);
555 
578  dwImageProperties properties,
579  void* const buffersIn[DW_MAX_IMAGE_PLANES],
580  size_t const pitches[DW_MAX_IMAGE_PLANES], size_t const bufferCount,
581  dwContextHandle_t const ctx);
582 
603  dwImageProperties properties,
604  cudaArray_t const buffers[DW_MAX_IMAGE_PLANES], size_t const bufferCount,
605  dwContextHandle_t const ctx);
606 
622 
623 // specifiers
624 
640 
656 
672 
689 
704 dwStatus dwImage_setMetaData(dwImageMetaData const* const metaData, dwImageHandle_t const image);
705 
722 dwStatus dwImage_getCPU(dwImageCPU** const imageCPU, dwImageHandle_t const image);
723 
739 dwStatus dwImage_getCUDA(dwImageCUDA** const imageCUDA, dwImageHandle_t const image);
740 
758 
774 
789 dwStatus dwImage_getPlaneCount(size_t* const planeCount, dwImageFormat const format);
790 
814 dwStatus dwImage_copyConvert(dwImageHandle_t const output, dwConstImageHandle_t const input, dwContextHandle_t const context);
815 
840 dwStatus dwImage_copyConvertAsync(dwImageHandle_t const output, dwConstImageHandle_t const input, cudaStream_t const stream, dwContextHandle_t const context);
841 
865 DW_API_PUBLIC dwStatus dwImage_getDataLayout(size_t* const elementSize,
866  size_t* const planeCount,
867  uint32_t planeChannelCount[DW_MAX_IMAGE_PLANES],
868  dwVector2ui planeSize[DW_MAX_IMAGE_PLANES],
869  dwImageProperties const* const prop);
870 
871 #ifdef DW_SDK_BUILD_PVA
872 
887 DW_API_PUBLIC dwStatus dwImage_getCUPVA(void** ptr, dwImageHandle_t image);
888 #endif
889 
912  dwImageProperties const* properties,
913  NvSciBufObj nvscibufObj,
914  dwContextHandle_t const ctx);
915 
932 
933 #ifdef __cplusplus
934 }
935 #endif
936 
938 #endif // DW_IMAGE_IMAGE_H_
DW_IMAGE_FLAGS_SENSOR_TEMPERATURE
@ DW_IMAGE_FLAGS_SENSOR_TEMPERATURE
Image contains valid sensor temperature info.
Definition: Image.h:244
dwImageTimestamps
Image timestamps.
Definition: Image.h:389
dwImageMetaData
struct dwImageMetaData dwImageMetaData
Additional meta information stored with each image.
DW_IMAGE_FORMAT_RG_UINT8
@ DW_IMAGE_FORMAT_RG_UINT8
Not backed by NvSci.
Definition: Image.h:121
dwImageMemoryType
dwImageMemoryType
Specifies memory type layout.
Definition: Image.h:184
dwImageDataLines
struct dwImageDataLines dwImageDataLines
Container for data lines from the camera.
dwImageRawProperties::rawBitDataType
uint32_t rawBitDataType
Describes the raw pixel depth, specified like the above format descriptor by 1 - NVM_SURF_ATTR_BITS_P...
Definition: Image.h:380
DW_ISP_MAX_COLOR_COMPONENT
#define DW_ISP_MAX_COLOR_COMPONENT
Definition: Image.h:73
DW_SYNC_TYPE_SIGNALER
@ DW_SYNC_TYPE_SIGNALER
Definition: Image.h:69
dwImageSensorStatistics::conversionGain
float32_t conversionGain
Specifies the conversion Gain (scalar value)
Definition: Image.h:303
dwImageSensorStatistics
struct dwImageSensorStatistics dwImageSensorStatistics
Sensor statistics associated with the image.
DW_IMAGE_FORMAT_RGBA_FLOAT16
@ DW_IMAGE_FORMAT_RGBA_FLOAT16
Definition: Image.h:136
dwImageTimestamps::eofTimestampUs
dwTime_t eofTimestampUs
Specifies the time, in microseconds, when the last row of the image was fully exposed,...
Definition: Image.h:406
DW_IMAGE_FORMAT_RGBX_FLOAT16
@ DW_IMAGE_FORMAT_RGBX_FLOAT16
Definition: Image.h:140
dwImageMetaData::sensorStatistics
dwImageSensorStatistics sensorStatistics
Holds info on sensor statistics at the time of the image capture.
Definition: Image.h:464
DW_MAX_IMAGE_PLANES
#define DW_MAX_IMAGE_PLANES
Definition: Image.h:72
DW_IMAGE_FLAGS_SYSMEM
@ DW_IMAGE_FLAGS_SYSMEM
By default CUDA images are created in vidmem on DGPU, this flag forces CUDA image to sysmem Note manu...
Definition: Image.h:225
dwImageMetaData::dataLines
dwImageDataLines dataLines
embedded data lines.
Definition: Image.h:456
dwImage_getProperties
DW_API_PUBLIC dwStatus dwImage_getProperties(dwImageProperties *const properties, dwConstImageHandle_t const image)
Retrieves the properties of a dwImageHandle_t.
dwImageSensorStatistics::autoAwbGain
float32_t autoAwbGain[DW_ISP_MAX_COLOR_COMPONENT]
Holds the total white balance gains, which includes both sensor channel and ISP gains....
Definition: Image.h:339
dwImagePool::imageCount
size_t imageCount
Number of images in the pool.
Definition: Image.h:100
dwImageMetaData::gtmSplineControlPoint
dwImageSplineControlPoint gtmSplineControlPoint[DW_IMAGE_NUM_SPLINE_COMPONENTS]
Holds the global tonemap block, containing a set of spline control points.
Definition: Image.h:467
dwImageCUDA::timestamp_us
dwTime_t timestamp_us
Specifies the time in microseconds from system time epoch, when the image content was updated (ie EOF...
Definition: Image.h:520
dwImageProperties::memoryLayout
dwImageMemoryType memoryLayout
Memory layout type.
Definition: Image.h:490
dwImageSplineControlPoint
Definition: Image.h:253
DW_IMAGE_FORMAT_RCC_FLOAT32_PLANAR
@ DW_IMAGE_FORMAT_RCC_FLOAT32_PLANAR
Not backed by NvSci.
Definition: Image.h:163
DW_IMAGE_FORMAT_VUYX_UINT8
@ DW_IMAGE_FORMAT_VUYX_UINT8
Definition: Image.h:143
dwImage_getMetaData
DW_API_PUBLIC dwStatus dwImage_getMetaData(dwImageMetaData *const metaData, dwConstImageHandle_t const image)
Retrieves the metadata of a dwImageHandle_t.
dwImageDataLines::bottomLineData
uint8_t * bottomLineData
pointer to the beginning of bottom lines
Definition: Image.h:206
dwImageFormat
dwImageFormat
Format of the image represented as DW_IMAGE_FORMAT_COLORSPACE(_PIXELTYPE)(_PIXELORDER)
Definition: Image.h:105
dwImage_getCUDA
DW_API_PUBLIC dwStatus dwImage_getCUDA(dwImageCUDA **const imageCUDA, dwImageHandle_t const image)
Retrieves the dwImageCUDA of a dwImageHandle_t.
dwImageSensorStatistics::luminanceCalibrationMatrix
float64_t luminanceCalibrationMatrix[DW_LUMINANCE_CALIB_MATRIX_SIZE][DW_LUMINANCE_CALIB_MATRIX_SIZE]
Holds the luminance calibration matrix for the sensor.
Definition: Image.h:336
dwImageSensorStatistics::wbGain
float32_t wbGain[4]
Specifies the sensor white balance gains : R(0) G1(1) G2(2) B(3) (scalar value)
Definition: Image.h:309
ctx
DW_API_PUBLIC dwPointCloudRangeImageCreatorParams const *const const dwContextHandle_t ctx
Definition: PointCloudRangeImageCreator.h:293
DW_IMAGE_FORMAT_YUV420_UINT16_SEMIPLANAR
@ DW_IMAGE_FORMAT_YUV420_UINT16_SEMIPLANAR
Definition: Image.h:168
dwImageCUDA::prop
dwImageProperties prop
Defines the properties of the image.
Definition: Image.h:511
DW_IMAGE_FORMAT_R_FLOAT16
@ DW_IMAGE_FORMAT_R_FLOAT16
Definition: Image.h:115
dwImageSensorStatistics::DW_DEPRECATED
float64_t luminanceCalibrationFactor DW_DEPRECATED("This structure variable is deprecated and will be removed in the next major release. Please use the new variable in luminanceCalibrationMatrix in this struct")
(note: parameter to be deprecated starting 6.0.7.0) Holds a luminance calibration factor ( K / f^2 ) ...
DW_IMAGE_NVMEDIA
@ DW_IMAGE_NVMEDIA
Definition: Image.h:82
dwImage_copyConvertAsync
DW_API_PUBLIC dwStatus dwImage_copyConvertAsync(dwImageHandle_t const output, dwConstImageHandle_t const input, cudaStream_t const stream, dwContextHandle_t const context)
Converts CUDA or NvMedia images by copying into an output image, following the properties in the outp...
DW_IMAGE_FORMAT_UNKNOWN
@ DW_IMAGE_FORMAT_UNKNOWN
Normal formats.
Definition: Image.h:107
dwVector2ui
Defines a two-element unsigned-integer vector.
Definition: MatrixTypes.h:63
dwSensorTemperature::numTemperatures
uint8_t numTemperatures
Holds the number of active temperatures.
Definition: Image.h:280
DW_IMAGE_FLAGS_TOTAL_WHITE_BALANCE_GAIN
@ DW_IMAGE_FLAGS_TOTAL_WHITE_BALANCE_GAIN
Holds the total white balance gains, which includes both sensor channel and ISP gains.
Definition: Image.h:238
DW_IMAGE_FORMAT_YUV422_UINT8_SEMIPLANAR
@ DW_IMAGE_FORMAT_YUV422_UINT8_SEMIPLANAR
Definition: Image.h:169
dwImageSensorStatistics::exposureDurationUs
dwExposureDuration exposureDurationUs
Specifies the exposure duration (microsecond)
Definition: Image.h:293
DW_IMAGE_FORMAT_YUV_UINT16_PLANAR
@ DW_IMAGE_FORMAT_YUV_UINT16_PLANAR
Definition: Image.h:173
dwImageCPU
Defines a CPU-based image.
Definition: Image.h:494
dwImage_copyConvert
DW_API_PUBLIC dwStatus dwImage_copyConvert(dwImageHandle_t const output, dwConstImageHandle_t const input, dwContextHandle_t const context)
Converts CUDA or NvMedia images by copying into an output image, following the properties in the outp...
dwImageCPU::prop
dwImageProperties prop
Specifies the properites of the image.
Definition: Image.h:497
dwImage_setMetaData
DW_API_PUBLIC dwStatus dwImage_setMetaData(dwImageMetaData const *const metaData, dwImageHandle_t const image)
Sets the metadata of a dwImageHandle_t.
dwImageProperties::type
dwImageType type
Specifies the type of image.
Definition: Image.h:480
DW_IMAGE_FORMAT_RGBA_UINT8
@ DW_IMAGE_FORMAT_RGBA_UINT8
Definition: Image.h:134
dwImageMetaData::allocAttrs
dwImageAllocationAttrListHandle_t allocAttrs
Allocation attributes used by internal drivers.
Definition: Image.h:470
dwImageAllocationAttrListHandle_t
struct dwImageAllocationAttrList * dwImageAllocationAttrListHandle_t
dwImage Allocation Attributes List
Definition: Image.h:92
timestamp
const WFDPipeline const WFDSource const WFDTransition const WFDRect *const const WFDuint64 timestamp
Definition: wfdext.h:61
DW_IMAGE_FORMAT_YUV420_UINT8_PLANAR
@ DW_IMAGE_FORMAT_YUV420_UINT8_PLANAR
YUV encoding formats from camera.
Definition: Image.h:166
dwImage_create
DW_API_PUBLIC dwStatus dwImage_create(dwImageHandle_t *const image, dwImageProperties properties, dwContextHandle_t const ctx)
Creates and allocates resources for a dwImageHandle_t based on the properties passed as input.
dwImageSplineControlPoint
struct dwImageSplineControlPoint dwImageSplineControlPoint
NvSciBufObj
struct NvSciBufObjRefRec * NvSciBufObj
Definition: wfdext.h:71
dwImageCPU
struct dwImageCPU dwImageCPU
Defines a CPU-based image.
DW_IMAGE_FORMAT_R_UINT16
@ DW_IMAGE_FORMAT_R_UINT16
Definition: Image.h:113
DW_IMAGE_FLAGS_HAS_RAW_ORDER_DESCRIPTOR
@ DW_IMAGE_FLAGS_HAS_RAW_ORDER_DESCRIPTOR
Image contains details of raw order descriptor.
Definition: Image.h:229
DW_IMAGE_FORMAT_R_INT16
@ DW_IMAGE_FORMAT_R_INT16
Definition: Image.h:110
dwImageSensorStatistics::sceneDynamicRange
float32_t sceneDynamicRange
Holds the scene dynamic range. (scalar value)
Definition: Image.h:348
DW_IMAGE_FORMAT_YUV_UINT8_PLANAR
@ DW_IMAGE_FORMAT_YUV_UINT8_PLANAR
Definition: Image.h:172
dwImage_createAndBindCUDAArray
DW_API_PUBLIC dwStatus dwImage_createAndBindCUDAArray(dwImageHandle_t *const image, dwImageProperties properties, cudaArray_t const buffers[DW_MAX_IMAGE_PLANES], size_t const bufferCount, dwContextHandle_t const ctx)
Creates a dwImageHandle_t based on the properties passed and binds a cudaArray_t to it.
dwImageProperties
struct dwImageProperties dwImageProperties
Defines the properties of the image.
dwImageSensorStatistics::alpha
float32_t alpha
Holds power factor for isp statistics compression. Valid range: [0.5, 1.0] (scalar value)
Definition: Image.h:312
dwImageCPU::data
void * data[DW_MAX_IMAGE_PLANES]
Specifies the raw image data.
Definition: Image.h:501
DW_IMAGE_FORMAT_RCB_FLOAT32_PLANAR
@ DW_IMAGE_FORMAT_RCB_FLOAT32_PLANAR
Not backed by NvSci.
Definition: Image.h:158
DW_IMAGE_FORMAT_RGB_FLOAT16
@ DW_IMAGE_FORMAT_RGB_FLOAT16
Not backed by NvSci.
Definition: Image.h:130
cupva_host_scheduling.h
dwImageSensorStatistics::rawImageMidTone
float32_t rawImageMidTone
Holds the midtone value of the raw image. (scalar value)
Definition: Image.h:354
dwConstImageHandle_t
struct dwImageObject const * dwConstImageHandle_t
Definition: Image.h:89
dwImageProperties::meta
dwImageMetaData meta
additional meta information stored with the image. Not all images might provide it
Definition: Image.h:488
DW_IMAGE_FORMAT_R_UINT8
@ DW_IMAGE_FORMAT_R_UINT8
Definition: Image.h:112
DW_IMAGE_FORMAT_RCB_FLOAT16_PLANAR
@ DW_IMAGE_FORMAT_RCB_FLOAT16_PLANAR
Not backed by NvSci.
Definition: Image.h:156
dwImage_getNvMedia
DW_API_PUBLIC dwStatus dwImage_getNvMedia(dwImageNvMedia **imageNvMedia, dwImageHandle_t image)
Retrieves the dwImageNvMedia of a dwImageHandle_t.
DW_IMAGE_FORMAT_RGB_UINT8_PLANAR
@ DW_IMAGE_FORMAT_RGB_UINT8_PLANAR
Not backed by NvSci.
Definition: Image.h:148
DW_IMAGE_MEMORY_TYPE_DEFAULT
@ DW_IMAGE_MEMORY_TYPE_DEFAULT
the default memory layout for a given image type, can be either pitch or block
Definition: Image.h:186
dwImageNvMedia
Defines an NvMedia image.
Definition: Image.h:524
DW_IMAGE_MEMORY_TYPE_PITCH
@ DW_IMAGE_MEMORY_TYPE_PITCH
pitch linear memory layout
Definition: Image.h:188
dwImage_getTimestamp
DW_API_PUBLIC dwStatus dwImage_getTimestamp(dwTime_t *const timestamp, dwConstImageHandle_t const image)
Retrieves the timestamp of acquisition of a dwImageHandle_t.
dwSensorTemperature::dataCelsius
float32_t dataCelsius[DW_MAX_NUM_TEMPERATURES]
Holds the values of active sensor temperatures in degrees Celsius.
Definition: Image.h:284
DW_IMAGE_FORMAT_RGB_UINT16_PLANAR
@ DW_IMAGE_FORMAT_RGB_UINT16_PLANAR
Definition: Image.h:149
dwSensorTemperature
Definition: Image.h:274
dwImageProperties::width
uint32_t width
Specifies the width of the image in pixels.
Definition: Image.h:482
dwImageNvMedia::imgBuf
NvSciBufObj imgBuf
Holds the pointer to the NvSciBufObj image.
Definition: Image.h:530
DW_IMAGE_FORMAT_RAW_UINT16
@ DW_IMAGE_FORMAT_RAW_UINT16
RAW for images directly from sensory.
Definition: Image.h:177
dwImage_getDataLayout
DW_API_PUBLIC dwStatus dwImage_getDataLayout(size_t *const elementSize, size_t *const planeCount, uint32_t planeChannelCount[DW_MAX_IMAGE_PLANES], dwVector2ui planeSize[DW_MAX_IMAGE_PLANES], dwImageProperties const *const prop)
Returns the expected data layout of an image given its properties.
DW_MAX_NUM_TEMPERATURES
#define DW_MAX_NUM_TEMPERATURES
should be the same as the DEVBLK_CDI_MAX_NUM_TEMPERATURES in NvSIPLCDICommon.h of NvSIPL
Definition: Image.h:75
dwImageCUDA
Defines a CUDA image.
Definition: Image.h:508
dwImage_getNvSciBuf
DW_API_PUBLIC dwStatus dwImage_getNvSciBuf(NvSciBufObj *nvSciBufObj, dwImageHandle_t image)
Retrieve the NvSciBufObj backing the image allocation.
dwExposureDuration
struct dwExposureDuration dwExposureDuration
dwTime_t
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Definition: BasicTypes.h:54
float32_t
float float32_t
Specifies POD types.
Definition: BasicTypes.h:41
dwImageSplineControlPoint::x
float32_t x
Holds X coordinate of the control point.
Definition: Image.h:256
DW_IMAGE_CPU
@ DW_IMAGE_CPU
Definition: Image.h:80
dwImageMetaData::colorStdPriv
int32_t colorStdPriv
ColorStd attributes used by internal drivers.
Definition: Image.h:473
DW_IMAGE_FORMAT_RGB_FLOAT32
@ DW_IMAGE_FORMAT_RGB_FLOAT32
Not backed by NvSci.
Definition: Image.h:132
DW_IMAGE_FORMAT_RGBA_UINT16
@ DW_IMAGE_FORMAT_RGBA_UINT16
Definition: Image.h:135
DW_IMAGE_FORMAT_RG_INT16
@ DW_IMAGE_FORMAT_RG_INT16
Definition: Image.h:119
dwImageSensorStatistics::nightMode
bool nightMode
Holds day-night mode (true: Night mode, false: Day mode)
Definition: Image.h:362
dwImageRawProperties
Definition: Image.h:365
DW_IMAGE_CUDA
@ DW_IMAGE_CUDA
Definition: Image.h:81
DW_IMAGE_FORMAT_RGB_UINT16
@ DW_IMAGE_FORMAT_RGB_UINT16
Not backed by NvSci.
Definition: Image.h:128
dwExposureDuration::data
float32_t data[DW_DEVBLK_CDI_MAX_EXPOSURES]
Specifies the exposure duration (microsecond) Each row of the image is captured using DW_DEVBLK_CDI_M...
Definition: Image.h:271
dwImage_destroy
DW_API_PUBLIC dwStatus dwImage_destroy(dwImageHandle_t const image)
Destroys the image handle and frees any memory created by dwImage_create().
DW_SYNC_TYPE_WAITER
@ DW_SYNC_TYPE_WAITER
Definition: Image.h:68
dwImageDataLines::topLineData
uint8_t * topLineData
pointer to the beginning of top lines
Definition: Image.h:204
DW_IMAGE_FORMAT_RG_FLOAT32
@ DW_IMAGE_FORMAT_RG_FLOAT32
Not backed by NvSci.
Definition: Image.h:123
dwImageCUDA::pitch
size_t pitch[DW_MAX_IMAGE_PLANES]
Defines the pitch of each plane in bytes.
Definition: Image.h:513
DW_IMAGE_FORMAT_YUV422_UINT8_PACKED
@ DW_IMAGE_FORMAT_YUV422_UINT8_PACKED
Definition: Image.h:174
dwImageMetaData::frameSequenceNumber
uint32_t frameSequenceNumber
Holds a frame sequence number, that is, a monotonically increasing frame counter.
Definition: Image.h:447
dwImageSensorStatistics::analogGain
float32_t analogGain
Specifies the analog Gain (scalar value)
Definition: Image.h:300
dwImage_getPixelType
DW_API_PUBLIC dwStatus dwImage_getPixelType(dwTrivialDataType *const type, dwImageFormat const format)
Retrieves dwTrivialDataType associated with a specific format.
dwImageCPU::timestamp_us
dwTime_t timestamp_us
Specifies the time in microseconds from system time epoch, when the image content was updated (ie EOF...
Definition: Image.h:504
dwImageSensorStatistics::sceneBrightness
float32_t sceneBrightness
Holds the scene brightness level. (scalar value)
Definition: Image.h:351
dwImageCUDA
struct dwImageCUDA dwImageCUDA
Defines a CUDA image.
dwImageMetaData
Additional meta information stored with each image.
Definition: Image.h:415
dwImageTimestamps::subExposureStartTimestampUs
dwTime_t subExposureStartTimestampUs[DW_DEVBLK_CDI_MAX_EXPOSURES]
Sub exposure start timestamps in microseconds.
Definition: Image.h:411
dwImageSensorStatistics::exposureTime
float32_t exposureTime
Specifies the exposure time (microsecond) This variable is deprecated and will be removed in the next...
Definition: Image.h:297
DW_IMAGE_FLAGS_SENSOR_SETTINGS
@ DW_IMAGE_FLAGS_SENSOR_SETTINGS
Image contains valid sensor settings information, such as exposure, gain, whitebalance,...
Definition: Image.h:218
dwImageTimestamps::tscEofTimestampUs
dwTime_t tscEofTimestampUs
Specifies the TSC time, in microseconds, when the last row of the image was fully exposed in TSC time...
Definition: Image.h:409
WFDCommitType
WFDCommitType
Definition: wfd.h:112
dwImage_getCPU
DW_API_PUBLIC dwStatus dwImage_getCPU(dwImageCPU **const imageCPU, dwImageHandle_t const image)
Retrieves the dwImageCPU of a dwImageHandle_t.
dwImageRawProperties::rawFormatDescriptor
uint32_t rawFormatDescriptor
Describes the raw order and used when explicitly creating a DW_IMAGE_NVMEDIA if DW_IMAGE_FLAGS_HAS_RA...
Definition: Image.h:375
dwImage_createAndBindBuffer
DW_API_PUBLIC dwStatus dwImage_createAndBindBuffer(dwImageHandle_t *const image, dwImageProperties properties, void *const buffersIn[DW_MAX_IMAGE_PLANES], size_t const pitches[DW_MAX_IMAGE_PLANES], size_t const bufferCount, dwContextHandle_t const ctx)
Creates a dwImageHandle_t based on the properties passed and binds a memory buffer provided by the ap...
dwImagePool::images
dwImageHandle_t * images
Pointer to image handles.
Definition: Image.h:98
DW_IMAGE_FORMAT_RAW_FLOAT16
@ DW_IMAGE_FORMAT_RAW_FLOAT16
for debayered images
Definition: Image.h:179
dwImage_getPlaneCount
DW_API_PUBLIC dwStatus dwImage_getPlaneCount(size_t *const planeCount, dwImageFormat const format)
Retrieves number of planes of the image format.
dwImageRawProperties::msbPosition
uint32_t msbPosition
Specifies the msb of the pixel data.
Definition: Image.h:368
DW_DEVBLK_CDI_MAX_EXPOSURES
#define DW_DEVBLK_CDI_MAX_EXPOSURES
Definition: Image.h:264
DW_IMAGE_FORMAT_R_UINT32
@ DW_IMAGE_FORMAT_R_UINT32
Definition: Image.h:114
DW_IMAGE_FLAGS_LUMINANCE_CALIBRATED
@ DW_IMAGE_FLAGS_LUMINANCE_CALIBRATED
Holds a flag to indicating if the luminance is calibrated.
Definition: Image.h:235
dwImageProperties
Defines the properties of the image.
Definition: Image.h:477
DW_IMAGE_FORMAT_YUV420_UINT8_SEMIPLANAR
@ DW_IMAGE_FORMAT_YUV420_UINT8_SEMIPLANAR
Definition: Image.h:167
float64_t
double float64_t
Definition: BasicTypes.h:42
dwImageDataLines
Container for data lines from the camera.
Definition: Image.h:195
dwImageSensorStatistics::brightnessKey
float32_t brightnessKey
Holds the scene brightness key. (scalar value)
Definition: Image.h:345
dwImageMetaDataFlags
dwImageMetaDataFlags
Flags defining the meta information available in an image.
Definition: Image.h:210
dwContextHandle_t
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:74
dwImageNvMedia::timestamp_us
dwTime_t timestamp_us
Specifies the time in microseconds from system time epoch, when the image content was updated (ie EOF...
Definition: Image.h:533
dwImageTimestamps
struct dwImageTimestamps dwImageTimestamps
Image timestamps.
DW_IMAGE_MEMORY_TYPE_BLOCK
@ DW_IMAGE_MEMORY_TYPE_BLOCK
block memory layout
Definition: Image.h:190
DW_IMAGE_FORMAT_RCC_FLOAT16_PLANAR
@ DW_IMAGE_FORMAT_RCC_FLOAT16_PLANAR
Not backed by NvSci.
Definition: Image.h:161
dwImageSplineControlPoint::slope
float64_t slope
Holds slope of the spline curve at the control point.
Definition: Image.h:260
dwImageNvMedia
struct dwImageNvMedia dwImageNvMedia
Defines an NvMedia image.
DW_IMAGE_FORMAT_RGB_FLOAT32_PLANAR
@ DW_IMAGE_FORMAT_RGB_FLOAT32_PLANAR
Not backed by NvSci.
Definition: Image.h:153
nvscibuf.h
NVIDIA Software Communications Interface (SCI) : NvSciBuf
dwImageTimestamps::moeTimestampUs
dwTime_t moeTimestampUs
This time indicates the middle of the image frame exposure.
Definition: Image.h:403
dwImageHandle_t
struct dwImageObject * dwImageHandle_t
Definition: Image.h:88
dwImageType
dwImageType
Specifies the image type.
Definition: Image.h:79
dwImageProperties::format
dwImageFormat format
Specifies the format of the image.
Definition: Image.h:486
DW_IMAGE_FORMAT_VUYX_UINT16
@ DW_IMAGE_FORMAT_VUYX_UINT16
Definition: Image.h:144
dwImageRawProperties
struct dwImageRawProperties dwImageRawProperties
dwStatus
dwStatus
Status definition.
Definition: ErrorDefs.h:27
dwImagePool
Specifies a pool of images.
Definition: Image.h:95
dwImageMetaData::flags
uint32_t flags
combination of multiple flags 'dwImageMetaDataFlags' defining which of the meta fields are valid
Definition: Image.h:418
DW_IMAGE_FLAGS_NVSCI_SURF_ATTR
@ DW_IMAGE_FLAGS_NVSCI_SURF_ATTR
Image contains NvSci surface based attributes.
Definition: Image.h:247
dwImageMetaData::rawProperties
dwImageRawProperties rawProperties
Definition: Image.h:459
DW_IMAGE_FORMAT_RGB_FLOAT16_PLANAR
@ DW_IMAGE_FORMAT_RGB_FLOAT16_PLANAR
Not backed by NvSci.
Definition: Image.h:151
dwImageDataLines::embeddedDataSize
dwVector2ui embeddedDataSize
this defines the number of rows before and after the image
Definition: Image.h:201
DW_IMAGE_FLAGS_CONTROLINFO
@ DW_IMAGE_FLAGS_CONTROLINFO
Holds a flag to determine whether or not the control info is valid. If no ISP processing occurs this ...
Definition: Image.h:232
dwImage_setTimestamp
DW_API_PUBLIC dwStatus dwImage_setTimestamp(dwTime_t const timestamp, dwImageHandle_t const image)
Sets the timestamp of a dwImageHandle_t.
dwImageCPU::pitch
size_t pitch[DW_MAX_IMAGE_PLANES]
Specifies the pitch of the image in bytes.
Definition: Image.h:499
dwImageTimestamps::sofTimestampUs
dwTime_t sofTimestampUs
Rolling shutter timestamp fields: startOfFrameTimestampUs and endOfFrameTimestampUs can be used to co...
Definition: Image.h:397
DW_IMAGE_FLAGS_MAPS_CUPVA
@ DW_IMAGE_FLAGS_MAPS_CUPVA
Image maps pointer to CUPVA.
Definition: Image.h:250
DW_IMAGE_FLAGS_EMBEDDED_LINES
@ DW_IMAGE_FLAGS_EMBEDDED_LINES
If an image was extracted from a camera, additional embedded data lines might be provided The data li...
Definition: Image.h:215
dwImagePool
struct dwImagePool dwImagePool
Specifies a pool of images.
DW_API_PUBLIC
#define DW_API_PUBLIC
Definition: Exports.h:38
dwExposureDuration
Definition: Image.h:266
dwImageMetaData::DW_DEPRECATED
float32_t exposureTime DW_DEPRECATED("This structure variable is deprecated and will be removed in the next major release. Please use the new variable in sensorStatistics in this struct")
Specifies the exposure time (microsecond)
dwImageRawProperties::rawFormatRJ
bool rawFormatRJ
Describes if raw order alignment is left justified(msb alligned) or right justified (lsb allignment) ...
Definition: Image.h:385
DW_IMAGE_FLAGS_FRAME_SEQUENCE_NUMBER
@ DW_IMAGE_FLAGS_FRAME_SEQUENCE_NUMBER
Image contains valid frame sequence number.
Definition: Image.h:221
dwImageProperties::height
uint32_t height
Specifies the height of the image in pixels.
Definition: Image.h:484
dwSyncType
dwSyncType
Enum representing a sync type.
Definition: Image.h:67
dwImageSensorStatistics::digitalGain
float32_t digitalGain
Specifies the digital Gain (scalar value)
Definition: Image.h:306
dwImage_createAndBindNvSciBuf
DW_API_PUBLIC dwStatus dwImage_createAndBindNvSciBuf(dwImageHandle_t *const image, dwImageProperties const *properties, NvSciBufObj nvscibufObj, dwContextHandle_t const ctx)
Creates a dwImageHandle_t based on the properties passed and binds a memory buffer provided by the ap...
dwImageDataLines::bytesPerLine
uint32_t bytesPerLine
Number of bytes for each line.
Definition: Image.h:198
dwImageMetaData::imageTimestamps
dwImageTimestamps imageTimestamps
Specifies image timestamps.
Definition: Image.h:421
dwImageSplineControlPoint::y
float32_t y
Holds Y coordinate of the control point.
Definition: Image.h:258
DW_IMAGE_NUM_SPLINE_COMPONENTS
#define DW_IMAGE_NUM_SPLINE_COMPONENTS
Definition: Image.h:76
dwTrivialDataType
dwTrivialDataType
Specifies a type indicator of the underlying trivial data type.
Definition: TypesExtra.h:42
dwImageSensorStatistics::cct
float32_t cct
Holds the correlated color temperature. (scalar value)
Definition: Image.h:342
DW_IMAGE_FORMAT_R_FLOAT32
@ DW_IMAGE_FORMAT_R_FLOAT32
Not backed by NvSci.
Definition: Image.h:117
dwImageNvMedia::prop
dwImageProperties prop
Holds image properties.
Definition: Image.h:527
DW_LUMINANCE_CALIB_MATRIX_SIZE
#define DW_LUMINANCE_CALIB_MATRIX_SIZE
Defines the length(M) of a MxM luminance calibration matrix.
Definition: Image.h:288
dwImageCUDA::dptr
void * dptr[DW_MAX_IMAGE_PLANES]
Holds the pointer to the image planes.
Definition: Image.h:515
dwImageSensorStatistics
Sensor statistics associated with the image.
Definition: Image.h:290
dwSensorTemperature
struct dwSensorTemperature dwSensorTemperature
DW_IMAGE_FORMAT_RGB_UINT8
@ DW_IMAGE_FORMAT_RGB_UINT8
Not backed by NvSci.
Definition: Image.h:126
DW_IMAGE_FLAGS_GTM_SPLINE_INFO
@ DW_IMAGE_FLAGS_GTM_SPLINE_INFO
Image contains valid global tone map block.
Definition: Image.h:241
DW_IMAGE_FORMAT_RGBA_FLOAT32
@ DW_IMAGE_FORMAT_RGBA_FLOAT32
Not backed by NvSci.
Definition: Image.h:138
dwImageSensorStatistics::sensorTemperature
dwSensorTemperature sensorTemperature
Holds the values of active sensor temperatures in degrees Celsius.
Definition: Image.h:359
DW_IMAGE_GL
@ DW_IMAGE_GL
This type is provided here for completeness only.
Definition: Image.h:85
dwImageCUDA::array
cudaArray_t array[DW_MAX_IMAGE_PLANES]
Holds the CUDA image plane data.
Definition: Image.h:517