docs/html/classgstBufferManager.html
| | Jetson Inference
DNN Vision Library |
Public Member Functions | Protected Attributes | List of all members
gstBufferManager Class Reference Utilities Library (jetson-utils) » Codec
gstBufferManager recieves GStreamer buffers from appsink elements and unpacks/maps them into CUDA address space, and handles colorspace conversion into RGB format. More...
#include <gstBufferManager.h>
|
|
| | gstBufferManager (videoOptions *options) |
| | Constructor. More...
|
| |
| | ~gstBufferManager () |
| | Destructor. More...
|
| |
| bool | Enqueue (GstBuffer *buffer, GstCaps *caps) |
| | Enqueue a GstBuffer from GStreamer. More...
|
| |
| int | Dequeue (void **output, imageFormat format, uint64_t timeout=UINT64_MAX) |
| | Dequeue the next frame. More...
|
| |
| uint64_t | GetLastTimestamp () const |
| | Get timestamp of the latest dequeued frame. More...
|
| |
| imageFormat | GetRawFormat () const |
| | Get raw image format. More...
|
| |
| uint64_t | GetFrameCount () const |
| | Get the total number of frames that have been recieved. More...
|
| |
|
|
| imageFormat | mFormatYUV |
| | The YUV colorspace format coming from appsink (typically NV12 or YUY2) More...
|
| |
| RingBuffer | mBufferYUV |
| | Ringbuffer of CPU-based YUV frames (non-NVMM) that come from appsink. More...
|
| |
| RingBuffer | mTimestamps |
| | Ringbuffer of timestamps that come from appsink. More...
|
| |
| RingBuffer | mBufferRGB |
| | Ringbuffer of frames that have been converted to RGB colorspace. More...
|
| |
| uint64_t | mLastTimestamp |
| | Timestamp of the latest dequeued frame. More...
|
| |
| Event | mWaitEvent |
| | Event that gets triggered when a new frame is recieved. More...
|
| |
| videoOptions * | mOptions |
| | Options of the gstDecoder / gstCamera object. More...
|
| |
| uint64_t | mFrameCount |
| | Total number of frames that have been recieved. More...
|
| |
| bool | mNvmmUsed |
| | Is NVMM memory actually used by the stream? More...
|
| |
gstBufferManager recieves GStreamer buffers from appsink elements and unpacks/maps them into CUDA address space, and handles colorspace conversion into RGB format.
It can handle both normal CPU-based GStreamer buffers and NVMM memory which can be mapped directly to the GPU without requiring memory copies using the CPU.
To disable the use of NVMM memory, set -DENABLE_NVMM=OFF when building with CMake:
cmake -DENABLE_NVMM=OFF ../
| gstBufferManager::gstBufferManager | ( | videoOptions * | options | ) | |
Constructor.
| gstBufferManager::~gstBufferManager | ( | | ) | |
Destructor.
| int gstBufferManager::Dequeue | ( | void ** | output, |
| | | imageFormat | format, |
| | | uint64_t | timeout = UINT64_MAX |
| | ) | | |
Dequeue the next frame.
Returns 1 on success, 0 on timeout, -1 on error.
| bool gstBufferManager::Enqueue | ( | GstBuffer * | buffer, | | | | GstCaps * | caps | | | ) | | |
Enqueue a GstBuffer from GStreamer.
|
| uint64_t gstBufferManager::GetFrameCount | ( | | ) | const |
| inline |
Get the total number of frames that have been recieved.
|
| uint64_t gstBufferManager::GetLastTimestamp | ( | | ) | const |
| inline |
Get timestamp of the latest dequeued frame.
|
| imageFormat gstBufferManager::GetRawFormat | ( | | ) | const |
| inline |
Get raw image format.
|
| RingBuffer gstBufferManager::mBufferRGB |
| protected |
Ringbuffer of frames that have been converted to RGB colorspace.
|
| RingBuffer gstBufferManager::mBufferYUV |
| protected |
Ringbuffer of CPU-based YUV frames (non-NVMM) that come from appsink.
|
| imageFormat gstBufferManager::mFormatYUV |
| protected |
The YUV colorspace format coming from appsink (typically NV12 or YUY2)
|
| uint64_t gstBufferManager::mFrameCount |
| protected |
Total number of frames that have been recieved.
|
| uint64_t gstBufferManager::mLastTimestamp |
| protected |
Timestamp of the latest dequeued frame.
|
| bool gstBufferManager::mNvmmUsed |
| protected |
Is NVMM memory actually used by the stream?
|
| videoOptions* gstBufferManager::mOptions |
| protected |
Options of the gstDecoder / gstCamera object.
|
| RingBuffer gstBufferManager::mTimestamps |
| protected |
Ringbuffer of timestamps that come from appsink.
|
| Event gstBufferManager::mWaitEvent |
| protected |
Event that gets triggered when a new frame is recieved.
The documentation for this class was generated from the following file:
jetson-utils/gstBufferManager.h
Generated on Fri Mar 17 2023 14:29:30 for Jetson Inference by 1.8.17