Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QGstStructure Class Reference

#include <qgst_p.h>

+ Collaboration diagram for QGstStructure:

Public Member Functions

 QGstStructure ()=default
 
 QGstStructure (const GstStructure *s)
 
void free ()
 
bool isNull () const
 
QByteArrayView name () const
 
QGValue operator[] (const char *name) const
 
QSize resolution () const
 
QVideoFrameFormat::PixelFormat pixelFormat () const
 
QGRange< float > frameRateRange () const
 
QGstreamerMessage getMessage ()
 
std::optional< FractionpixelAspectRatio () const
 
QSize nativeSize () const
 
QGstStructure copy () const
 

Public Attributes

const GstStructure * structure = nullptr
 

Detailed Description

Definition at line 305 of file qgst_p.h.

Constructor & Destructor Documentation

◆ QGstStructure() [1/2]

QGstStructure::QGstStructure ( )
default

◆ QGstStructure() [2/2]

QGstStructure::QGstStructure ( const GstStructure * s)

Definition at line 161 of file qgst.cpp.

Member Function Documentation

◆ copy()

QGstStructure QGstStructure::copy ( ) const

Definition at line 185 of file qgst.cpp.

References structure.

Referenced by QGstreamerMediaPlayer::processBusMessage().

+ Here is the caller graph for this function:

◆ frameRateRange()

QGRange< float > QGstStructure::frameRateRange ( ) const

Definition at line 227 of file qgst.cpp.

References insert(), and structure.

+ Here is the call graph for this function:

◆ free()

void QGstStructure::free ( )

Definition at line 163 of file qgst.cpp.

References structure.

Referenced by QGstreamerMediaPlayer::~QGstreamerMediaPlayer(), and QGstreamerMediaPlayer::processBusMessage().

+ Here is the caller graph for this function:

◆ getMessage()

QGstreamerMessage QGstStructure::getMessage ( )

◆ isNull()

bool QGstStructure::isNull ( ) const

Definition at line 170 of file qgst.cpp.

References structure.

◆ name()

QByteArrayView QGstStructure::name ( ) const

Definition at line 175 of file qgst.cpp.

References structure.

Referenced by QGstreamerFormatInfo::audioCodecForCaps(), QGstreamerFormatInfo::fileFormatForCaps(), QGstreamerFormatInfo::getMuxerList(), QGstreamerFormatInfo::imageFormatForCaps(), QGstreamerMediaPlayer::processBusMessage(), and QGstreamerFormatInfo::videoCodecForCaps().

+ Here is the caller graph for this function:

◆ nativeSize()

QSize QGstStructure::nativeSize ( ) const

Definition at line 300 of file qgst.cpp.

References pixelAspectRatio(), Q_FUNC_INFO, qCalculateFrameSize(), qWarning, and resolution().

+ Here is the call graph for this function:

◆ operator[]()

QGValue QGstStructure::operator[] ( const char * name) const

Definition at line 180 of file qgst.cpp.

References structure.

◆ pixelAspectRatio()

std::optional< Fraction > QGstStructure::pixelAspectRatio ( ) const

Definition at line 286 of file qgst.cpp.

References structure.

Referenced by nativeSize().

+ Here is the caller graph for this function:

◆ pixelFormat()

QVideoFrameFormat::PixelFormat QGstStructure::pixelFormat ( ) const

Definition at line 204 of file qgst.cpp.

References QVideoFrameFormat::Format_Invalid, QVideoFrameFormat::Format_Jpeg, pixelFormat(), and structure.

Referenced by pixelFormat().

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

◆ resolution()

QSize QGstStructure::resolution ( ) const

Definition at line 190 of file qgst.cpp.

References structure.

Referenced by nativeSize(), and QGstreamerVideoOverlay::probeCaps().

+ Here is the caller graph for this function:

Member Data Documentation

◆ structure

const GstStructure* QGstStructure::structure = nullptr

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