Copyright (c) 2018-2020, NVIDIA CORPORATION.
All rights reserved.
NVIDIA Corporation and its licensors retain all intellectual property and proprietary rights in and to this software, related documentation and any modifications thereto. Any use, reproduction, disclosure or distribution of this software and related documentation without an express license agreement from NVIDIA Corporation is strictly prohibited. This file describes the custom memory allocator for the Gstreamer TensorRT plugin. The allocator allocates memory for a specified batch_size of frames of resolution equal to the network input resolution and RGBA color format. The frames are allocated on device memory. Holds the pointer for the allocated memory.
Definition at line 31 of file gstnvinfer_allocator.h.
Data Fields | |
NvBufSurface * | surf |
std::vector< CUgraphicsResource > | cuda_resources |
Vector of cuda resources created by registering the above egl images in CUDA. More... | |
std::vector< CUeglFrame > | egl_frames |
Vector of CUDA eglFrames created by mapping the above cuda resources. More... | |
void * | dev_memory_ptr |
Pointer to the memory allocated for the batch of frames (DGPU). More... | |
std::vector< void * > | frame_memory_ptrs |
Vector of pointer to individual frame memories in the batch memory. More... | |
std::vector<CUgraphicsResource> GstNvInferMemory::cuda_resources |
Vector of cuda resources created by registering the above egl images in CUDA.
Definition at line 35 of file gstnvinfer_allocator.h.
void* GstNvInferMemory::dev_memory_ptr |
Pointer to the memory allocated for the batch of frames (DGPU).
Definition at line 39 of file gstnvinfer_allocator.h.
std::vector<CUeglFrame> GstNvInferMemory::egl_frames |
Vector of CUDA eglFrames created by mapping the above cuda resources.
Definition at line 37 of file gstnvinfer_allocator.h.
std::vector<void *> GstNvInferMemory::frame_memory_ptrs |
Vector of pointer to individual frame memories in the batch memory.
Definition at line 41 of file gstnvinfer_allocator.h.
NvBufSurface* GstNvInferMemory::surf |
Definition at line 33 of file gstnvinfer_allocator.h.