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