NVIDIA DeepStream SDK API Reference

6.4 Release
gstnvdspreprocess_allocator.h File Reference

Go to the source code of this file.

Data Structures

struct  GstNvDsPreProcessMemory
 This file describes the custom memory allocator for the Gstreamer TensorRT plugin. More...
 
struct  GstNvDsPreProcessVideoBufferAllocatorInfo
 structure containing video buffer allocator info More...
 

Functions

GstNvDsPreProcessMemorygst_nvdspreprocess_buffer_get_memory (GstBuffer *buffer)
 Get GstNvDsPreProcessMemory structure associated with buffer allocated using GstNvDsPreProcessAllocator. More...
 
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. More...
 

Function Documentation

◆ gst_nvdspreprocess_allocator_new()

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.

Parameters
infovideo buffer allocator info.
raw_buf_sizesize of raw buffer to allocate.
gpu_idID of the gpu where the batch memory will be allocated.
debug_tensorboolean to denote if DEBUG_TENSOR flag is enabled.
Returns
Pointer to the GstNvDsPreProcessAllocator structure cast as GstAllocator

◆ gst_nvdspreprocess_buffer_get_memory()

GstNvDsPreProcessMemory* gst_nvdspreprocess_buffer_get_memory ( GstBuffer buffer)

Get GstNvDsPreProcessMemory structure associated with buffer allocated using GstNvDsPreProcessAllocator.

Parameters
bufferGstBuffer allocated by this allocator.
Returns
Pointer to the associated GstNvDsPreProcessMemory structure