Definition at line 24 of file deepstream_can_context_priv.hpp.
Public Member Functions | |
Ds3dAppContext () | |
virtual | ~Ds3dAppContext () |
void | setMainloop (GMainLoop *loop) |
ErrCode | init (const std::string &name) |
Ds3dAppContext & | add (const gst::ElePtr &ele) |
ErrCode | play () |
virtual ErrCode | stop () |
bool | isRunning (size_t timeout=0) |
void | quitMainLoop () |
void | waitLoopQuit () |
void | runMainLoop (std::function< void()> loopQuitCb) |
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) |
std::mutex & | mutex () const |
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} |
bool | _eosAutoQuit = false |
std::unique_ptr< std::thread > | _mainLoopThread |
bool | _mainStopped = false |
bool | _eosReceived = false |
std::mutex | _streamMutex |
std::condition_variable | _stoppedCond |
bool | _isdGPU = true |
|
inline |
Definition at line 26 of file deepstream_can_context_priv.hpp.
|
inlinevirtual |
Definition at line 27 of file deepstream_can_context_priv.hpp.
References deinit().
|
inline |
Definition at line 50 of file deepstream_can_context_priv.hpp.
References _elementList, _pipeline, ds3d::gst::GstPtr< GstObjT, ObjFunc >::copy(), DS3D_THROW_ERROR, DS_ASSERT, and pipeline().
|
inline |
Definition at line 182 of file deepstream_can_context_priv.hpp.
References _bus, and ds3d::gst::GstPtr< GstObjT, ObjFunc >::get().
Referenced by deinit(), init(), and sBusCall().
|
inlinevirtual |
Reimplemented in CameraCanApp.
Definition at line 162 of file deepstream_can_context_priv.hpp.
References _bus, _elementList, _mainLoop, _pipeline, bus(), and ds3d::gst::GstPtr< GstObjT, ObjFunc >::reset().
Referenced by CameraCanApp::deinit(), and ~Ds3dAppContext().
|
protected |
|
inlineprotected |
Definition at line 206 of file deepstream_can_context_priv.hpp.
References DS_ASSERT.
Referenced by stop().
|
inline |
Definition at line 31 of file deepstream_can_context_priv.hpp.
References _bus, _busWatchId, _isdGPU, _mainLoop, _pipeline, bus(), DS3D_FAILED_RETURN, DS_ASSERT, pipeline(), ds3d::gst::GstPtr< GstObjT, ObjFunc >::reset(), sBusCall(), and ds3d::gst::GstPtr< GstObjT, ObjFunc >::setName().
|
inline |
Definition at line 94 of file deepstream_can_context_priv.hpp.
References _eosReceived, _mainStopped, mainLoop(), mutex(), and pipeline().
|
inline |
Definition at line 183 of file deepstream_can_context_priv.hpp.
References _mainLoop.
Referenced by isRunning(), quitMainLoop(), runMainLoop(), and waitLoopQuit().
|
inlineprotected |
Definition at line 231 of file deepstream_can_context_priv.hpp.
References _streamMutex.
Referenced by isRunning(), play(), quitMainLoop(), runMainLoop(), and waitLoopQuit().
|
inline |
Definition at line 181 of file deepstream_can_context_priv.hpp.
References _pipeline, and ds3d::gst::GstPtr< GstObjT, ObjFunc >::get().
Referenced by add(), init(), isRunning(), and sendEOS().
|
inline |
Definition at line 59 of file deepstream_can_context_priv.hpp.
References _eosReceived, _pipeline, DS_ASSERT, mutex(), and setPipelineState().
|
inline |
Definition at line 122 of file deepstream_can_context_priv.hpp.
References mainLoop(), and mutex().
|
inline |
Definition at line 146 of file deepstream_can_context_priv.hpp.
References _mainLoopThread, _mainStopped, _stoppedCond, DS_ASSERT, mainLoop(), and mutex().
|
inlinestaticprotected |
Definition at line 224 of file deepstream_can_context_priv.hpp.
References bus(), and DS_ASSERT.
Referenced by init().
|
inline |
Definition at line 173 of file deepstream_can_context_priv.hpp.
References DS3D_FAILED_RETURN, and pipeline().
|
inline |
Definition at line 29 of file deepstream_can_context_priv.hpp.
References _mainLoop.
|
inlineprotected |
Definition at line 190 of file deepstream_can_context_priv.hpp.
References _pipeline, DS_ASSERT, ds3d::gst::GstPtr< GstObjT, ObjFunc >::get(), and setState().
|
inlineprotected |
Definition at line 196 of file deepstream_can_context_priv.hpp.
References DS3D_FAILED_RETURN, and DS_ASSERT.
Referenced by setPipelineState(), and stop().
|
inlinevirtual |
Reimplemented in CameraCanApp.
Definition at line 70 of file deepstream_can_context_priv.hpp.
References _elementList, _pipeline, DS_ASSERT, ds3d::gst::GstPtr< GstObjT, ObjFunc >::get(), getState(), ds3d::isGood(), LOG_WARNING, setPipelineState(), and setState().
|
inline |
Definition at line 130 of file deepstream_can_context_priv.hpp.
References _mainLoopThread, _mainStopped, _stoppedCond, mainLoop(), and mutex().
|
protected |
Definition at line 235 of file deepstream_can_context_priv.hpp.
|
protected |
Definition at line 236 of file deepstream_can_context_priv.hpp.
Referenced by init().
|
protected |
Definition at line 237 of file deepstream_can_context_priv.hpp.
|
protected |
Definition at line 239 of file deepstream_can_context_priv.hpp.
|
protected |
Definition at line 242 of file deepstream_can_context_priv.hpp.
Referenced by isRunning(), and play().
|
protected |
Definition at line 245 of file deepstream_can_context_priv.hpp.
Referenced by init().
|
protected |
Definition at line 238 of file deepstream_can_context_priv.hpp.
Referenced by deinit(), init(), mainLoop(), and setMainloop().
|
protected |
Definition at line 240 of file deepstream_can_context_priv.hpp.
Referenced by runMainLoop(), and waitLoopQuit().
|
protected |
Definition at line 241 of file deepstream_can_context_priv.hpp.
Referenced by isRunning(), runMainLoop(), and waitLoopQuit().
|
protected |
Definition at line 234 of file deepstream_can_context_priv.hpp.
Referenced by add(), deinit(), init(), pipeline(), play(), setPipelineState(), and stop().
|
protected |
Definition at line 244 of file deepstream_can_context_priv.hpp.
Referenced by runMainLoop(), and waitLoopQuit().
|
mutableprotected |
Definition at line 243 of file deepstream_can_context_priv.hpp.
Referenced by mutex().