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 | |
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 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) |
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 |
|
explicit |
GstClockTime QGstElement::baseTime | ( | ) | const |
|
static |
Definition at line 848 of file qgst.cpp.
References createFromDevice(), and device.
Referenced by createFromDevice(), QGstreamerAudioInput::setAudioDevice(), QGstreamerAudioOutput::setAudioDevice(), and QGstreamerCamera::setCamera().
|
static |
Definition at line 853 of file qgst.cpp.
References device, and QGstPointerImpl::QGstObjectWrapper< GstObject >::NeedsRef.
|
static |
Definition at line 817 of file qgst.cpp.
References element(), factory, QGstPointerImpl::QGstObjectWrapper< GstObject >::NeedsRef, and qWarning.
Referenced by QGstreamerVideoOverlay::QGstreamerVideoOverlay(), QGstreamerVideoSink::QGstreamerVideoSink(), QGStreamerAudioSink::create(), QGstreamerAudioDecoder::create(), QGstreamerCamera::create(), QGstreamerMediaPlayer::create(), QGstBin::createFromFactory(), createFromFactory(), findBestVideoSink(), Q_LOGGING_CATEGORY(), Q_LOGGING_CATEGORY(), Q_LOGGING_CATEGORY(), Q_LOGGING_CATEGORY(), QGstreamerMediaEncoder::record(), QGstreamerAudioInput::setAudioDevice(), QGstreamerAudioOutput::setAudioDevice(), QGstreamerMediaCapture::setAudioInput(), QGstreamerCamera::setCamera(), QGstreamerCamera::setCameraFormat(), QGstreamerMediaPlayer::setMedia(), and QGstreamerVideoOutput::setVideoSink().
|
static |
Definition at line 842 of file qgst.cpp.
References createFromFactory(), and factory.
|
static |
Definition at line 834 of file qgst.cpp.
References factory, and QGstPointerImpl::QGstObjectWrapper< GstObject >::NeedsRef.
GstElement * QGstElement::element | ( | ) | const |
Definition at line 972 of file qgst.cpp.
References QGstPointerImpl::QGstObjectWrapper< GstObject >::get().
Referenced by QGstreamerVideoSink::QGstreamerVideoSink(), QGstBin::addGhostPad(), applyMetaDataToTagSetter(), QGstBaseSink::baseSink(), QGstBaseSrc::baseSrc(), baseTime(), QGstBin::createFromFactory(), createFromFactory(), QGstPipeline::duration(), finishStateChange(), getRequestPad(), isStateLocked(), lockState(), operator<<(), QGstPipeline::position(), QGstreamerMediaPlayer::processBusMessage(), releaseRequestPad(), QGstPipeline::seek(), sendEvent(), setBaseTime(), QGStreamerAudioSink::setBufferSize(), QGstPipeline::setPlaybackRate(), setState(), QGstPipeline::setState(), setStateSync(), QGstreamerVideoOutput::setVideoSink(), state(), staticPad(), and syncStateWithParent().
bool QGstElement::finishStateChange | ( | std::chrono::nanoseconds | timeout = std::chrono::seconds(5) | ) |
Definition at line 929 of file qgst.cpp.
References element(), QGstObject::name(), pending, qWarning, and state.
Referenced by QGstreamerMediaPlayer::~QGstreamerMediaPlayer(), and QGstreamerMediaPlayer::setPosition().
QGstElement QGstElement::getParent | ( | ) | const |
Definition at line 977 of file qgst.cpp.
References QGstPointerImpl::QGstObjectWrapper< GstObject >::HasRef.
Referenced by getPipeline().
QGstPipeline QGstElement::getPipeline | ( | ) | const |
Definition at line 985 of file qgst.cpp.
References getParent(), and QGstPointerImpl::QGstObjectWrapper< GstObject >::NeedsRef.
Referenced by QGstreamerAudioInput::setAudioDevice(), QGstreamerAudioOutput::setAudioDevice(), QGstreamerCamera::setCamera(), and QGstreamerCamera::setCameraFormat().
QGstPad QGstElement::getRequestPad | ( | const char * | name | ) | const |
Definition at line 876 of file qgst.cpp.
References element(), and QGstPointerImpl::QGstObjectWrapper< GstObject >::HasRef.
Referenced by QGstreamerMediaEncoder::record().
bool QGstElement::isStateLocked | ( | ) | const |
void QGstElement::lockState | ( | bool | locked | ) |
|
inline |
|
inline |
Definition at line 581 of file qgst_p.h.
References connect().
Referenced by QGstreamerMediaPlayer::setMedia().
|
inline |
Definition at line 595 of file qgst_p.h.
References connect().
Referenced by QGstreamerMediaPlayer::setMedia().
|
default |
|
defaultnoexcept |
|
default |
|
defaultnoexcept |
Definition at line 885 of file qgst.cpp.
References element(), and QGstPad::pad().
void QGstElement::sendEos | ( | ) | const |
Definition at line 957 of file qgst.cpp.
References sendEvent().
Referenced by QGstreamerMediaEncoder::stop().
void QGstElement::sendEvent | ( | GstEvent * | event | ) | const |
void QGstElement::setBaseTime | ( | GstClockTime | time | ) | const |
GstStateChangeReturn QGstElement::setState | ( | GstState | state | ) |
Definition at line 905 of file qgst.cpp.
References element(), and state.
Referenced by qt_gst_element_is_functioning(), and QGstreamerMediaCapture::setAudioInput().
bool QGstElement::setStateSync | ( | GstState | state, |
std::chrono::nanoseconds | timeout = std::chrono::seconds(1) ) |
Definition at line 910 of file qgst.cpp.
References element(), QGstObject::name(), qWarning, and state.
Referenced by QGstreamerAudioInput::~QGstreamerAudioInput(), QGstreamerAudioOutput::~QGstreamerAudioOutput(), QGstreamerCamera::~QGstreamerCamera(), QGstreamerImageCapture::~QGstreamerImageCapture(), QGstreamerMediaCapture::~QGstreamerMediaCapture(), QGstreamerMediaEncoder::~QGstreamerMediaEncoder(), QGstreamerMediaPlayer::~QGstreamerMediaPlayer(), QGstreamerVideoOutput::~QGstreamerVideoOutput(), QGstreamerMediaCapture::setAudioInput(), and QGstreamerMediaPlayer::setMedia().
QGstPad QGstElement::sink | ( | ) | const |
Definition at line 871 of file qgst.cpp.
References staticPad().
Referenced by QGstreamerMediaCapture::unlinkEncoder().
QGstPad QGstElement::src | ( | ) | const |
Definition at line 866 of file qgst.cpp.
References staticPad().
Referenced by QGstreamerMediaCapture::unlinkEncoder().
GstState QGstElement::state | ( | std::chrono::nanoseconds | timeout = std::chrono::seconds(0) | ) | const |
Definition at line 890 of file qgst.cpp.
References element(), Q_UNLIKELY, qWarning, and state.
Referenced by QGstreamerMediaPlayer::setActiveTrack().
QGstPad QGstElement::staticPad | ( | const char * | name | ) | const |
Definition at line 861 of file qgst.cpp.
References element(), and QGstPointerImpl::QGstObjectWrapper< GstObject >::HasRef.
Referenced by QGstreamerVideoOverlay::~QGstreamerVideoOverlay(), QGstreamerVideoOutput::flushSubtitles(), QGstreamerImageCapture::probeBuffer(), QGstreamerMediaCapture::setAudioInput(), QGstreamerMediaCapture::setAudioOutput(), QGstreamerMediaCapture::setImageCapture(), QGstreamerVideoOverlay::setVideoSink(), sink(), and src().
bool QGstElement::syncStateWithParent | ( | ) |
Definition at line 923 of file qgst.cpp.
References element(), and Q_ASSERT.
Referenced by QGstreamerMediaEncoder::record(), QGstreamerMediaCapture::setImageCapture(), and QGstreamerVideoOutput::setVideoSink().