NVIDIA DeepStream SDK API Reference

9.2 Release
sources/libs/gst-nvdstensor/gstnvdstensor.h File Reference

Go to the source code of this file.

Data Structures

struct  GstNvDsTensorMemory
 This file describes the custom memory allocator for the Gstreamer TensorRT plugin. More...
 
struct  _GstNvDsTensorAllocatorParams
 

Typedefs

typedef struct _GstNvDsTensorAllocatorParams GstNvDsTensorAllocatorParams
 

Functions

GstNvDsTensorMemory * gst_nvdstensor_buffer_get_memory (GstBuffer *buffer)
 Get GstNvDsTensorMemory structure associated with buffer allocated using GstNvDsTensorAllocator. More...
 
GstAllocator * gst_nvdstensor_allocator_new (GstNvDsTensorAllocatorParams *params)
 Create a new GstNvDsTensorAllocator with the given parameters. More...
 

Typedef Documentation

◆ GstNvDsTensorAllocatorParams

Function Documentation

◆ gst_nvdstensor_allocator_new()

GstAllocator* gst_nvdstensor_allocator_new ( GstNvDsTensorAllocatorParams *  params)

Create a new GstNvDsTensorAllocator with the given parameters.

Parameters
paramsTensor allocator params.
Returns
Pointer to the GstNvDsTensorAllocator structure cast as GstAllocator

◆ gst_nvdstensor_buffer_get_memory()

GstNvDsTensorMemory* gst_nvdstensor_buffer_get_memory ( GstBuffer *  buffer)

Get GstNvDsTensorMemory structure associated with buffer allocated using GstNvDsTensorAllocator.

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