NVIDIA DeepStream SDK API Reference

6.4 Release
ds3d::app::Ds3dAppContext Class Referenceabstract

Detailed Description

Definition at line 43 of file deepstream_3d_context.hpp.

Collaboration diagram for ds3d::app::Ds3dAppContext:

Public Member Functions

 Ds3dAppContext ()
 
virtual ~Ds3dAppContext ()
 
void setMainloop (GMainLoop *loop)
 
ErrCode init (const std::string &name)
 
Ds3dAppContextadd (const gst::ElePtr &ele)
 
ErrCode play ()
 
virtual ErrCode stop ()
 
bool isRunning (size_t timeout=0)
 
void quitMainLoop ()
 
void runMainLoop ()
 
virtual void deinit ()
 
ErrCode sendEOS ()
 
GstPipeline * pipeline () const
 
GstBus * bus () const
 
GMainLoop * mainLoop () const
 

Protected Member Functions

ErrCode setPipelineState (GstState state)
 
ErrCode setState (GstElement *ele, GstState state)
 
ErrCode getState (GstElement *ele, GstState *state, GstState *pending=nullptr, size_t timeout=0)
 
 DS3D_DISABLE_CLASS_COPY (Ds3dAppContext)
 

Static Protected Member Functions

static gboolean sBusCall (GstBus *bus, GstMessage *msg, gpointer data)
 

Protected Attributes

gst::ElePtr _pipeline
 
gst::BusPtr _bus
 
uint32_t _busWatchId = 0
 
std::vector< gst::ElePtr_elementList
 
ds3d::UniqPtr< GMainLoop > _mainLoop {nullptr, g_main_loop_unref}
 

Constructor & Destructor Documentation

◆ Ds3dAppContext()

ds3d::app::Ds3dAppContext::Ds3dAppContext ( )
inline

Definition at line 45 of file deepstream_3d_context.hpp.

◆ ~Ds3dAppContext()

virtual ds3d::app::Ds3dAppContext::~Ds3dAppContext ( )
inlinevirtual

Definition at line 46 of file deepstream_3d_context.hpp.

References deinit().

Member Function Documentation

◆ add()

Ds3dAppContext& ds3d::app::Ds3dAppContext::add ( const gst::ElePtr ele)
inline

◆ bus()

GstBus* ds3d::app::Ds3dAppContext::bus ( ) const
inline

Definition at line 152 of file deepstream_3d_context.hpp.

References _bus, and ds3d::gst::GstPtr< GstObjT, ObjFunc >::get().

Referenced by deinit(), init(), and sBusCall().

◆ deinit()

virtual void ds3d::app::Ds3dAppContext::deinit ( )
inlinevirtual

◆ DS3D_DISABLE_CLASS_COPY()

ds3d::app::Ds3dAppContext::DS3D_DISABLE_CLASS_COPY ( Ds3dAppContext  )
protected

◆ getState()

ErrCode ds3d::app::Ds3dAppContext::getState ( GstElement *  ele,
GstState *  state,
GstState *  pending = nullptr,
size_t  timeout = 0 
)
inlineprotected

Definition at line 176 of file deepstream_3d_context.hpp.

References DS_ASSERT, ds3d::kGood, ds3d::kGst, and ds3d::kUnknown.

Referenced by stop().

◆ init()

◆ isRunning()

bool ds3d::app::Ds3dAppContext::isRunning ( size_t  timeout = 0)
inline

Definition at line 102 of file deepstream_3d_context.hpp.

References DS_ASSERT, and pipeline().

◆ mainLoop()

GMainLoop* ds3d::app::Ds3dAppContext::mainLoop ( ) const
inline

Definition at line 153 of file deepstream_3d_context.hpp.

References _mainLoop.

Referenced by quitMainLoop(), and runMainLoop().

◆ pipeline()

GstPipeline* ds3d::app::Ds3dAppContext::pipeline ( ) const
inline

Definition at line 151 of file deepstream_3d_context.hpp.

References _pipeline, and ds3d::gst::GstPtr< GstObjT, ObjFunc >::get().

Referenced by add(), init(), isRunning(), and sendEOS().

◆ play()

ErrCode ds3d::app::Ds3dAppContext::play ( )
inline

Definition at line 72 of file deepstream_3d_context.hpp.

References _pipeline, DS_ASSERT, and setPipelineState().

◆ quitMainLoop()

void ds3d::app::Ds3dAppContext::quitMainLoop ( )
inline

Definition at line 118 of file deepstream_3d_context.hpp.

References mainLoop().

◆ runMainLoop()

void ds3d::app::Ds3dAppContext::runMainLoop ( )
inline

Definition at line 125 of file deepstream_3d_context.hpp.

References mainLoop().

◆ sBusCall()

static gboolean ds3d::app::Ds3dAppContext::sBusCall ( GstBus *  bus,
GstMessage *  msg,
gpointer  data 
)
inlinestaticprotected

Definition at line 194 of file deepstream_3d_context.hpp.

References bus(), and DS_ASSERT.

Referenced by init().

◆ sendEOS()

ErrCode ds3d::app::Ds3dAppContext::sendEOS ( )
inline

Definition at line 143 of file deepstream_3d_context.hpp.

References DS3D_FAILED_RETURN, ds3d::kGood, ds3d::kGst, and pipeline().

◆ setMainloop()

void ds3d::app::Ds3dAppContext::setMainloop ( GMainLoop *  loop)
inline

Definition at line 48 of file deepstream_3d_context.hpp.

References _mainLoop.

◆ setPipelineState()

ErrCode ds3d::app::Ds3dAppContext::setPipelineState ( GstState  state)
inlineprotected

Definition at line 160 of file deepstream_3d_context.hpp.

References _pipeline, DS_ASSERT, ds3d::gst::GstPtr< GstObjT, ObjFunc >::get(), and setState().

Referenced by play(), and stop().

◆ setState()

ErrCode ds3d::app::Ds3dAppContext::setState ( GstElement *  ele,
GstState  state 
)
inlineprotected

Definition at line 166 of file deepstream_3d_context.hpp.

References DS3D_FAILED_RETURN, DS_ASSERT, ds3d::kGood, and ds3d::kGst.

Referenced by setPipelineState(), and stop().

◆ stop()

virtual ErrCode ds3d::app::Ds3dAppContext::stop ( )
inlinevirtual

Field Documentation

◆ _bus

gst::BusPtr ds3d::app::Ds3dAppContext::_bus
protected

Definition at line 203 of file deepstream_3d_context.hpp.

Referenced by bus(), deinit(), and init().

◆ _busWatchId

uint32_t ds3d::app::Ds3dAppContext::_busWatchId = 0
protected

Definition at line 204 of file deepstream_3d_context.hpp.

Referenced by init().

◆ _elementList

std::vector<gst::ElePtr> ds3d::app::Ds3dAppContext::_elementList
protected

Definition at line 205 of file deepstream_3d_context.hpp.

Referenced by add(), deinit(), and stop().

◆ _mainLoop

ds3d::UniqPtr<GMainLoop> ds3d::app::Ds3dAppContext::_mainLoop {nullptr, g_main_loop_unref}
protected

Definition at line 206 of file deepstream_3d_context.hpp.

Referenced by deinit(), init(), mainLoop(), and setMainloop().

◆ _pipeline

gst::ElePtr ds3d::app::Ds3dAppContext::_pipeline
protected

Definition at line 202 of file deepstream_3d_context.hpp.

Referenced by add(), deinit(), init(), pipeline(), play(), setPipelineState(), and stop().


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