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

#include <qgst_p.h>

+ Inheritance diagram for QGstBin:
+ Collaboration diagram for QGstBin:

Public Member Functions

 QGstBin ()=default
 
 QGstBin (const QGstObject &o)
 
 QGstBin (const char *name)
 
 QGstBin (GstBin *bin, RefMode mode=NeedsRef)
 
void add (const QGstElement &element)
 
void add (const QGstElement &e1, const QGstElement &e2)
 
void add (const QGstElement &e1, const QGstElement &e2, const QGstElement &e3)
 
void add (const QGstElement &e1, const QGstElement &e2, const QGstElement &e3, const QGstElement &e4)
 
void add (const QGstElement &e1, const QGstElement &e2, const QGstElement &e3, const QGstElement &e4, const QGstElement &e5)
 
void add (const QGstElement &e1, const QGstElement &e2, const QGstElement &e3, const QGstElement &e4, const QGstElement &e5, const QGstElement &e6)
 
void remove (const QGstElement &element)
 
GstBin * bin () const
 
void addGhostPad (const QGstElement &child, const char *name)
 
void addGhostPad (const char *name, const QGstPad &pad)
 
- Public Member Functions inherited from QGstElement
 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 534 of file qgst_p.h.

Constructor & Destructor Documentation

◆ QGstBin() [1/4]

QGstBin::QGstBin ( )
default

◆ QGstBin() [2/4]

QGstBin::QGstBin ( const QGstObject o)
inline

Definition at line 538 of file qgst_p.h.

◆ QGstBin() [3/4]

QGstBin::QGstBin ( const char *  name)
inline

Definition at line 541 of file qgst_p.h.

◆ QGstBin() [4/4]

QGstBin::QGstBin ( GstBin *  bin,
RefMode  mode = NeedsRef 
)
inline

Definition at line 545 of file qgst_p.h.

Member Function Documentation

◆ add() [1/6]

void QGstBin::add ( const QGstElement e1,
const QGstElement e2 
)
inline

Definition at line 551 of file qgst_p.h.

References bin(), and QGstElement::element().

+ Here is the call graph for this function:

◆ add() [2/6]

void QGstBin::add ( const QGstElement e1,
const QGstElement e2,
const QGstElement e3 
)
inline

Definition at line 553 of file qgst_p.h.

References bin(), and QGstElement::element().

+ Here is the call graph for this function:

◆ add() [3/6]

void QGstBin::add ( const QGstElement e1,
const QGstElement e2,
const QGstElement e3,
const QGstElement e4 
)
inline

Definition at line 555 of file qgst_p.h.

References bin(), and QGstElement::element().

+ Here is the call graph for this function:

◆ add() [4/6]

void QGstBin::add ( const QGstElement e1,
const QGstElement e2,
const QGstElement e3,
const QGstElement e4,
const QGstElement e5 
)
inline

Definition at line 557 of file qgst_p.h.

References bin(), and QGstElement::element().

+ Here is the call graph for this function:

◆ add() [5/6]

void QGstBin::add ( const QGstElement e1,
const QGstElement e2,
const QGstElement e3,
const QGstElement e4,
const QGstElement e5,
const QGstElement e6 
)
inline

Definition at line 559 of file qgst_p.h.

References bin(), and QGstElement::element().

+ Here is the call graph for this function:

◆ add() [6/6]

void QGstBin::add ( const QGstElement element)
inline

Definition at line 549 of file qgst_p.h.

References bin(), and QGstElement::element().

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

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

◆ addGhostPad() [1/2]

void QGstBin::addGhostPad ( const char *  name,
const QGstPad pad 
)
inline

Definition at line 570 of file qgst_p.h.

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

+ Here is the call graph for this function:

◆ addGhostPad() [2/2]

void QGstBin::addGhostPad ( const QGstElement child,
const char *  name 
)
inline

Definition at line 566 of file qgst_p.h.

References addGhostPad(), and child.

Referenced by addGhostPad().

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

◆ bin()

GstBin * QGstBin::bin ( ) const
inline

Definition at line 564 of file qgst_p.h.

References QGstObject::m_object.

Referenced by add(), add(), add(), add(), add(), add(), QGstPipeline::dumpGraph(), QGstreamerMediaPlayer::processBusMessage(), QGstreamerMediaEncoder::record(), remove(), and QGstreamerVideoOutput::setVideoSink().

+ Here is the caller graph for this function:

◆ remove()

void QGstBin::remove ( const QGstElement element)
inline

Definition at line 561 of file qgst_p.h.

References bin(), and QGstElement::element().

Referenced by QGstreamerAudioInput::setAudioDevice(), QGstreamerAudioOutput::setAudioDevice(), QGstreamerMediaCapture::setAudioInput(), QGstreamerMediaCapture::setAudioOutput(), QGstreamerCamera::setCamera(), QGstreamerMediaCapture::setCamera(), QGstreamerCamera::setCameraFormat(), QGstreamerMediaCapture::setImageCapture(), QGstreamerMediaPlayer::setMedia(), QGstreamerVideoOutput::setVideoSink(), QGstreamerMediaCapture::unlinkEncoder(), and QGstreamerVideoOutput::unlinkSubtitleStream().

+ 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: