DriveWorks SDK Reference
5.4.5418 Release
For Test and Development only

Image.h
Go to the documentation of this file.
1 //
3 // Notice
4 // ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
5 // NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
6 // THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
7 // MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
8 //
9 // NVIDIA CORPORATION & AFFILIATES assumes no responsibility for the consequences of use of such
10 // information or for any infringement of patents or other rights of third parties that may
11 // result from its use. No license is granted by implication or otherwise under any patent
12 // or patent rights of NVIDIA CORPORATION & AFFILIATES. No third party distribution is allowed unless
13 // expressly authorized by NVIDIA. Details are subject to change without notice.
14 // This code supersedes and replaces all information previously supplied.
15 // NVIDIA CORPORATION & AFFILIATES products are not authorized for use as critical
16 // components in life support devices or systems without express written approval of
17 // NVIDIA CORPORATION & AFFILIATES.
18 //
19 // SPDX-FileCopyrightText: Copyright (c) 2019-2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
20 // SPDX-License-Identifier: LicenseRef-NvidiaProprietary
21 //
22 // NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
23 // property and proprietary rights in and to this material, related
24 // documentation and any modifications thereto. Any use, reproduction,
25 // disclosure or distribution of this material and related documentation
26 // without an express license agreement from NVIDIA CORPORATION or
27 // its affiliates is strictly prohibited.
28 //
30 
47 #ifndef DWGL_IMAGE_IMAGE_H_
48 #define DWGL_IMAGE_IMAGE_H_
49 
50 #include <dw/image/Image.h>
51 
53 #include <dwvisualization/gl/GL.h>
54 
55 #ifdef __cplusplus
56 extern "C" {
57 #endif
58 
60 typedef struct dwImageGL
61 {
71 } dwImageGL;
72 
88  dwImageProperties properties,
89  dwContextHandle_t ctx);
90 
110  dwImageProperties properties,
111  void* buffersIn[DW_MAX_IMAGE_PLANES],
112  size_t pitches[DW_MAX_IMAGE_PLANES], size_t bufferCount,
113  dwContextHandle_t ctx);
114 
129  GLenum target);
130 
144 
145 #ifdef __cplusplus
146 }
147 #endif
148 
150 #endif // DWGL_IMAGE_IMAGE_H_
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...
struct dwImageObject * dwImageHandle_t
Definition: Image.h:105
#define DW_MAX_IMAGE_PLANES
Definition: Image.h:86
dwTime_t timestamp_us
Specifies the time, in microseconds, when the image was acquired.
Definition: Image.h:70
uint32_t GLuint
Definition: Image.h:63
uint32_t GLenum
Definition: Image.h:62
GLuint tex
Specifies the OpenGL texture handle.
Definition: Image.h:66
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
GLenum target
Specifies the OpenGL texture target.
Definition: Image.h:68
dwImageProperties prop
Specifies the properties of the image.
Definition: Image.h:64
NVIDIA DriveWorks Visualization API: Exports
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...
dwStatus
Status definition.
Definition: Status.h:180
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Definition: Types.h:82
#define DW_VIZ_API_PUBLIC
Definition: Exports.h:49
NVIDIA DriveWorks API: GL Methods
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:79
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...
DW_VIZ_API_PUBLIC dwStatus dwImage_getGL(dwImageGL **imageGL, dwImageHandle_t image)
Retrieves the dwImageGL of a dwImageHandle_t.
Defines a GL texture image.
Definition: Image.h:60
Defines the properties of the image.
Definition: Image.h:367