Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QGstElement Class Reference

#include <qgst_p.h>

+ Inheritance diagram for QGstElement:
+ Collaboration diagram for QGstElement:

Public Member Functions

 QGstElement ()=default
 
 QGstElement (const QGstObject &o)
 
 QGstElement (GstElement *element, RefMode mode=NeedsRef)
 
 QGstElement (const char *factory, const char *name=nullptr)
 
bool link (const QGstElement &next)
 
bool link (const QGstElement &n1, const QGstElement &n2)
 
bool link (const QGstElement &n1, const QGstElement &n2, const QGstElement &n3)
 
bool link (const QGstElement &n1, const QGstElement &n2, const QGstElement &n3, const QGstElement &n4)
 
bool link (const QGstElement &n1, const QGstElement &n2, const QGstElement &n3, const QGstElement &n4, const QGstElement &n5)
 
void unlink (const QGstElement &next)
 
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 () const
 
GstStateChangeReturn setState (GstState state)
 
bool setStateSync (GstState state)
 
bool syncStateWithParent ()
 
bool finishStateChange ()
 
void lockState (bool locked)
 
bool isStateLocked () const
 
void sendEvent (GstEvent *event) const
 
void sendEos () const
 
template<auto Member, typename T >
void onPadAdded (T *instance)
 
template<auto Member, typename T >
void onPadRemoved (T *instance)
 
template<auto Member, typename T >
void onNoMorePads (T *instance)
 
GstClockTime baseTime () const
 
void setBaseTime (GstClockTime time) const
 
GstElement * element () const
 
- Public Member Functions inherited from QGstObject
 QGstObject ()=default
 
 QGstObject (GstObject *o, RefMode mode=HasRef)
 
 QGstObject (const QGstObject &other)
 
QGstObjectoperator= (const QGstObject &other)
 
 QGstObject (QGstObject &&other) noexcept
 
QGstObjectoperator= (QGstObject &&other)
 
virtual ~QGstObject ()
 
 operator bool () const
 
bool isNull () const
 
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
 
void connect (const char *name, GCallback callback, gpointer userData)
 
GstObject * object () const
 
const char * name () const
 

Additional Inherited Members

- Public Types inherited from QGstObject
enum  RefMode { HasRef , NeedsRef }
 
- Protected Attributes inherited from QGstObject
GstObject * m_object = nullptr
 

Detailed Description

Definition at line 409 of file qgst_p.h.

Constructor & Destructor Documentation

◆ QGstElement() [1/4]

QGstElement::QGstElement ( )
default

◆ QGstElement() [2/4]

QGstElement::QGstElement ( const QGstObject o)
inline

Definition at line 413 of file qgst_p.h.

◆ QGstElement() [3/4]

QGstElement::QGstElement ( GstElement *  element,
RefMode  mode = NeedsRef 
)
inline

Definition at line 416 of file qgst_p.h.

◆ QGstElement() [4/4]

QGstElement::QGstElement ( const char *  factory,
const char *  name = nullptr 
)
inline

Definition at line 420 of file qgst_p.h.

References factory, QGstObject::m_object, and qWarning.

Member Function Documentation

◆ baseTime()

GstClockTime QGstElement::baseTime ( ) const
inline

Definition at line 523 of file qgst_p.h.

References element().

+ Here is the call graph for this function:

◆ element()

◆ finishStateChange()

bool QGstElement::finishStateChange ( )
inline

Definition at line 476 of file qgst_p.h.

References element(), QGstObject::name(), and qWarning.

Referenced by QGstreamerMediaPlayer::setPosition().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRequestPad()

QGstPad QGstElement::getRequestPad ( const char *  name) const
inline

Definition at line 446 of file qgst_p.h.

References element(), and QGstObject::HasRef.

Referenced by linkTeeToPad(), and QGstreamerMediaEncoder::record().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isStateLocked()

bool QGstElement::isStateLocked ( ) const
inline

Definition at line 487 of file qgst_p.h.

References element().

+ Here is the call graph for this function:

◆ link() [1/5]

bool QGstElement::link ( const QGstElement n1,
const QGstElement n2 
)
inline

Definition at line 431 of file qgst_p.h.

References element().

+ Here is the call graph for this function:

◆ link() [2/5]

bool QGstElement::link ( const QGstElement n1,
const QGstElement n2,
const QGstElement n3 
)
inline

Definition at line 433 of file qgst_p.h.

References element().

+ Here is the call graph for this function:

◆ link() [3/5]

bool QGstElement::link ( const QGstElement n1,
const QGstElement n2,
const QGstElement n3,
const QGstElement n4 
)
inline

Definition at line 435 of file qgst_p.h.

References element().

+ Here is the call graph for this function:

◆ link() [4/5]

bool QGstElement::link ( const QGstElement n1,
const QGstElement n2,
const QGstElement n3,
const QGstElement n4,
const QGstElement n5 
)
inline

Definition at line 437 of file qgst_p.h.

References element().

+ Here is the call graph for this function:

◆ link() [5/5]

bool QGstElement::link ( const QGstElement next)
inline

