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

#include <qgst_p.h>

+ Inheritance diagram for QGstObject:
+ Collaboration diagram for QGstObject:

Public Types

enum  RefMode { HasRef , NeedsRef }
 

Public Member Functions

 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
 

Protected Attributes

GstObject * m_object = nullptr
 

Friends

bool operator== (const QGstObject &a, const QGstObject &b)
 
bool operator!= (const QGstObject &a, const QGstObject &b)
 

Detailed Description

Definition at line 230 of file qgst_p.h.

Member Enumeration Documentation

◆ RefMode

Enumerator
HasRef 
NeedsRef 

Definition at line 235 of file qgst_p.h.

Constructor & Destructor Documentation

◆ QGstObject() [1/4]

QGstObject::QGstObject ( )
default

Referenced by getObject().

+ Here is the caller graph for this function:

◆ QGstObject() [2/4]

QGstObject::QGstObject ( GstObject *  o,
RefMode  mode = HasRef 
)
inlineexplicit

Definition at line 238 of file qgst_p.h.

References m_object, NeedsRef, and o.

◆ QGstObject() [3/4]

QGstObject::QGstObject ( const QGstObject other)
inline

Definition at line 245 of file qgst_p.h.

References m_object.

◆ QGstObject() [4/4]

QGstObject::QGstObject ( QGstObject &&  other)
inlinenoexcept

Definition at line 263 of file qgst_p.h.

◆ ~QGstObject()

virtual QGstObject::~QGstObject ( )
inlinevirtual

Definition at line 276 of file qgst_p.h.

References m_object.

Member Function Documentation

◆ connect()

void QGstObject::connect ( const char *  name,
GCallback  callback,
gpointer  userData 
)
inline

Definition at line 313 of file qgst_p.h.

References m_object.

Referenced by QGstElement::onNoMorePads(), QGstElement::onPadAdded(), QGstElement::onPadRemoved(), and QGstreamerMediaPlayer::setMedia().

+ Here is the caller graph for this function:

◆ getBool()

bool QGstObject::getBool ( const char *  property) const
inline

Definition at line 304 of file qgst_p.h.

References m_object, and property.

◆ getDouble()

double QGstObject::getDouble ( const char *  property) const
inline

Definition at line 310 of file qgst_p.h.

References d, m_object, and property.

◆ getFloat()

float QGstObject::getFloat ( const char *  property) const
inline

Definition at line 309 of file qgst_p.h.

References d, m_object, and property.

◆ getInt()

int QGstObject::getInt ( const char *  property) const
inline

Definition at line 306 of file qgst_p.h.

References i, m_object, and property.

◆ getInt64()

qint64 QGstObject::getInt64 ( const char *  property) const
inline

Definition at line 308 of file qgst_p.h.

References i, m_object, and property.

◆ getObject()

QGstObject QGstObject::getObject ( const char *  property) const
inline

Definition at line 311 of file qgst_p.h.

References QGstObject(), HasRef, m_object, o, and property.

+ Here is the call graph for this function:

◆ getString()

QGString QGstObject::getString ( const char *  property) const
inline

Definition at line 300 of file qgst_p.h.

References m_object, and property.

◆ getStructure()

QGstStructure QGstObject::getStructure ( const char *  property) const
inline

Definition at line 302 of file qgst_p.h.

References m_object, and property.

◆ getUInt()

uint QGstObject::getUInt ( const char *  property) const
inline

Definition at line 305 of file qgst_p.h.

References i, m_object, and property.

◆ getUInt64()

quint64 QGstObject::getUInt64 ( const char *  property) const
inline

Definition at line 307 of file qgst_p.h.

References i, m_object, and property.

◆ isNull()

◆ name()

const char * QGstObject::name ( ) const
inline

Definition at line 316 of file qgst_p.h.

References m_object.

Referenced by QGstElement::finishStateChange(), QGstreamerCamera::setCamera(), QGstreamerCamera::setCameraFormat(), QGstElement::setStateSync(), and QGstreamerVideoOutput::setVideoSink().

+ Here is the caller graph for this function:

◆ object()

GstObject * QGstObject::object ( ) const
inline

Definition at line 315 of file qgst_p.h.

References m_object.

Referenced by QGstreamerAudioDecoder::processBusMessage(), QGstreamerVideoOverlay::processSyncMessage(), QGstreamerMediaEncoder::record(), QGstreamerVideoOverlay::setVideoSink(), and QGstreamerVideoOverlay::setWindowHandle().

+ Here is the caller graph for this function:

◆ operator bool()

QGstObject::operator bool ( ) const
inlineexplicit

Definition at line 281 of file qgst_p.h.

References m_object.

◆ operator=() [1/2]

QGstObject & QGstObject::operator= ( const QGstObject other)
inline

Definition at line 251 of file qgst_p.h.

References m_object, and other().

Referenced by QGstPipeline::operator=().

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

◆ operator=() [2/2]

QGstObject & QGstObject::operator= ( QGstObject &&  other)
inline

Definition at line 266 of file qgst_p.h.

References m_object, and other().

+ Here is the call graph for this function:

◆ set() [1/9]

void QGstObject::set ( const char *  property,
bool  b 
)
inline

Definition at line 291 of file qgst_p.h.

References m_object, and property.

◆ set() [2/9]

◆ set() [3/9]

void QGstObject::set ( const char *  property,
const QGstCaps c 
)
inline

Definition at line 298 of file qgst_p.h.

References m_object, and property.

◆ set() [4/9]

void QGstObject::set ( const char *  property,
const QGstObject o 
)
inline

Definition at line 297 of file qgst_p.h.

References m_object, o, and property.

◆ set() [5/9]

void QGstObject::set ( const char *  property,
double  d 
)
inline

Definition at line 296 of file qgst_p.h.

References d, m_object, and property.

◆ set() [6/9]

void QGstObject::set ( const char *  property,
int  i 
)
inline

Definition at line 293 of file qgst_p.h.

References i, m_object, and property.

◆ set() [7/9]

void QGstObject::set ( const char *  property,
qint64  i 
)
inline

Definition at line 294 of file qgst_p.h.

References i, m_object, and property.

◆ set() [8/9]

void QGstObject::set ( const char *  property,
quint64  i 
)
inline

Definition at line 295 of file qgst_p.h.

References i, m_object, and property.

◆ set() [9/9]

void QGstObject::set ( const char *  property,
uint  i 
)
inline

Definition at line 292 of file qgst_p.h.

References i, m_object, and property.

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const QGstObject a,
const QGstObject b 
)
friend

Definition at line 285 of file qgst_p.h.

◆ operator==

bool operator== ( const QGstObject a,
const QGstObject b 
)
friend

Definition at line 283 of file qgst_p.h.

Member Data Documentation

◆ m_object


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