Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QGstPad Class Reference

#include <qgst_p.h>

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

Public Member Functions

 QGstPad (const QGstPad &)=default
 
 QGstPad (QGstPad &&) noexcept=default
 
 QGstPad (const QGstObject &o)
 
 QGstPad (GstPad *pad, RefMode mode)
 
QGstPadoperator= (const QGstPad &)=default
 
QGstPadoperator= (QGstPad &&) noexcept=default
 
QGstCaps currentCaps () const
 
QGstCaps queryCaps () const
 
QGstTagListHandle tags () const
 
QGString streamId () const
 
std::optional< QPlatformMediaPlayer::TrackTypeinferTrackTypeFromName () 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)
 
void sendFlushStartStop (bool resetTime)
 
template<auto Member, typename T >
void addProbe (T *instance, GstPadProbeType type)
 
template<typename Functor >
void doInIdleProbe (Functor &&work)
 
template<auto Member, typename T >
void addEosProbe (T *instance)
 
template<typename Functor >
void modifyPipelineInIdleProbe (Functor &&f)
 
void sendFlushIfPaused ()
 
 QGstObject (const QGstObject &)=default
 
 QGstObject (QGstObject &&) noexcept=default
 
- Public Member Functions inherited from QGstObject
 QGstObject (const QGstObject &)=default
 
 QGstObject (QGstObject &&) noexcept=default
 
QGstObjectoperator= (const QGstObject &)=default
 
QGstObjectoperator= (QGstObject &&) noexcept=default
 
void set (const char *property, const char *str)
 
void set (const char *property, bool b)
 
void set (const char *property, int32_t i)
 
void set (const char *property, uint32_t i)
 
void set (const char *property, int64_t i)
 
void set (const char *property, uint64_t i)
 
void set (const char *property, double d)
 
void set (const char *property, const QGstObject &o)
 
void set (const char *property, const QGstCaps &c)
 
void set (const char *property, void *object, GDestroyNotify destroyFunction)
 
template<typename Object >
void set (const char *property, Object *object, GDestroyNotify destroyFunction)
 
template<typename Object >
void set (const char *property, std::unique_ptr< Object > object)
 
QGString getString (const char *property) const
 
QGstStructureView 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 getGstObject (const char *property) const
 
voidgetObject (const char *property) const
 
template<typename T >
T * getObject (const char *property) const
 
QGObjectHandlerConnection connect (const char *name, GCallback callback, gpointer userData)
 
void disconnect (gulong handlerId)
 
GType type () const
 
QLatin1StringView typeName () const
 
GstObject * object () const
 
QLatin1StringView 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 ()
 
QGstObjectWrapperoperator= (const QGstObjectWrapper &other)
 
QGstObjectWrapperoperator= (QGstObjectWrapper &&other) noexcept
 
 operator bool () const
 
bool isNull () const
 
GstObject * release ()
 

Additional Inherited Members

- Public Types inherited from QGstPointerImpl::QGstObjectWrapper< GstObject >
enum  RefMode
 
- Static Public Member Functions inherited from QGstObject
template<typename T >
static void qDeleteFromVoidPointer (void *ptr)
 
- Protected Member Functions inherited from QGstPointerImpl::QGstObjectWrapper< GstObject >
GstObject * get () const
 

Detailed Description

Definition at line 572 of file qgst_p.h.

Constructor & Destructor Documentation

◆ QGstPad() [1/4]

QGstPad::QGstPad ( const QGstPad & )
default

◆ QGstPad() [2/4]

QGstPad::QGstPad ( QGstPad && )
defaultnoexcept

◆ QGstPad() [3/4]

QGstPad::QGstPad ( const QGstObject & o)
explicit

Definition at line 787 of file qgst.cpp.

References QGstPad().

Referenced by QGstPad().

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

◆ QGstPad() [4/4]

QGstPad::QGstPad ( GstPad * pad,
RefMode mode )
explicit

Definition at line 795 of file qgst.cpp.

References QGstPad().

Referenced by QGstPad().

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

Member Function Documentation

◆ addEosProbe()

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

Definition at line 811 of file qgst_p.h.

◆ addProbe()

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

Definition at line 744 of file qgst_p.h.

◆ currentCaps()

QGstCaps QGstPad::currentCaps ( ) const

Definition at line 803 of file qgst.cpp.

◆ doInIdleProbe()

template<typename Functor >
void QGstPad::doInIdleProbe ( Functor && work)

Definition at line 754 of file qgst_p.h.

References QGstElement::dumpPipelineGraph(), parent(), and sendFlushIfPaused().

+ Here is the call graph for this function:

◆ inferTrackTypeFromName()

std::optional< QPlatformMediaPlayer::TrackType > QGstPad::inferTrackTypeFromName ( ) const

Definition at line 827 of file qgst.cpp.

◆ isLinked()

bool QGstPad::isLinked ( ) const

Definition at line 842 of file qgst.cpp.

◆ link()

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

Definition at line 847 of file qgst.cpp.

Referenced by QGstreamerMediaCaptureSession::setAudioInput(), QGstreamerMediaCaptureSession::setAudioOutput(), and QGstreamerMediaCaptureSession::setImageCapture().

+ Here is the caller graph for this function:

◆ modifyPipelineInIdleProbe()

template<typename Functor >
void QGstPad::modifyPipelineInIdleProbe ( Functor && f)

Definition at line 823 of file qgst_p.h.

References sendFlushIfPaused().

+ Here is the call graph for this function:

◆ operator=() [1/2]

QGstPad & QGstPad::operator= ( const QGstPad & )
default

◆ operator=() [2/2]

QGstPad & QGstPad::operator= ( QGstPad && )
defaultnoexcept

◆ pad()

GstPad * QGstPad::pad ( ) const

Definition at line 876 of file qgst.cpp.

◆ parent()

QGstElement QGstPad::parent ( ) const

Definition at line 871 of file qgst.cpp.

Referenced by doInIdleProbe().

+ Here is the caller graph for this function:

◆ peer()

QGstPad QGstPad::peer ( ) const

Definition at line 866 of file qgst.cpp.

Referenced by unlinkPeer().

+ Here is the caller graph for this function:

◆ QGstObject() [1/2]

QGstObject::QGstObject ( const QGstObject & )
default

◆ QGstObject() [2/2]

QGstObject::QGstObject ( QGstObject && )
defaultnoexcept

◆ queryCaps()

QGstCaps QGstPad::queryCaps ( ) const

Definition at line 808 of file qgst.cpp.

◆ sendEvent()

bool QGstPad::sendEvent ( GstEvent * event)

Definition at line 886 of file qgst.cpp.

◆ sendFlushIfPaused()

void QGstPad::sendFlushIfPaused ( )

Definition at line 906 of file qgst.cpp.

References sendFlushStartStop().

Referenced by doInIdleProbe(), and modifyPipelineInIdleProbe().

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

◆ sendFlushStartStop()

void QGstPad::sendFlushStartStop ( bool resetTime)

Definition at line 891 of file qgst.cpp.

Referenced by sendFlushIfPaused().

+ Here is the caller graph for this function:

◆ stickyEvent()

GstEvent * QGstPad::stickyEvent ( GstEventType type)

Definition at line 881 of file qgst.cpp.

◆ streamId()

QGString QGstPad::streamId ( ) const

Definition at line 820 of file qgst.cpp.

◆ tags()

QGstTagListHandle QGstPad::tags ( ) const

Definition at line 813 of file qgst.cpp.

◆ unlink()

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

Definition at line 852 of file qgst.cpp.

◆ unlinkPeer()

bool QGstPad::unlinkPeer ( ) const

Definition at line 857 of file qgst.cpp.

References peer().

Referenced by QGstreamerMediaCaptureSession::setAudioOutput().

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