47 #ifndef DW_FRAMECAPTURE_H_ 48 #define DW_FRAMECAPTURE_H_ 54 #include <nvscisync.h> 143 dwFrameCaptureHandle_t framecapture);
157 dwFrameCaptureHandle_t framecapture);
194 dwStatus dwFrameCapture_appendFrameCPU(
const dwImageCPU* img, dwFrameCaptureHandle_t framecapture);
243 #endif // DW_FRAMECAPTURE_H_ DW_VIZ_API_PUBLIC dwStatus dwFrameCapture_appendFrameGL(const dwImageGL *img, dwFrameCaptureHandle_t framecapture)
Append a dwImageGL frame to the capture and it's serialized.
uint32_t height
Height of the GL window / image.
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.
struct dwImageObject * dwImageHandle_t
uint32_t mode
Logic OR of the dwFrameCaptureMode. Can be either or all. Useful for not allocating useless resources...
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.
Serialize enables the creation of the serializer which allows the calls to dwFrameCapture_appendFrame...
NVIDIA DriveWorks API: Sensor Serializer
bool captureCustom
The frameCaptured image is returned as a dwImageGL.
NVIDIA DriveWorks GL API: Image Conversion and Streaming Functionality
Holds the parameters for sensor serializer creation.
DW_VIZ_API_PUBLIC dwStatus dwFrameCapture_fillSyncAttributes(NvSciSyncAttrList syncAttrList, dwFrameCaptureHandle_t framecapture)
Fill the sync attributes for the encoder to signal EOF fences.
dwSerializerParams params
SensorSerializer parameters, see SensorSerializer.h.
dwStatus
Status definition.
bool serializeGL
Boolean, if true it serializes DW_IMAGE_GL only, otherwise all other serializations (CUDA/CPU on X86...
dwFrameCaptureMode
Enables FrameCapture functionalities. These can be set as a logical OR between the two modes...
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_initialize(dwFrameCaptureHandle_t *obj, const dwFrameCaptureParams *params, dwSALHandle_t sal, dwContextHandle_t ctx)
Create a new frame capture module.
#define DW_VIZ_API_PUBLIC
struct dwSALObject * dwSALHandle_t
Handle representing the Sensor Abstraction Layer interface.
Screencapture mode allocates GL resources that enable the capture of the current rendering Window via...
DW_VIZ_API_PUBLIC dwStatus dwFrameCapture_appendFrameNvMedia(const dwImageNvMedia *img, dwFrameCaptureHandle_t framecapture)
Append a dwImageNvMedia frame to the capture and it's serialized.
struct dwContextObject * dwContextHandle_t
Context handle.
struct dwFrameCaptureObject * dwFrameCaptureHandle_t
Handle to a Frame Capture module object.
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...
uint32_t width
Width of the GL window / image.
DW_VIZ_API_PUBLIC dwStatus dwFrameCapture_appendFrameCUDA(const dwImageCUDA *img, dwFrameCaptureHandle_t framecapture)
Append a dwImageCUDA frame to the capture and it's serialized.
Defines a GL texture image.
Initialization parameters for the frame capture module.
Defines a CPU-based image.