NVIDIA DeepStream SDK API Reference

9.0 Release
ConvBufManager Class Reference

Detailed Description

Public Member Functions

 ConvBufManager ()
 
 ~ConvBufManager ()
 
bool init (uint32_t batchSize, int32_t gpuId, int32_t compute_hw, NvBufSurfaceCreateParams &bufferParam, const bool empty)
 
void deInit ()
 
NvBufSurfaceconvertBatchAsync (NvBufSurface *pBatchIn, NvBufSurfTransformSyncObj_t *bufSetSyncObjs)
 Perform surface transform for a batch asynchronously. More...
 
void returnBuffer (NvBufSurface *pBufferSet)
 Return unused buffer. More...
 
void syncBuffer (NvBufSurface *pBufferSet, NvBufSurfTransformSyncObj_t *bufSetSyncObjs)
 Wait until surface transform is finished. More...
 
bool isQueueFull ()
 Getter. More...
 
bool isQueueEmpty ()
 
int getMaxPoolSize ()
 
 ConvBufManager ()
 
 ~ConvBufManager ()
 
bool init (uint32_t batchSize, int32_t gpuId, int32_t compute_hw, NvBufSurfaceCreateParams &bufferParam, const bool empty)
 
void deInit ()
 
NvBufSurfaceconvertBatchAsync (NvBufSurface *pBatchIn, NvBufSurfTransformSyncObj_t *bufSetSyncObjs)
 Perform surface transform for a batch asynchronously. More...
 
void returnBuffer (NvBufSurface *pBufferSet)
 Return unused buffer. More...
 
void syncBuffer (NvBufSurface *pBufferSet, NvBufSurfTransformSyncObj_t *bufSetSyncObjs)
 Wait until surface transform is finished. More...
 
bool isQueueFull ()
 Getter. More...
 
bool isQueueEmpty ()
 
int getMaxPoolSize ()
 

Constructor & Destructor Documentation

◆ ConvBufManager() [1/2]

ConvBufManager::ConvBufManager ( )

◆ ~ConvBufManager() [1/2]

ConvBufManager::~ConvBufManager ( )

◆ ConvBufManager() [2/2]

ConvBufManager::ConvBufManager ( )

◆ ~ConvBufManager() [2/2]

ConvBufManager::~ConvBufManager ( )

Member Function Documentation

◆ convertBatchAsync() [1/2]

NvBufSurface* ConvBufManager::convertBatchAsync ( NvBufSurface pBatchIn,
NvBufSurfTransformSyncObj_t bufSetSyncObjs 
)

Perform surface transform for a batch asynchronously.

◆ convertBatchAsync() [2/2]

NvBufSurface* ConvBufManager::convertBatchAsync ( NvBufSurface pBatchIn,
NvBufSurfTransformSyncObj_t bufSetSyncObjs 
)

Perform surface transform for a batch asynchronously.

◆ deInit() [1/2]

void ConvBufManager::deInit ( )

◆ deInit() [2/2]

void ConvBufManager::deInit ( )

◆ getMaxPoolSize() [1/2]

int ConvBufManager::getMaxPoolSize ( )
inline

Total pool size = num of buffer sets

Definition at line 51 of file 9.0/sources/gst-plugins/gst-nvtracker/convbufmanager.h.

References MAX_BUFFER_POOL_SIZE.

◆ getMaxPoolSize() [2/2]

int ConvBufManager::getMaxPoolSize ( )
inline

Total pool size = num of buffer sets

Definition at line 51 of file sources/gst-plugins/gst-nvtracker/convbufmanager.h.

References MAX_BUFFER_POOL_SIZE.

◆ init() [1/2]

bool ConvBufManager::init ( uint32_t  batchSize,
int32_t  gpuId,
int32_t  compute_hw,
NvBufSurfaceCreateParams bufferParam,
const bool  empty 
)

◆ init() [2/2]

bool ConvBufManager::init ( uint32_t  batchSize,
int32_t  gpuId,
int32_t  compute_hw,
NvBufSurfaceCreateParams bufferParam,
const bool  empty 
)

◆ isQueueEmpty() [1/2]

bool ConvBufManager::isQueueEmpty ( )
inline

◆ isQueueEmpty() [2/2]

bool ConvBufManager::isQueueEmpty ( )
inline

◆ isQueueFull() [1/2]

bool ConvBufManager::isQueueFull ( )
inline

Getter.

Definition at line 45 of file 9.0/sources/gst-plugins/gst-nvtracker/convbufmanager.h.

References MAX_BUFFER_POOL_SIZE.

◆ isQueueFull() [2/2]

bool ConvBufManager::isQueueFull ( )
inline

Getter.

Definition at line 45 of file sources/gst-plugins/gst-nvtracker/convbufmanager.h.

References MAX_BUFFER_POOL_SIZE.

◆ returnBuffer() [1/2]

void ConvBufManager::returnBuffer ( NvBufSurface pBufferSet)

Return unused buffer.

◆ returnBuffer() [2/2]

void ConvBufManager::returnBuffer ( NvBufSurface pBufferSet)

Return unused buffer.

◆ syncBuffer() [1/2]

void ConvBufManager::syncBuffer ( NvBufSurface pBufferSet,
NvBufSurfTransformSyncObj_t bufSetSyncObjs 
)

Wait until surface transform is finished.

◆ syncBuffer() [2/2]

void ConvBufManager::syncBuffer ( NvBufSurface pBufferSet,
NvBufSurfTransformSyncObj_t bufSetSyncObjs 
)

Wait until surface transform is finished.


The documentation for this class was generated from the following file: