DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

ImageStreamer.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 DWVISUALIZATION_IMAGE_IMAGESTREAMER_H_
50 #define DWVISUALIZATION_IMAGE_IMAGESTREAMER_H_
51 
54 
55 #ifdef __cplusplus
56 extern "C" {
57 #endif
58 
81  const dwImageProperties* from, dwImageType to,
82  dwContextHandle_t ctx);
83 
84 #ifdef VIBRANTE
85 
108  const dwImageProperties* from, dwImageType to,
110  dwContextHandle_t ctx);
111 #endif
112 
130 
147  dwImageStreamerHandle_t streamer);
148 
164  dwImageStreamerHandle_t streamer);
165 
180 
194 
211 
226 
239 
240 #ifdef __cplusplus
241 }
242 #endif
243 
245 #endif // DWGL_IMAGE_IMAGESSTREAMER_H_
DW_VIZ_API_PUBLIC dwStatus dwImageStreamerGL_consumerReturn(dwImageHandle_t *image, dwImageStreamerHandle_t streamer)
Return the received image back to the producer.
struct dwImageObject * dwImageHandle_t
Definition: Image.h:99
struct dwImageStreamerObject * dwImageStreamerHandle_t
Definition: ImageStreamer.h:63
NVIDIA DriveWorks GL API: Image Conversion and Streaming Functionality
DW_VIZ_API_PUBLIC dwStatus dwImageStreamerGL_producerSend(dwImageHandle_t image, dwImageStreamerHandle_t streamer)
Sends an image through the streamer acting as the producer.
NVIDIA DriveWorks API: Image Streamer
DW_VIZ_API_PUBLIC dwStatus dwImageStreamerGL_release(dwImageStreamerHandle_t streamer)
Releases the image streamer.
DW_VIZ_API_PUBLIC dwStatus dwImageStreamerGL_initialize(dwImageStreamerHandle_t *streamer, const dwImageProperties *from, dwImageType to, dwContextHandle_t ctx)
Creates and initializes the image streamer capable of moving images between GL and different API type...
dwStatus
Status definition.
Definition: Status.h:178
DW_VIZ_API_PUBLIC dwStatus dwImageStreamerGL_setCUDAStream(cudaStream_t stream, dwImageStreamerHandle_t streamer)
Sets the CUDA stream for CUDA related streaming operations such as post and receive.
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Definition: Types.h:82
dwImageType
Specifies the image type.
Definition: Image.h:87
#define DW_VIZ_API_PUBLIC
Definition: Exports.h:51
DW_VIZ_API_PUBLIC dwStatus dwImageStreamerGL_producerReturn(dwImageHandle_t *image, dwTime_t timeout_us, dwImageStreamerHandle_t streamer)
The producer streamer waits for the image sent to be returned by the consumer.
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:80
DW_VIZ_API_PUBLIC dwStatus dwImageStreamerGL_getCUDAStream(cudaStream_t *stream, dwImageStreamerHandle_t streamer)
Get CUDA stream used by the image streamer.
Sets of parameters for cross-process image streamer creation.
Definition: ImageStreamer.h:74
DW_VIZ_API_PUBLIC dwStatus dwImageStreamerGL_getOutputProperties(dwImageProperties *props, dwImageStreamerHandle_t streamer)
Get image properties of the image received from the streamer.
DW_VIZ_API_PUBLIC dwStatus dwImageStreamerGL_initializeCrossProcess(dwImageStreamerHandle_t *streamer, const dwImageProperties *from, dwImageType to, dwImageStreamerCrossProcessModeParams params, dwContextHandle_t ctx)
Creates and initializes the image streamer capable of moving images between GL and different API type...
DW_VIZ_API_PUBLIC dwStatus dwImageStreamerGL_consumerReceive(dwImageHandle_t *image, dwTime_t timeout_us, dwImageStreamerHandle_t streamer)
Receive a pointer to a dwImageHandle_t from the streamer, acting as a consumer.
Defines the properties of the image.
Definition: Image.h:236