DriveWorks SDK Reference
5.16.65 Release
For Test and Development only

Image.h
Go to the documentation of this file.
1
2//
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
54
55#ifdef __cplusplus
56extern "C" {
57#endif
58
60typedef struct dwImageGL
61{
66 GLuint tex;
68 GLenum target;
71} dwImageGL;
72
88 dwImageProperties properties,
90
110 dwImageProperties properties,
111 void* buffersIn[DW_MAX_IMAGE_PLANES],
112 size_t pitches[DW_MAX_IMAGE_PLANES], size_t bufferCount,
114
129 GLenum target);
130
144
145#ifdef __cplusplus
146}
147#endif
148
150#endif // DWGL_IMAGE_IMAGE_H_
dwStatus
Status definition.
Definition: ErrorDefs.h:44
NVIDIA DriveWorks API: GL Methods
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Definition: BasicTypes.h:65
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:86
GLuint tex
Specifies the OpenGL texture handle.
Definition: Image.h:66
GLenum target
Specifies the OpenGL texture target.
Definition: Image.h:68
dwTime_t timestamp_us
Specifies the time, in microseconds, when the image was acquired.
Definition: Image.h:70
dwImageProperties prop
Specifies the properties of the image.
Definition: Image.h:64
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...
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.
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:61
struct dwImageObject * dwImageHandle_t
Definition: Image.h:105
#define DW_MAX_IMAGE_PLANES
Definition: Image.h:89
Defines the properties of the image.
Definition: Image.h:492
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
NVIDIA DriveWorks Visualization API: Exports
#define DW_VIZ_API_PUBLIC
Definition: Exports.h:49