Definition at line 32 of file deepstream_3d_context.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 | 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} |
|
inline |
Definition at line 34 of file deepstream_3d_context.hpp.
|
inlinevirtual |
Definition at line 35 of file deepstream_3d_context.hpp.
References deinit().
|
inline |
Definition at line 52 of file deepstream_3d_context.hpp.
References _elementList, _pipeline, ds3d::gst::GstPtr< GstObjT, ObjFunc >::copy(), DS3D_THROW_ERROR, DS_ASSERT, ds3d::kGst, and pipeline().
|
inline |
Definition at line 141 of file deepstream_3d_context.hpp.
References _bus, and ds3d::gst::GstPtr< GstObjT, ObjFunc >::get().
Referenced by deinit(), init(), and sBusCall().
|
inlinevirtual |
Definition at line 121 of file deepstream_3d_context.hpp.
References _bus, _elementList, _mainLoop, _pipeline, bus(), and ds3d::gst::GstPtr< GstObjT, ObjFunc >::reset().
Referenced by ~Ds3dAppContext().
|
protected |
|
inlineprotected |
Definition at line 165 of file deepstream_3d_context.hpp.
References DS_ASSERT, ds3d::kGood, ds3d::kGst, and ds3d::kUnknown.
Referenced by stop().
|
inline |
Definition at line 39 of file deepstream_3d_context.hpp.
References _bus, _busWatchId, _mainLoop, _pipeline, bus(), DS3D_FAILED_RETURN, DS_ASSERT, ds3d::kGood, ds3d::kGst, pipeline(), ds3d::gst::GstPtr< GstObjT, ObjFunc >::reset(), sBusCall(), and ds3d::gst::GstPtr< GstObjT, ObjFunc >::setName().
|
inline |
Definition at line 91 of file deepstream_3d_context.hpp.
References DS_ASSERT, and pipeline().
|
inline |
Definition at line 142 of file deepstream_3d_context.hpp.
References _mainLoop.
Referenced by quitMainLoop(), and runMainLoop().
|
inline |
Definition at line 140 of file deepstream_3d_context.hpp.
References _pipeline, and ds3d::gst::GstPtr< GstObjT, ObjFunc >::get().
Referenced by add(), init(), isRunning(), and sendEOS().
|
inline |
Definition at line 61 of file deepstream_3d_context.hpp.
References _pipeline, DS_ASSERT, and setPipelineState().
|
inline |
Definition at line 107 of file deepstream_3d_context.hpp.
References mainLoop().
|
inline |
Definition at line 114 of file deepstream_3d_context.hpp.
References mainLoop().
|
inlinestaticprotected |
Definition at line 183 of file deepstream_3d_context.hpp.
References bus(), and DS_ASSERT.
Referenced by init().
|
inline |
Definition at line 132 of file deepstream_3d_context.hpp.
References DS3D_FAILED_RETURN, ds3d::kGood, ds3d::kGst, and pipeline().
|
inline |
Definition at line 37 of file deepstream_3d_context.hpp.
References _mainLoop.
|
inlineprotected |
Definition at line 149 of file deepstream_3d_context.hpp.
References _pipeline, DS_ASSERT, ds3d::gst::GstPtr< GstObjT, ObjFunc >::get(), and setState().
|
inlineprotected |
Definition at line 155 of file deepstream_3d_context.hpp.
References DS3D_FAILED_RETURN, DS_ASSERT, ds3d::kGood, and ds3d::kGst.
Referenced by setPipelineState(), and stop().
|
inlinevirtual |
Definition at line 67 of file deepstream_3d_context.hpp.
References _elementList, _pipeline, DS_ASSERT, ds3d::gst::GstPtr< GstObjT, ObjFunc >::get(), getState(), ds3d::isGood(), LOG_WARNING, setPipelineState(), and setState().
|
protected |
Definition at line 192 of file deepstream_3d_context.hpp.
|
protected |
Definition at line 193 of file deepstream_3d_context.hpp.
Referenced by init().
|
protected |
Definition at line 194 of file deepstream_3d_context.hpp.
|
protected |
Definition at line 195 of file deepstream_3d_context.hpp.
Referenced by deinit(), init(), mainLoop(), and setMainloop().
|
protected |
Definition at line 191 of file deepstream_3d_context.hpp.
Referenced by add(), deinit(), init(), pipeline(), play(), setPipelineState(), and stop().