NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
Image_1.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2019-2024 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 
29 #ifndef DWGL_IMAGE_IMAGE_H_
30 #define DWGL_IMAGE_IMAGE_H_
31 
32 #include <dw/image/Image.h>
33 
34 #include <dwvisualization/core/Exports.h>
35 #include <dwvisualization/gl/GL.h>
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
42 typedef struct dwImageGL
43 {
48  GLuint tex;
50  GLenum target;
53 } dwImageGL;
54 
70  dwImageProperties properties,
72 
92  dwImageProperties properties,
93  void* buffersIn[DW_MAX_IMAGE_PLANES],
94  size_t pitches[DW_MAX_IMAGE_PLANES], size_t bufferCount,
96 
111  GLenum target);
112 
126 
127 #ifdef __cplusplus
128 }
129 #endif
130 
132 #endif // DWGL_IMAGE_IMAGE_H_
dwImageGL
Defines a GL texture image.
Definition: Image_1.h:42
DW_MAX_IMAGE_PLANES
#define DW_MAX_IMAGE_PLANES
Definition: Image.h:72
dwImage_createGL
DW_VIZ_API_PUBLIC dwStatus dwImage_createGL(dwImageHandle_t *image, dwImageProperties properties, dwContextHandle_t ctx)
Creates and allocates resources for a dwImageHandle_t based on the properties passed as input.
ctx
DW_API_PUBLIC dwPointCloudRangeImageCreatorParams const *const const dwContextHandle_t ctx
Definition: PointCloudRangeImageCreator.h:293
dwImageGL::tex
GLuint tex
Specifies the OpenGL texture handle.
Definition: Image_1.h:48
dwImage_createAndBindBufferGL
DW_VIZ_API_PUBLIC dwStatus dwImage_createAndBindBufferGL(dwImageHandle_t *image, dwImageProperties properties, void *buffersIn[DW_MAX_IMAGE_PLANES], size_t pitches[DW_MAX_IMAGE_PLANES], size_t bufferCount, dwContextHandle_t ctx)
Works only with DW_IMAGE_GL and DW_IMAGE_LAYOUT_BLOCK (or DEFAULT) memory layout, in which case the b...
dwImageGL::timestamp_us
dwTime_t timestamp_us
Specifies the time, in microseconds, when the image was acquired.
Definition: Image_1.h:52
dwImageGL::prop
dwImageProperties prop
Specifies the properties of the image.
Definition: Image_1.h:46
dwTime_t
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Definition: BasicTypes.h:54
dwImageProperties
Defines the properties of the image.
Definition: Image.h:477
dwContextHandle_t
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:74
dwImage_createAndBindTexture
DW_VIZ_API_PUBLIC dwStatus dwImage_createAndBindTexture(dwImageHandle_t *image, dwImageProperties properties, GLenum texID, GLenum target)
Creates a dwImageHandle_t based on the properties passed and binds a GL texture to it.
dwImageHandle_t
struct dwImageObject * dwImageHandle_t
Definition: Image.h:88
dwStatus
dwStatus
Status definition.
Definition: ErrorDefs.h:27
dwImageGL::target
GLenum target
Specifies the OpenGL texture target.
Definition: Image_1.h:50
dwImageGL
struct dwImageGL dwImageGL
Defines a GL texture image.
dwImage_getGL
DW_VIZ_API_PUBLIC dwStatus dwImage_getGL(dwImageGL **imageGL, dwImageHandle_t image)
Retrieves the dwImageGL of a dwImageHandle_t.
DW_VIZ_API_PUBLIC
#define DW_VIZ_API_PUBLIC
Definition: Exports_1.h:31