NVIDIA DeepStream SDK API Reference

9.0 Release
gstnvinfer::DsNvInferImpl Class Reference

Detailed Description

Public Types

using ContextReplacementPtr = std::unique_ptr< std::tuple< NvDsInferContextPtr, NvDsInferContextInitParamsPtr, std::string > >
 
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)
 
 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 [1/2]

◆ ContextReplacementPtr [2/2]

Constructor & Destructor Documentation

◆ DsNvInferImpl() [1/2]

gstnvinfer::DsNvInferImpl::DsNvInferImpl ( GstNvInfer infer)

◆ ~DsNvInferImpl() [1/2]

gstnvinfer::DsNvInferImpl::~DsNvInferImpl ( )

◆ DsNvInferImpl() [2/2]

gstnvinfer::DsNvInferImpl::DsNvInferImpl ( GstNvInfer infer)

◆ ~DsNvInferImpl() [2/2]

gstnvinfer::DsNvInferImpl::~DsNvInferImpl ( )

Member Function Documentation

◆ ensureReplaceNextContext() [1/2]

NvDsInferStatus gstnvinfer::DsNvInferImpl::ensureReplaceNextContext ( )

replace context, action in submit_input_buffer

◆ ensureReplaceNextContext() [2/2]

NvDsInferStatus gstnvinfer::DsNvInferImpl::ensureReplaceNextContext ( )

replace context, action in submit_input_buffer

◆ isContextReady() [1/2]

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

Definition at line 227 of file 9.0/sources/gst-plugins/gst-nvinfer/gstnvinfer_impl.h.

References m_InferCtx.

◆ isContextReady() [2/2]

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

Definition at line 227 of file sources/gst-plugins/gst-nvinfer/gstnvinfer_impl.h.

References m_InferCtx.

◆ notifyLoadModelStatus() [1/2]

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

◆ notifyLoadModelStatus() [2/2]

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

◆ start() [1/2]

NvDsInferStatus gstnvinfer::DsNvInferImpl::start ( )

◆ start() [2/2]

NvDsInferStatus gstnvinfer::DsNvInferImpl::start ( )

◆ stop() [1/2]

void gstnvinfer::DsNvInferImpl::stop ( )

◆ stop() [2/2]

void gstnvinfer::DsNvInferImpl::stop ( )

◆ triggerNewModel() [1/2]

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

Load new model in separate thread.

◆ triggerNewModel() [2/2]

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 237 of file sources/gst-plugins/gst-nvinfer/gstnvinfer_impl.h.

Referenced by isContextReady().

◆ m_InitParams

NvDsInferContextInitParamsPtr gstnvinfer::DsNvInferImpl::m_InitParams

NvDsInferContext initialization params.

Definition at line 240 of file sources/gst-plugins/gst-nvinfer/gstnvinfer_impl.h.


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