|
NVIDIA DeepStream SDK API Reference
|
7.0 Release
|
Go to the documentation of this file.
13 #ifndef __GSTNVDSPREPROCESSALLOCATOR_H__
14 #define __GSTNVDSPREPROCESSALLOCATOR_H__
16 #include <cuda_runtime_api.h>
83 guint gpu_id, gboolean debug_tensor);
GstAllocator * gst_nvdspreprocess_allocator_new(GstNvDsPreProcessVideoBufferAllocatorInfo *info, size_t raw_buf_size, guint gpu_id, gboolean debug_tensor)
Create a new GstNvDsPreProcessAllocator with the given parameters.
GstNvDsPreProcessMemory * gst_nvdspreprocess_buffer_get_memory(GstBuffer *buffer)
Get GstNvDsPreProcessMemory structure associated with buffer allocated using GstNvDsPreProcessAllocat...
std::vector< CUeglFrame > egl_frames
Vector of CUDA eglFrames created by mapping the above cuda resources.
Holds information about batched buffers.
NvBufSurface * surf
surface corresponding to memory allocated
structure containing video buffer allocator info
NvBufSurfaceMemType memory_type
memory type of buffer
guint batch_size
batch size
NvBufSurfaceMemType
Specifies memory types for NvBufSurface.
std::vector< CUgraphicsResource > cuda_resources
Vector of cuda resources created by registering the above egl images in CUDA.
std::vector< void * > frame_memory_ptrs
Vector of pointer to individual frame memories in the batch memory.
struct _GstBuffer GstBuffer
guint width
video buffer width
This file describes the custom memory allocator for the Gstreamer TensorRT plugin.
void * dev_memory_ptr
Pointer to the memory allocated for the batch of frames (DGPU).
guint height
video buffer height
NvBufSurfaceColorFormat color_format
color format
NvBufSurfaceColorFormat
Defines color formats for NvBufSurface.