NVIDIA DeepStream SDK API Reference

6.4 Release
gstnvinfer::DsNvInferImpl Class Reference

Detailed Description

Definition at line 213 of file gstnvinfer_impl.h.

Public Types

using ContextReplacementPtr = std::unique_ptr< std::tuple< NvDsInferContextPtr, NvDsInferContextInitParamsPtr, std::string > >
 

Public Member Functions

 DsNvInferImpl (GstNvInfer *infer)
 
 ~DsNvInferImpl ()
 
NvDsInferStatus start ()
 
void stop ()
 
bool isContextReady () const
 
bool triggerNewModel (const std::string &modelPath, ModelLoadType loadType)
 Load new model in separate thread. More...
 
NvDsInferStatus ensureReplaceNextContext ()
 replace context, action in submit_input_buffer More...
 
void notifyLoadModelStatus (const ModelStatus &res)
 

Data Fields

NvDsInferContextPtr m_InferCtx
 NvDsInferContext to be used for inferencing. More...
 
NvDsInferContextInitParamsPtr m_InitParams
 NvDsInferContext initialization params. More...
 

Member Typedef Documentation

◆ ContextReplacementPtr

Definition at line 217 of file gstnvinfer_impl.h.

Constructor & Destructor Documentation

◆ DsNvInferImpl()

gstnvinfer::DsNvInferImpl::DsNvInferImpl ( GstNvInfer infer)

◆ ~DsNvInferImpl()

gstnvinfer::DsNvInferImpl::~DsNvInferImpl ( )

Member Function Documentation

◆ ensureReplaceNextContext()

NvDsInferStatus gstnvinfer::DsNvInferImpl::ensureReplaceNextContext ( )

replace context, action in submit_input_buffer

◆ isContextReady()

bool gstnvinfer::DsNvInferImpl::isContextReady ( ) const
inline

Definition at line 226 of file gstnvinfer_impl.h.

References m_InferCtx.

◆ notifyLoadModelStatus()

void gstnvinfer::DsNvInferImpl::notifyLoadModelStatus ( const ModelStatus res)

◆ start()

NvDsInferStatus gstnvinfer::DsNvInferImpl::start ( )

◆ stop()

void gstnvinfer::DsNvInferImpl::stop ( )

◆ triggerNewModel()

bool gstnvinfer::DsNvInferImpl::triggerNewModel ( const std::string &  modelPath,
ModelLoadType  loadType 
)

Load new model in separate thread.

Field Documentation

◆ m_InferCtx

NvDsInferContextPtr gstnvinfer::DsNvInferImpl::m_InferCtx

NvDsInferContext to be used for inferencing.

Definition at line 236 of file gstnvinfer_impl.h.

Referenced by isContextReady().

◆ m_InitParams

NvDsInferContextInitParamsPtr gstnvinfer::DsNvInferImpl::m_InitParams

NvDsInferContext initialization params.

Definition at line 239 of file gstnvinfer_impl.h.


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