DriveWorks SDK Reference
4.0.0 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 
47 #ifndef DWVISUALIZATION_IMAGE_IMAGESTREAMER_H_
48 #define DWVISUALIZATION_IMAGE_IMAGESTREAMER_H_
49 
52 
53 #ifdef __cplusplus
54 extern "C" {
55 #endif
56 
79  const dwImageProperties* from, dwImageType to,
80  dwContextHandle_t ctx);
81 
82 #ifdef VIBRANTE
83 
106  const dwImageProperties* from, dwImageType to,
108  dwContextHandle_t ctx);
109 #endif
110 
128 
145  dwImageStreamerHandle_t streamer);
146 
162  dwImageStreamerHandle_t streamer);
163 
178 
192 
209 
224 
237 
238 #ifdef __cplusplus
239 }
240 #endif
241 
243 #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:100
struct dwImageStreamerObject * dwImageStreamerHandle_t
Definition: ImageStreamer.h:61
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:180
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:88
#define DW_VIZ_API_PUBLIC
Definition: Exports.h:49
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:79
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:72
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:238