DriveWorks SDK Reference
5.10.90 Release
For Test and Development only

ImageStreamer.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) 2016-2022 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 DW_IMAGE_IMAGESTREAMER_H_
48#define DW_IMAGE_IMAGESTREAMER_H_
49
50#include <dw/core/base/Config.h>
53
54#include <dw/image/Image.h>
55
56#ifdef __cplusplus
57extern "C" {
58#endif
59
61typedef struct dwImageStreamerObject* dwImageStreamerHandle_t;
62
64
70
73{
74
81 const char* parameters;
82
87
104
117
133
162 const dwImageProperties* from, dwImageType to,
164
165#ifdef VIBRANTE
167
188DW_DEPRECATED("The cross process streamer is deprecated and will be removed in the next version. The dwChannel can be used instead for cross process image streaming")
190 const dwImageProperties* from, dwImageType to,
193
214DW_DEPRECATED("The EGL based cross process streamer is deprecated and will be removed in the next version.")
215// coverity[misra_c_2012_rule_5_1_violation] Deprecated API
217 dwImageProperties const* from, dwImageType to,
220#endif
221
240
258 dwImageStreamerHandle_t const streamer);
259
276 dwImageStreamerHandle_t const streamer);
277
292
304
305#ifdef __cplusplus
306}
307#endif
308
310#endif // DW_IMAGE_IMAGESSTREAMER_H_
NVIDIA DriveWorks API: Core Methods
NVIDIA DriveWorks API: Core Exports
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Definition: BasicTypes.h:63
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:83
#define DW_DEPRECATED(msg)
Definition: Exports.h:66
#define DW_API_PUBLIC
Definition: Exports.h:54
dwStatus
Status definition.
Definition: Status.h:173
struct dwImageObject * dwImageHandle_t
Definition: Image.h:102
dwImageType
Specifies the image type.
Definition: Image.h:90
Defines the properties of the image.
Definition: Image.h:390
const char * parameters
Array to additional parameters provided to cross-process image streamer creation.
Definition: ImageStreamer.h:81
dwImageStreamerCrossProcessMode mode
Operation mode of the cross-process image streamer.
Definition: ImageStreamer.h:85
DW_API_PUBLIC dwStatus dwImageStreamer_initializeCrossProcessEGL(dwImageStreamerHandle_t *streamer, dwImageProperties const *from, dwImageType to, dwImageStreamerCrossProcessModeParams params, dwContextHandle_t ctx)
Creates a variant of the cross process streamer based on EGL.
DW_API_PUBLIC dwStatus dwImageStreamer_getCUDAStream(cudaStream_t *stream, dwImageStreamerHandle_t streamer)
Get CUDA stream used by the image streamer.
struct dwImageStreamerObject * dwImageStreamerHandle_t
Definition: ImageStreamer.h:61
DW_API_PUBLIC dwStatus dwImageStreamer_getOutputProperties(dwImageProperties *props, dwImageStreamerHandle_t const streamer)
Get image properties of the image received from the streamer.
DW_API_PUBLIC dwStatus dwImageStreamer_release(dwImageStreamerHandle_t streamer)
Releases the image streamer.
DW_API_PUBLIC dwStatus dwImageStreamer_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 different API types acros...
dwImageStreamerCrossProcessMode
Definition: ImageStreamer.h:66
DW_API_PUBLIC dwStatus dwImageStreamer_initialize(dwImageStreamerHandle_t *streamer, const dwImageProperties *from, dwImageType to, dwContextHandle_t ctx)
Creates and initializes the image streamer capable of moving images between different API types.
DW_API_PUBLIC dwStatus dwImageStreamer_setCUDAStream(cudaStream_t stream, dwImageStreamerHandle_t streamer)
Sets the CUDA stream for CUDA related streaming operations such as post and receive.
DW_API_PUBLIC dwStatus dwImageStreamer_consumerReturn(dwImageHandle_t *image, dwImageStreamerHandle_t const streamer)
Return the received image back to the producer.
DW_API_PUBLIC dwStatus dwImageStreamer_consumerReceive(dwImageHandle_t *image, dwTime_t const timeoutUs, dwImageStreamerHandle_t const streamer)
Receive a pointer to a dwImageHandle_t from the streamer, acting as a consumer.
DW_API_PUBLIC dwStatus dwImageStreamer_producerReturn(dwImageHandle_t *const image, dwTime_t const timeoutUs, dwImageStreamerHandle_t const streamer)
The producer streamer waits for the image sent to be returned by the consumer.
DW_API_PUBLIC dwStatus dwImageStreamer_producerSend(dwImageHandle_t image, dwImageStreamerHandle_t const streamer)
Sends an image through the streamer acting as the producer.
@ DW_IMAGE_STREAMER_CROSS_PROCESS_CONSUMER
Definition: ImageStreamer.h:68
@ DW_IMAGE_STREAMER_CROSS_PROCESS_PRODUCER
Definition: ImageStreamer.h:67
Sets of parameters for cross-process image streamer creation.
Definition: ImageStreamer.h:73
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality