DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

Image.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) 2019 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 
49 #ifndef DWGL_IMAGE_IMAGE_H_
50 #define DWGL_IMAGE_IMAGE_H_
51 
52 #include <dw/image/Image.h>
53 
55 #include <dwvisualization/gl/GL.h>
56 
57 #ifdef __cplusplus
58 extern "C" {
59 #endif
60 
62 typedef struct dwImageGL
63 {
73 } dwImageGL;
74 
90  dwImageProperties properties,
91  dwContextHandle_t ctx);
92 
112  dwImageProperties properties,
113  void* buffersIn[DW_MAX_IMAGE_PLANES],
114  size_t pitches[DW_MAX_IMAGE_PLANES], size_t bufferCount,
115  dwContextHandle_t ctx);
116 
131  GLenum target);
132 
146 
147 #ifdef __cplusplus
148 }
149 #endif
150 
152 #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:99
#define DW_MAX_IMAGE_PLANES
Definition: Image.h:84
dwTime_t timestamp_us
Specifies the time, in microseconds, when the image was acquired.
Definition: Image.h:72
uint32_t GLuint
Definition: Image.h:62
uint32_t GLenum
Definition: Image.h:61
GLuint tex
Specifies the OpenGL texture handle.
Definition: Image.h:68
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
GLenum target
Specifies the OpenGL texture target.
Definition: Image.h:70
dwImageProperties prop
Specifies the properties of the image.
Definition: Image.h:66
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:178
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Definition: Types.h:82
#define DW_VIZ_API_PUBLIC
Definition: Exports.h:51
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:80
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:62
Defines the properties of the image.
Definition: Image.h:236