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 | |
GstNvDsPreProcessMemory * | gst_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... | |
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.
info | video buffer allocator info. |
raw_buf_size | size of raw buffer to allocate. |
gpu_id | ID of the gpu where the batch memory will be allocated. |
debug_tensor | boolean to denote if DEBUG_TENSOR flag is enabled. |
GstNvDsPreProcessMemory* gst_nvdspreprocess_buffer_get_memory | ( | GstBuffer * | buffer | ) |
Get GstNvDsPreProcessMemory structure associated with buffer allocated using GstNvDsPreProcessAllocator.
buffer | GstBuffer allocated by this allocator. |