NVIDIA DeepStream SDK API Reference

6.4 Release
ConvBufManager Class Reference

Detailed Description

Definition at line 28 of file convbufmanager.h.

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 ()
 

Constructor & Destructor Documentation

◆ ConvBufManager()

ConvBufManager::ConvBufManager ( )

◆ ~ConvBufManager()

ConvBufManager::~ConvBufManager ( )

Member Function Documentation

◆ convertBatchAsync()

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

Perform surface transform for a batch asynchronously.

◆ deInit()

void ConvBufManager::deInit ( )

◆ getMaxPoolSize()

int ConvBufManager::getMaxPoolSize ( )
inline

Total pool size = num of buffer sets

Definition at line 51 of file convbufmanager.h.

References MAX_BUFFER_POOL_SIZE.

◆ init()

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

◆ isQueueEmpty()

bool ConvBufManager::isQueueEmpty ( )
inline

Definition at line 48 of file convbufmanager.h.

◆ isQueueFull()

bool ConvBufManager::isQueueFull ( )
inline

Getter.

Definition at line 45 of file convbufmanager.h.

References MAX_BUFFER_POOL_SIZE.

◆ returnBuffer()

void ConvBufManager::returnBuffer ( NvBufSurface pBufferSet)

Return unused buffer.

◆ syncBuffer()

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: