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

#include <qgst_p.h>

+ Inheritance diagram for QGstPad:
+ Collaboration diagram for QGstPad:

Public Member Functions

 QGstPad ()=default
 
 QGstPad (const QGstObject &o)
 
 QGstPad (GstPad *pad, RefMode mode=NeedsRef)
 
QGstCaps currentCaps () const
 
QGstCaps queryCaps () const
 
bool isLinked () const
 
bool link (const QGstPad &sink) const
 
bool unlink (const QGstPad &sink) const
 
bool unlinkPeer () const
 
QGstPad peer () const
 
QGstElement parent () const
 
GstPad * pad () const
 
GstEvent * stickyEvent (GstEventType type)
 
bool sendEvent (GstEvent *event)
 
template<auto Member, typename T >
void addProbe (T *instance, GstPadProbeType type)
 
void doInIdleProbe (std::function< void()> work)
 
template<auto Member, typename T >
void addEosProbe (T *instance)
 
- 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 321 of file qgst_p.h.

Constructor & Destructor Documentation

◆ QGstPad() [1/3]

QGstPad::QGstPad ( )
default

Referenced by peer().

+ Here is the caller graph for this function:

◆ QGstPad() [2/3]

QGstPad::QGstPad ( const QGstObject o)
inline

Definition at line 325 of file qgst_p.h.

◆ QGstPad() [3/3]

QGstPad::QGstPad ( GstPad *  pad,
RefMode  mode = NeedsRef 
)
inline

Definition at line 328 of file qgst_p.h.

Member Function Documentation

◆ addEosProbe()

template<auto Member, typename T >
void QGstPad::addEosProbe ( T *  instance)
inline

Definition at line 379 of file qgst_p.h.

References info, and pad().

+ Here is the call graph for this function:

◆ addProbe()

template<auto Member, typename T >
void QGstPad::addProbe ( T *  instance,
GstPadProbeType  type 
)
inline

Definition at line 350 of file qgst_p.h.

References info, and pad().

+ Here is the call graph for this function:

◆ currentCaps()

QGstCaps QGstPad::currentCaps ( ) const
inline

Definition at line 332 of file qgst_p.h.

References QGstCaps::HasRef, and pad().

+ Here is the call graph for this function:

◆ doInIdleProbe()

void QGstPad::doInIdleProbe ( std::function< void()>  work)
inline

Definition at line 360 of file qgst_p.h.

References pad(), and void.

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

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

◆ isLinked()

bool QGstPad::isLinked ( ) const
inline

Definition at line 337 of file qgst_p.h.

References pad().

+ Here is the call graph for this function:

◆ link()

bool QGstPad::link ( const QGstPad sink) const
inline

Definition at line 338 of file qgst_p.h.

References pad().

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

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

◆ pad()

GstPad * QGstPad::pad ( ) const
inline

◆ parent()

QGstElement QGstPad::parent ( ) const
inline

Definition at line 529 of file qgst_p.h.

References QGstObject::HasRef, and pad().

+ Here is the call graph for this function:

◆ peer()

QGstPad QGstPad::peer ( ) const
inline

Definition at line 341 of file qgst_p.h.

References QGstPad(), QGstObject::HasRef, and pad().

Referenced by unlinkPeer().

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

◆ queryCaps()

QGstCaps QGstPad::queryCaps ( ) const
inline

Definition at line 334 of file qgst_p.h.

References QGstCaps::HasRef, and pad().

+ Here is the call graph for this function:

◆ sendEvent()

bool QGstPad::sendEvent ( GstEvent *  event)
inline

Definition at line 347 of file qgst_p.h.

References pad().

+ Here is the call graph for this function:

◆ stickyEvent()

GstEvent * QGstPad::stickyEvent ( GstEventType  type)
inline

Definition at line 346 of file qgst_p.h.

References pad().

+ Here is the call graph for this function:

◆ unlink()

bool QGstPad::unlink ( const QGstPad sink) const
inline

Definition at line 339 of file qgst_p.h.

References pad().

Referenced by unlinkPeer().

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

◆ unlinkPeer()

bool QGstPad::unlinkPeer ( ) const
inline

Definition at line 340 of file qgst_p.h.

References peer(), and unlink().

Referenced by QGstreamerMediaCapture::unlinkEncoder().

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