Definition at line 429 of file qgst_p.h.

References element(), and next.

Referenced by QGstreamerMediaEncoder::record(), QGstreamerAudioInput::setAudioDevice(), QGstreamerAudioOutput::setAudioDevice(), QGstreamerMediaCapture::setAudioInput(), QGstreamerCamera::setCamera(), QGstreamerCamera::setCameraFormat(), and QGstreamerVideoOutput::setVideoSink().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lockState()

void QGstElement::lockState ( bool  locked)
inline

Definition at line 486 of file qgst_p.h.

References element().

+ Here is the call graph for this function:

◆ onNoMorePads()

template<auto Member, typename T >
void QGstElement::onNoMorePads ( T *  instance)
inline

Definition at line 513 of file qgst_p.h.

References QGstObject::connect(), and e.

+ Here is the call graph for this function:

◆ onPadAdded()

template<auto Member, typename T >
void QGstElement::onPadAdded ( T *  instance)
inline

Definition at line 493 of file qgst_p.h.

References QGstObject::connect(), and e.

Referenced by QGstreamerMediaPlayer::setMedia().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onPadRemoved()

template<auto Member, typename T >
void QGstElement::onPadRemoved ( T *  instance)
inline

Definition at line 503 of file qgst_p.h.

References QGstObject::connect(), and e.

Referenced by QGstreamerMediaPlayer::setMedia().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ releaseRequestPad()

void QGstElement::releaseRequestPad ( const QGstPad pad) const
inline

Definition at line 454 of file qgst_p.h.

References element(), and QGstPad::pad().

Referenced by unlinkTeeFromPad().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sendEos()

void QGstElement::sendEos ( ) const
inline

Definition at line 490 of file qgst_p.h.

References sendEvent().

Referenced by QGstreamerMediaEncoder::stop().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sendEvent()

void QGstElement::sendEvent ( GstEvent *  event) const
inline

Definition at line 489 of file qgst_p.h.

References element().

Referenced by sendEos().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setBaseTime()

void QGstElement::setBaseTime ( GstClockTime  time) const
inline

Definition at line 524 of file qgst_p.h.

References element(), and time.

+ Here is the call graph for this function:

◆ setState()

GstStateChangeReturn QGstElement::setState ( GstState  state)
inline

Definition at line 462 of file qgst_p.h.

References element(), and state().

Referenced by QGstreamerMediaCapture::linkEncoder(), qt_gst_element_is_functioning(), QGstreamerMediaCapture::setAudioInput(), QGstreamerMediaCapture::setAudioOutput(), QGstreamerMediaCapture::setCamera(), and QGstreamerMediaCapture::setImageCapture().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setStateSync()

◆ sink()

QGstPad QGstElement::sink ( ) const
inline

Definition at line 445 of file qgst_p.h.

References staticPad().

Referenced by QGstreamerMediaCapture::linkEncoder(), and QGstreamerMediaCapture::unlinkEncoder().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ src()

QGstPad QGstElement::src ( ) const
inline

Definition at line 444 of file qgst_p.h.

References staticPad().

Referenced by QGstreamerMediaCapture::linkEncoder(), and QGstreamerMediaCapture::unlinkEncoder().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ state()

GstState QGstElement::state ( ) const
inline

Definition at line 456 of file qgst_p.h.

References element(), and state().

Referenced by QGstPipeline::beginConfig(), QGstreamerMediaPlayer::setActiveTrack(), setState(), QGstPipeline::setState(), setStateSync(), and state().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ staticPad()

QGstPad QGstElement::staticPad ( const char *  name) const
inline

Definition at line 443 of file qgst_p.h.

References element(), and QGstObject::HasRef.

Referenced by QGstreamerVideoOverlay::~QGstreamerVideoOverlay(), QGstreamerVideoOutput::flushSubtitles(), QGstreamerImageCapture::probeBuffer(), QGstreamerAudioInput::setAudioDevice(), QGstreamerAudioOutput::setAudioDevice(), QGstreamerMediaCapture::setAudioInput(), QGstreamerMediaCapture::setAudioOutput(), QGstreamerMediaCapture::setCamera(), QGstreamerCamera::setCameraFormat(), QGstreamerMediaCapture::setImageCapture(), QGstreamerVideoOverlay::setVideoSink(), sink(), and src().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ syncStateWithParent()

bool QGstElement::syncStateWithParent ( )
inline

Definition at line 475 of file qgst_p.h.

References element().

Referenced by QGstreamerMediaEncoder::record(), QGstreamerAudioInput::setAudioDevice(), QGstreamerAudioOutput::setAudioDevice(), QGstreamerCamera::setCamera(), and QGstreamerVideoOutput::setVideoSink().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlink()

void QGstElement::unlink ( const QGstElement next)
inline

Definition at line 440 of file qgst_p.h.

References element(), and next.

Referenced by QGstreamerAudioInput::setAudioDevice(), QGstreamerAudioOutput::setAudioDevice(), QGstreamerCamera::setCamera(), and QGstreamerCamera::setCameraFormat().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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