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
QFFmpegMediaFormatInfo Class Reference

#include <qffmpegmediaformatinfo_p.h>

+ Inheritance diagram for QFFmpegMediaFormatInfo:
+ Collaboration diagram for QFFmpegMediaFormatInfo:

Public Member Functions

 QFFmpegMediaFormatInfo ()
 
 ~QFFmpegMediaFormatInfo ()
 
- 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::VideoCodec videoCodecForAVCodecId (AVCodecID id)
 
static QMediaFormat::AudioCodec audioCodecForAVCodecId (AVCodecID id)
 
static QMediaFormat::FileFormat fileFormatForAVInputFormat (const AVInputFormat *format)
 
static const AVOutputFormat * outputFormatForFileFormat (QMediaFormat::FileFormat format)
 
static AVCodecID codecIdForVideoCodec (QMediaFormat::VideoCodec codec)
 
static AVCodecID codecIdForAudioCodec (QMediaFormat::AudioCodec codec)
 
static QAudioFormat::SampleFormat sampleFormat (AVSampleFormat format)
 
static AVSampleFormat avSampleFormat (QAudioFormat::SampleFormat format)
 
static int64_t avChannelLayout (QAudioFormat::ChannelConfig channelConfig)
 
static QAudioFormat::ChannelConfig channelConfigForAVLayout (int64_t avChannelLayout)
 
static QAudioFormat audioFormatFromCodecParameters (AVCodecParameters *codecPar)
 

Additional Inherited Members

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

Detailed Description

Definition at line 26 of file qffmpegmediaformatinfo_p.h.

Constructor & Destructor Documentation

◆ QFFmpegMediaFormatInfo()

◆ ~QFFmpegMediaFormatInfo()

QFFmpegMediaFormatInfo::~QFFmpegMediaFormatInfo ( )
default

Member Function Documentation

◆ audioCodecForAVCodecId()

QMediaFormat::AudioCodec QFFmpegMediaFormatInfo::audioCodecForAVCodecId ( AVCodecID id)
static

Definition at line 265 of file qffmpegmediaformatinfo.cpp.

References audioCodecMap, and QMediaFormat::Unspecified.

Referenced by QFFmpegMediaFormatInfo(), and Q_LOGGING_CATEGORY().

+ Here is the caller graph for this function:

◆ audioFormatFromCodecParameters()

QAudioFormat QFFmpegMediaFormatInfo::audioFormatFromCodecParameters ( AVCodecParameters * codecPar)
static

Definition at line 497 of file qffmpegmediaformatinfo.cpp.

References avChannelLayout(), channelConfigForAVLayout(), QAudioFormat::defaultChannelConfigForChannelCount(), sampleFormat(), and QAudioFormat::setSampleFormat().

Referenced by QFFmpeg::AudioRenderer::updateOutput().

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

◆ avChannelLayout()

◆ avSampleFormat()

AVSampleFormat QFFmpegMediaFormatInfo::avSampleFormat ( QAudioFormat::SampleFormat format)
static

◆ channelConfigForAVLayout()

◆ codecIdForAudioCodec()

AVCodecID QFFmpegMediaFormatInfo::codecIdForAudioCodec ( QMediaFormat::AudioCodec codec)
static

Definition at line 335 of file qffmpegmediaformatinfo.cpp.

References codec, and codecId().

Referenced by QFFmpeg::AudioEncoder::AudioEncoder().

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

◆ codecIdForVideoCodec()

AVCodecID QFFmpegMediaFormatInfo::codecIdForVideoCodec ( QMediaFormat::VideoCodec codec)
static

Definition at line 330 of file qffmpegmediaformatinfo.cpp.

References codec, and codecId().

+ Here is the call graph for this function:

◆ fileFormatForAVInputFormat()

QMediaFormat::FileFormat QFFmpegMediaFormatInfo::fileFormatForAVInputFormat ( const AVInputFormat * format)
static

Definition at line 284 of file qffmpegmediaformatinfo.cpp.

References QMediaFormat::AAC, QMediaFormat::AVI, fileFormat, QMediaFormat::FLAC, QMediaFormat::LastFileFormat, map, QMediaFormat::Matroska, QMediaFormat::MP3, QMediaFormat::MPEG4, QMediaFormat::Ogg, QMediaFormat::UnspecifiedFormat, QMediaFormat::Wave, QMediaFormat::WebM, and QMediaFormat::WMV.

Referenced by Q_LOGGING_CATEGORY().

+ Here is the caller graph for this function:

◆ outputFormatForFileFormat()

const AVOutputFormat * QFFmpegMediaFormatInfo::outputFormatForFileFormat ( QMediaFormat::FileFormat format)
static

Definition at line 325 of file qffmpegmediaformatinfo.cpp.

References avFormatForFormat().

Referenced by QFFmpeg::EncodingFormatContext::EncodingFormatContext().

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

◆ sampleFormat()

QAudioFormat::SampleFormat QFFmpegMediaFormatInfo::sampleFormat ( AVSampleFormat format)
static

< unsigned 8 bits

< unsigned 8 bits: planar

< signed 16 bits

< signed 16 bits: planar

< signed 32 bits

< signed 32 bits: planar

< float

< float: planar

< double

< double: planar

< signed 64 bits

< signed 64 bits, planar

Definition at line 340 of file qffmpegmediaformatinfo.cpp.

References QAudioFormat::Float, QAudioFormat::Int16, QAudioFormat::Int32, QAudioFormat::UInt8, and QAudioFormat::Unknown.

Referenced by audioFormatFromCodecParameters().

+ Here is the caller graph for this function:

◆ videoCodecForAVCodecId()

QMediaFormat::VideoCodec QFFmpegMediaFormatInfo::videoCodecForAVCodecId ( AVCodecID id)
static

Definition at line 274 of file qffmpegmediaformatinfo.cpp.

References QMediaFormat::Unspecified, and videoCodecMap.

Referenced by QFFmpegMediaFormatInfo(), and Q_LOGGING_CATEGORY().

+ Here is the caller graph for this function:

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