47#ifndef DW_FRAMECAPTURE_H_
48#define DW_FRAMECAPTURE_H_
187DW_DEPRECATED(
"dwFrameCapture_appendFrameCUDA: this function is deprecated, replace with the dwFrameCapture_appendFrame")
NVIDIA DriveWorks API: Sensor Serializer
struct dwContextObject * dwContextHandle_t
Context handle.
#define DW_DEPRECATED(msg)
dwStatus
Status definition.
uint32_t height
Height of the GL window / image.
dwSerializerParams params
SensorSerializer parameters, see SensorSerializer.h.
uint32_t width
Width of the GL window / image.
bool serializeGL
Boolean, if true it serializes DW_IMAGE_GL only, otherwise all other serializations (CUDA/CPU on X86,...
uint32_t mode
Logic OR of the dwFrameCaptureMode. Can be either or all. Useful for not allocating useless resources...
bool captureCustom
The frameCaptured image is returned as a dwImageGL.
DW_VIZ_API_PUBLIC dwStatus dwFrameCapture_release(dwFrameCaptureHandle_t framecapture)
Releases the frame capture module.
DW_VIZ_API_PUBLIC dwStatus dwFrameCapture_screenCapture(const dwImageGL **imageGL, const dwRect roi, dwFrameCaptureHandle_t framecapture)
It grabs what is currently rendered on the current frame buffer and returns a dwImageGL out of it For...
struct dwFrameCaptureObject * dwFrameCaptureHandle_t
Handle to a Frame Capture module object.
dwFrameCaptureMode
Enables FrameCapture functionalities. These can be set as a logical OR between the two modes....
DW_VIZ_API_PUBLIC dwStatus dwFrameCapture_fillSyncAttributes(NvSciSyncAttrList syncAttrList, dwFrameCaptureHandle_t framecapture)
Fill the sync attributes for the encoder to signal EOF fences.
DW_VIZ_API_PUBLIC dwStatus dwFrameCapture_initialize(dwFrameCaptureHandle_t *obj, const dwFrameCaptureParams *params, dwSALHandle_t sal, dwContextHandle_t ctx)
Create a new frame capture module.
DW_VIZ_API_PUBLIC dwStatus dwFrameCapture_appendFrameGL(const dwImageGL *img, dwFrameCaptureHandle_t framecapture)
Append a dwImageGL frame to the capture and it's serialized.
DW_VIZ_API_PUBLIC dwStatus dwFrameCapture_screenCaptureCustom(dwImageGL *imageGL, const dwRect roi, dwFrameCaptureHandle_t framecapture)
It grabs what is currently rendered on the current frame buffer and blits onto the input dwImageGL.
DW_VIZ_API_PUBLIC dwStatus dwFrameCapture_setSyncObject(NvSciSyncObj syncObj, dwFrameCaptureHandle_t framecapture)
Set the sync obj to which the encoder will wait on SOF fences.
DW_VIZ_API_PUBLIC dwStatus dwFrameCapture_appendFrame(const dwImageHandle_t img, dwFrameCaptureHandle_t framecapture)
Append a dwImageHandle frame to the capture and it's serialized.
DW_VIZ_API_PUBLIC dwStatus dwFrameCapture_appendFrameNvMedia(const dwImageNvMedia *img, dwFrameCaptureHandle_t framecapture)
Append a dwImageNvMedia frame to the capture and it's serialized.
DW_API_PUBLIC dwStatus dwFrameCapture_insertFence(NvSciSyncFence *syncFence, dwFrameCaptureHandle_t framecapture)
Insert fence to wait on completed operations.
DW_VIZ_API_PUBLIC dwStatus dwFrameCapture_appendFrameCUDA(const dwImageCUDA *img, dwFrameCaptureHandle_t framecapture)
Append a dwImageCUDA frame to the capture and it's serialized.
@ DW_FRAMECAPTURE_MODE_SERIALIZE
Serialize enables the creation of the serializer which allows the calls to dwFrameCapture_appendFrame...
@ DW_FRAMECAPTURE_MODE_SCREENCAP
Screencapture mode allocates GL resources that enable the capture of the current rendering Window via...
Initialization parameters for the frame capture module.
Defines a GL texture image.
struct dwImageObject * dwImageHandle_t
Defines a CPU-based image.
Holds the parameters for sensor serializer creation.
struct dwSALObject * dwSALHandle_t
Handle representing the Sensor Abstraction Layer interface.
#define DW_VIZ_API_PUBLIC
NVIDIA DriveWorks GL API: Image Conversion and Streaming Functionality