NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
visualization/image/Image.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2019-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 
29 #ifndef DWGL_IMAGE_IMAGE_H_
30 #define DWGL_IMAGE_IMAGE_H_
31 
32 #include <dw/image/Image.h>
33 
35 #include <dw/visualization/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,
71  dwContextHandle_t ctx);
72 
92  dwImageProperties properties,
93  void* buffersIn[DW_MAX_IMAGE_PLANES],
94  size_t pitches[DW_MAX_IMAGE_PLANES], size_t bufferCount,
95  dwContextHandle_t ctx);
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: visualization/image/Image.h:42
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.
dwImageGL::tex
GLuint tex
Specifies the OpenGL texture handle.
Definition: visualization/image/Image.h:48
Image.h
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: visualization/image/Image.h:52
Exports.h
dwImageGL::prop
dwImageProperties prop
Specifies the properties of the image.
Definition: visualization/image/Image.h:46
dwTime_t
int64_t dwTime_t
Definition: core/base/BasicTypes.h:65
GL.h
dwStatus
dwStatus
Status definition.
Definition: ErrorDefs.h:32
DW_MAX_IMAGE_PLANES
#define DW_MAX_IMAGE_PLANES
Maximum number of image planes.
Definition: image/Image.h:76
dwImageHandle_t
struct dwImageObject * dwImageHandle_t
Handle to an image object.
Definition: image/Image.h:99
dwImageProperties
Defines the properties of the image.
Definition: image/Image.h:523
dwContextHandle_t
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:81
DW_VIZ_API_PUBLIC
#define DW_VIZ_API_PUBLIC
Definition: visualization/core/Exports.h:31
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.
dwImageGL::target
GLenum target
Specifies the OpenGL texture target.
Definition: visualization/image/Image.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.