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

#include <qgstreamerformatinfo_p.h>

+ Inheritance diagram for QGstreamerFormatInfo:
+ Collaboration diagram for QGstreamerFormatInfo:

Public Member Functions

 QGstreamerFormatInfo ()
 
 ~QGstreamerFormatInfo ()
 
QGstCaps formatCaps (const QMediaFormat &f) const
 
QGstCaps audioCaps (const QMediaFormat &f) const
 
QGstCaps videoCaps (const QMediaFormat &f) const
 
QList< CodecMapgetMuxerList (bool demuxer, QList< QMediaFormat::AudioCodec > audioCodecs, QList< QMediaFormat::VideoCodec > videoCodecs)
 
- Public Member Functions inherited from QPlatformMediaFormatInfo
 QPlatformMediaFormatInfo ()
 
virtual ~QPlatformMediaFormatInfo ()
 
QList< QMediaFormat::FileFormatsupportedFileFormats (const QMediaFormat &constraints, QMediaFormat::ConversionMode m) const
 
QList< QMediaFormat::AudioCodecsupportedAudioCodecs (const QMediaFormat &constraints, QMediaFormat::ConversionMode m) const
 
QList< QMediaFormat::VideoCodecsupportedVideoCodecs (const QMediaFormat &constraints, QMediaFormat::ConversionMode m) const
 
bool isSupported (const QMediaFormat &format, QMediaFormat::ConversionMode m) const
 

Static Public Member Functions

static QMediaFormat::AudioCodec audioCodecForCaps (QGstStructure structure)
 
static QMediaFormat::VideoCodec videoCodecForCaps (QGstStructure structure)
 
static QMediaFormat::FileFormat fileFormatForCaps (QGstStructure structure)
 
static QImageCapture::FileFormat imageFormatForCaps (QGstStructure structure)
 

Additional Inherited Members

- Public Attributes inherited from QPlatformMediaFormatInfo
QList< CodecMapencoders
 
QList< CodecMapdecoders
 
QList< QImageCapture::FileFormatimageFormats
 

Detailed Description

Definition at line 25 of file qgstreamerformatinfo_p.h.

Constructor & Destructor Documentation

◆ QGstreamerFormatInfo()

QGstreamerFormatInfo::QGstreamerFormatInfo ( )

Definition at line 338 of file qgstreamerformatinfo.cpp.

References QPlatformMediaFormatInfo::decoders, QPlatformMediaFormatInfo::encoders, getCodecsList(), getImageFormatList(), getMuxerList(), and QPlatformMediaFormatInfo::imageFormats.

+ Here is the call graph for this function:

◆ ~QGstreamerFormatInfo()

QGstreamerFormatInfo::~QGstreamerFormatInfo ( )
default

Member Function Documentation

◆ audioCaps()

QGstCaps QGstreamerFormatInfo::audioCaps ( const QMediaFormat f) const

◆ audioCodecForCaps()

QT_BEGIN_NAMESPACE QMediaFormat::AudioCodec QGstreamerFormatInfo::audioCodecForCaps ( QGstStructure  structure)
static

Definition at line 10 of file qgstreamerformatinfo.cpp.

References QMediaFormat::AAC, QMediaFormat::AC3, QMediaFormat::ALAC, QByteArrayView::data(), QMediaFormat::DolbyTrueHD, QMediaFormat::EAC3, QMediaFormat::FLAC, QMediaFormat::MP3, QGstStructure::name(), QMediaFormat::Opus, QMediaFormat::Unspecified, QMediaFormat::Vorbis, QMediaFormat::Wave, and QMediaFormat::WMA.

Referenced by getCodecsList(), and getMuxerList().

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

◆ fileFormatForCaps()

QMediaFormat::FileFormat QGstreamerFormatInfo::fileFormatForCaps ( QGstStructure  structure)
static

Definition at line 86 of file qgstreamerformatinfo.cpp.

References QMediaFormat::AVI, QByteArrayView::data(), QMediaFormat::Matroska, QMediaFormat::MP3, QMediaFormat::MPEG4, QMediaFormat::Mpeg4Audio, QGstStructure::name(), QMediaFormat::Ogg, QMediaFormat::QuickTime, QGstStructure::toString(), QMediaFormat::UnspecifiedFormat, variant, QMediaFormat::Wave, QMediaFormat::WebM, and QMediaFormat::WMV.

Referenced by getMuxerList().

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

◆ formatCaps()

QGstCaps QGstreamerFormatInfo::formatCaps ( const QMediaFormat f) const

◆ getMuxerList()

QList< QGstreamerFormatInfo::CodecMap > QGstreamerFormatInfo::getMuxerList ( bool  demuxer,
QList< QMediaFormat::AudioCodec audioCodecs,
QList< QMediaFormat::VideoCodec videoCodecs 
)

Definition at line 178 of file qgstreamerformatinfo.cpp.

References QMediaFormat::AAC, QList< T >::append(), QList< T >::at(), audioCodecForCaps(), QListSpecialMethodsBase< T >::contains(), factory, fileFormatForCaps(), QMediaFormat::FLAC, fmt, QGstCaps::HasRef, i, QList< T >::isEmpty(), QMediaFormat::MP3, QMediaFormat::MPEG4, QMediaFormat::Mpeg4Audio, QGstStructure::name(), QList< T >::size(), QPlatformMediaFormatInfo::supportedAudioCodecs(), QPlatformMediaFormatInfo::supportedVideoCodecs(), QMediaFormat::Unspecified, QMediaFormat::UnspecifiedFormat, videoCodecForCaps(), QMediaFormat::Wave, QMediaFormat::WMA, and QMediaFormat::WMV.

Referenced by QGstreamerFormatInfo().

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

◆ imageFormatForCaps()

QImageCapture::FileFormat QGstreamerFormatInfo::imageFormatForCaps ( QGstStructure  structure)
static

Definition at line 122 of file qgstreamerformatinfo.cpp.

References QByteArrayView::data(), QImageCapture::JPEG, QGstStructure::name(), QImageCapture::PNG, QImageCapture::Tiff, QImageCapture::UnspecifiedFormat, and QImageCapture::WebP.

Referenced by getImageFormatList().

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

◆ videoCaps()

QGstCaps QGstreamerFormatInfo::videoCaps ( const QMediaFormat f) const

◆ videoCodecForCaps()

QMediaFormat::VideoCodec QGstreamerFormatInfo::videoCodecForCaps ( QGstStructure  structure)
static

Definition at line 48 of file qgstreamerformatinfo.cpp.

References QMediaFormat::AV1, QByteArrayView::data(), QMediaFormat::H264, QMediaFormat::H265, QMediaFormat::MotionJPEG, QMediaFormat::MPEG1, QMediaFormat::MPEG2, QMediaFormat::MPEG4, QGstStructure::name(), QMediaFormat::Theora, QMediaFormat::Unspecified, QMediaFormat::VP8, QMediaFormat::VP9, and QMediaFormat::WMV.

Referenced by getCodecsList(), and getMuxerList().

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