47#ifndef DWVISUALIZATION_IMAGE_IMAGESTREAMER_H_
48#define DWVISUALIZATION_IMAGE_IMAGESTREAMER_H_
105DW_DEPRECATED(
"The CrossProcess api is deprecated and will be removed in the next version.")
struct dwContextObject * dwContextHandle_t
Context handle.
#define DW_DEPRECATED(msg)
dwStatus
Status definition.
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
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.
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_setCUDAStream(cudaStream_t stream, dwImageStreamerHandle_t streamer)
Sets the CUDA stream for CUDA related streaming operations such as post and receive.
DW_VIZ_API_PUBLIC dwStatus dwImageStreamerGL_getCUDAStream(cudaStream_t *stream, dwImageStreamerHandle_t streamer)
Get CUDA stream used by the image streamer.
DW_VIZ_API_PUBLIC dwStatus dwImageStreamerGL_release(dwImageStreamerHandle_t streamer)
Releases the image streamer.
DW_VIZ_API_PUBLIC dwStatus dwImageStreamerGL_producerSend(dwImageHandle_t image, dwImageStreamerHandle_t streamer)
Sends an image through the streamer acting as the producer.
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_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.
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...
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
dwImageType
Specifies the image type.
Defines the properties of the image.
struct dwImageStreamerObject * dwImageStreamerHandle_t
Sets of parameters for cross-process image streamer creation.
NVIDIA DriveWorks API: Image Streamer
#define DW_VIZ_API_PUBLIC
NVIDIA DriveWorks GL API: Image Conversion and Streaming Functionality