Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qgst_p.h>
Public Member Functions | |
QGstBin (const QGstBin &)=default | |
QGstBin (QGstBin &&) noexcept=default | |
QGstBin & | operator= (const QGstBin &)=default |
QGstBin & | operator= (QGstBin &&) noexcept=default |
QGstBin (GstBin *bin, RefMode mode=NeedsRef) | |
GstBin * | bin () const |
void | addGhostPad (const QGstElement &child, const char *name) |
void | addGhostPad (const char *name, const QGstPad &pad) |
bool | syncChildrenState () |
void | dumpGraph (const char *fileNamePrefix) |
QGstElement | findByName (const char *) |
QGstElement (const QGstElement &)=default | |
QGstElement (QGstElement &&) noexcept=default | |
QGstElement (GstElement *element, RefMode mode) | |
Public Member Functions inherited from QGstElement | |
QGstElement (const QGstElement &)=default | |
QGstElement (QGstElement &&) noexcept=default | |
QGstElement & | operator= (const QGstElement &)=default |
QGstElement & | operator= (QGstElement &&) noexcept=default |
QGstElement (GstElement *element, RefMode mode) | |
QGstPad | staticPad (const char *name) const |
QGstPad | src () const |
QGstPad | sink () const |
QGstPad | getRequestPad (const char *name) const |
void | releaseRequestPad (const QGstPad &pad) const |
GstState | state (std::chrono::nanoseconds timeout=std::chrono::seconds(0)) const |
GstStateChangeReturn | setState (GstState state) |
bool | setStateSync (GstState state, std::chrono::nanoseconds timeout=std::chrono::seconds(1)) |
bool | syncStateWithParent () |
bool | finishStateChange (std::chrono::nanoseconds timeout=std::chrono::seconds(5)) |
void | lockState (bool locked) |
bool | isStateLocked () const |
void | sendEvent (GstEvent *event) const |
void | sendEos () const |
template<auto Member, typename T > | |
QGObjectHandlerConnection | onPadAdded (T *instance) |
template<auto Member, typename T > | |
QGObjectHandlerConnection | onPadRemoved (T *instance) |
template<auto Member, typename T > | |
QGObjectHandlerConnection | onNoMorePads (T *instance) |
GstClockTime | baseTime () const |
void | setBaseTime (GstClockTime time) const |
GstElement * | element () const |
QGstElement | getParent () const |
QGstPipeline | getPipeline () const |
QGstObject (const QGstObject &)=default | |
QGstObject (QGstObject &&) noexcept=default | |
Public Member Functions inherited from QGstObject | |
QGstObject (const QGstObject &)=default | |
QGstObject (QGstObject &&) noexcept=default | |
QGstObject & | operator= (const QGstObject &)=default |
QGstObject & | operator= (QGstObject &&) noexcept=default |
void | set (const char *property, const char *str) |
void | set (const char *property, bool b) |
void | set (const char *property, uint i) |
void | set (const char *property, int i) |
void | set (const char *property, qint64 i) |
void | set (const char *property, quint64 i) |
void | set (const char *property, double d) |
void | set (const char *property, const QGstObject &o) |
void | set (const char *property, const QGstCaps &c) |
QGString | getString (const char *property) const |
QGstStructure | getStructure (const char *property) const |
bool | getBool (const char *property) const |
uint | getUInt (const char *property) const |
int | getInt (const char *property) const |
quint64 | getUInt64 (const char *property) const |
qint64 | getInt64 (const char *property) const |
float | getFloat (const char *property) const |
double | getDouble (const char *property) const |
QGstObject | getObject (const char *property) const |
QGObjectHandlerConnection | connect (const char *name, GCallback callback, gpointer userData) |
void | disconnect (gulong handlerId) |
GType | type () const |
GstObject * | object () const |
const char * | name () const |
Public Member Functions inherited from QGstPointerImpl::QGstObjectWrapper< GstObject > | |
constexpr | QGstObjectWrapper ()=default |
QGstObjectWrapper (GstObject *object, RefMode mode) | |
QGstObjectWrapper (const QGstObjectWrapper &other) | |
QGstObjectWrapper (QGstObjectWrapper &&other) noexcept | |
~QGstObjectWrapper () | |
QGstObjectWrapper & | operator= (const QGstObjectWrapper &other) |
QGstObjectWrapper & | operator= (QGstObjectWrapper &&other) noexcept |
operator bool () const | |
bool | isNull () const |
GstObject * | release () |
Static Public Member Functions | |
static QGstBin | create (const char *name) |
static QGstBin | createFromFactory (const char *factory, const char *name) |
Static Public Member Functions inherited from QGstElement | |
static QGstElement | createFromFactory (const char *factory, const char *name=nullptr) |
static QGstElement | createFromFactory (GstElementFactory *, const char *name=nullptr) |
static QGstElement | createFromFactory (const QGstElementFactoryHandle &, const char *name=nullptr) |
static QGstElement | createFromDevice (const QGstDeviceHandle &, const char *name=nullptr) |
static QGstElement | createFromDevice (GstDevice *, const char *name=nullptr) |
Public Attributes | |
template<typename... Ts> | |
std::enable_if_t<(std::is_base_of_v< QGstElement, Ts > &&...), void | add )(const Ts &...ts) |
template<typename... Ts> | |
std::enable_if_t<(std::is_base_of_v< QGstElement, Ts > &&...), void | remove )(const Ts &...ts) |
template<typename... Ts> | |
std::enable_if_t<(std::is_base_of_v< QGstElement, Ts > &&...), void | stopAndRemoveElements )(Ts... ts) |
Additional Inherited Members | |
Public Types inherited from QGstPointerImpl::QGstObjectWrapper< GstObject > | |
enum | RefMode |
Protected Member Functions inherited from QGstPointerImpl::QGstObjectWrapper< GstObject > | |
GstObject * | get () const |
|
default |
|
defaultnoexcept |
Definition at line 1037 of file qgst.cpp.
References QGstElement::element(), and QGstPad::pad().
void QGstBin::addGhostPad | ( | const QGstElement & | child, |
const char * | name ) |
Definition at line 1032 of file qgst.cpp.
References addGhostPad(), and child.
Referenced by QGstreamerVideoSink::QGstreamerVideoSink(), and addGhostPad().
GstBin * QGstBin::bin | ( | ) | const |
Definition at line 1027 of file qgst.cpp.
Referenced by QGstPipeline::dumpGraph(), dumpGraph(), findByName(), QGstreamerMediaPlayer::processBusMessage(), QGstreamerVideoOutput::setVideoSink(), and syncChildrenState().
|
static |
Definition at line 1004 of file qgst.cpp.
References QGstBin(), and QGstPointerImpl::QGstObjectWrapper< GstObject >::NeedsRef.
Referenced by QGstreamerVideoSink::QGstreamerVideoSink().
|
static |
Definition at line 1009 of file qgst.cpp.
References QGstElement::createFromFactory(), QGstElement::element(), factory, and Q_ASSERT.
Referenced by QGstreamerMediaEncoder::record().
void QGstBin::dumpGraph | ( | const char * | fileNamePrefix | ) |
Definition at line 1047 of file qgst.cpp.
References bin(), and QGstPointerImpl::QGstObjectWrapper< GstObject >::isNull().
QGstElement QGstBin::findByName | ( | const char * | name | ) |
Definition at line 1060 of file qgst.cpp.
References bin(), and QGstPointerImpl::QGstObjectWrapper< GstObject >::NeedsRef.
|
default |
|
explicit |
|
defaultnoexcept |
bool QGstBin::syncChildrenState | ( | ) |
Definition at line 1042 of file qgst.cpp.
References bin().
Referenced by QGstreamerMediaCapture::setAudioInput(), and QGstreamerMediaCapture::setAudioOutput().
|
inline |
Definition at line 674 of file qgst_p.h.
Referenced by QGstreamerVideoSink::QGstreamerVideoSink(), QGstreamerMediaEncoder::record(), QGstreamerMediaCapture::setAudioInput(), QGstreamerMediaCapture::setAudioOutput(), QGstreamerMediaCapture::setImageCapture(), QGstreamerMediaPlayer::setMedia(), and QGstreamerVideoOutput::setVideoSink().
|
inline |
Definition at line 683 of file qgst_p.h.
Referenced by QGstreamerMediaCapture::setAudioInput(), and QGstreamerMediaPlayer::setMedia().
|
inline |
Definition at line 693 of file qgst_p.h.
Referenced by QGstreamerMediaCapture::setAudioInput(), QGstreamerMediaCapture::setAudioOutput(), QGstreamerMediaCapture::setImageCapture(), QGstreamerVideoOutput::setVideoSink(), QGstreamerMediaCapture::unlinkEncoder(), and QGstreamerVideoOutput::unlinkSubtitleStream().