DriveWorks SDK Reference
4.0.0 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 
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:100
#define DW_MAX_IMAGE_PLANES
Definition: Image.h:85
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:238