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.cpp File Reference

(445b8adb1bd8c4b0f25db33184d99b65aea58cdb)

#include "qffmpegmediaformatinfo_p.h"
#include "qaudioformat.h"
#include "qimagewriter.h"
#include <qloggingcategory.h>
+ Include dependency graph for qffmpegmediaformatinfo.cpp:

Go to the source code of this file.

Functions

static QT_BEGIN_NAMESPACE Q_LOGGING_CATEGORY (qLcMediaFormatInfo, "qt.multimedia.ffmpeg.mediaformatinfo") static struct
 
static AVCodecID codecId (QMediaFormat::VideoCodec codec)
 
static AVCodecID codecId (QMediaFormat::AudioCodec codec)
 
template<typename AVFormat >
static QMediaFormat::FileFormat formatForAVFormat (AVFormat *format)
 
static const AVOutputFormat * avFormatForFormat (QMediaFormat::FileFormat format)
 

Variables

 videoCodecMap []
 
struct { 
 
   AVCodecID   id 
 
   QMediaFormat::AudioCodec   codec 
 
audioCodecMap [] 
 
struct { 
 
   QMediaFormat::FileFormat   fileFormat 
 
   const char *   mimeType 
 
   const char *   name 
 
map [QMediaFormat::LastFileFormat+1] 
 

Function Documentation

◆ avFormatForFormat()

static const AVOutputFormat * avFormatForFormat ( QMediaFormat::FileFormat format)
static

Definition at line 112 of file qffmpegmediaformatinfo.cpp.

References map, QMediaFormat::MPEG4, QMediaFormat::Mpeg4Audio, QMediaFormat::QuickTime, QMediaFormat::UnspecifiedFormat, QMediaFormat::WMA, and QMediaFormat::WMV.

Referenced by QFFmpegMediaFormatInfo::outputFormatForFileFormat().

+ Here is the caller graph for this function:

◆ codecId() [1/2]

static AVCodecID codecId ( QMediaFormat::AudioCodec codec)
static

Definition at line 57 of file qffmpegmediaformatinfo.cpp.

References audioCodecMap, and codec.

◆ codecId() [2/2]

◆ formatForAVFormat()

template<typename AVFormat >
static QMediaFormat::FileFormat formatForAVFormat ( AVFormat * format)
static

Definition at line 92 of file qffmpegmediaformatinfo.cpp.

References map, and QMediaFormat::UnspecifiedFormat.

Referenced by QFFmpegMediaFormatInfo::QFFmpegMediaFormatInfo().

+ Here is the caller graph for this function:

◆ Q_LOGGING_CATEGORY()

static QT_BEGIN_NAMESPACE Q_LOGGING_CATEGORY ( qLcMediaFormatInfo ,
"qt.multimedia.ffmpeg.mediaformatinfo"  )
static

Definition at line 12 of file qffmpegmediaformatinfo.cpp.

References codec, and id.

Variable Documentation

◆ [struct]

◆ codec

Definition at line 42 of file qffmpegmediaformatinfo.cpp.

Referenced by QAndroidFormatInfo::QAndroidFormatInfo(), QFFmpegMediaFormatInfo::QFFmpegMediaFormatInfo(), QWindowsFormatInfo::QWindowsFormatInfo(), QFFmpeg::adjustVideoResolution(), apply_libvpx(), apply_nvenc(), apply_openh264(), apply_x264(), apply_x265(), QFFmpeg::applyAudioEncoderOptions(), QFFmpeg::applyExperimentalCodecOptions(), QFFmpeg::applyVideoEncoderOptions(), QGstreamerFormatInfo::audioCaps(), QMediaFormat::audioCodecDescription(), QMediaFormat::audioCodecName(), QWindowsMultimediaUtils::audioFormatForCodec(), QDarwinFormatInfo::audioFormatForCodec(), avfVideoSettings(), codecId(), codecId(), QFFmpegMediaFormatInfo::codecIdForAudioCodec(), QFFmpegMediaFormatInfo::codecIdForVideoCodec(), QFFmpeg::deviceTypes(), QFFmpeg::findCodecWithHwAccel(), QFFmpeg::findSwEncoder(), QFFmpeg::findTargetFormat(), QFFmpeg::findTargetSWFormat(), getVideoCodecName(), QFFmpeg::AudioRenderer::initResempler(), QFFmpeg::isAVCodecExperimental(), QFFmpeg::isAVFormatSupported(), QT_BEGIN_NAMESPACE::isSupportedCodec(), QT_BEGIN_NAMESPACE::isSupportedCodec(), QT_BEGIN_NAMESPACE::isSupportedCodec(), Q_LOGGING_CATEGORY(), qt_unique_device_formats(), QFFmpeg::VideoRenderer::renderInternal(), QMediaFormat::setAudioCodec(), QMediaFormat::setVideoCodec(), QFFmpeg::AudioRenderer::updateOutput(), QGstreamerFormatInfo::videoCaps(), QMediaFormat::videoCodecDescription(), QMediaFormat::videoCodecName(), QWindowsMultimediaUtils::videoFormatForCodec(), and QDarwinFormatInfo::videoFormatForCodec().

◆ fileFormat

◆ id

AVCodecID id

Definition at line 41 of file qffmpegmediaformatinfo.cpp.

Referenced by Q_LOGGING_CATEGORY().

◆ [struct]

const struct { ... } map[QMediaFormat::LastFileFormat + 1]
Initial value:
= {
{ QMediaFormat::WMV, "video/x-ms-asf", "asf" },
{ QMediaFormat::AVI, "video/x-msvideo", nullptr },
{ QMediaFormat::Matroska, "video/x-matroska", nullptr },
{ QMediaFormat::MPEG4, "video/mp4", "mp4" },
{ QMediaFormat::Ogg, "video/ogg", nullptr },
{ QMediaFormat::WebM, "video/webm", "webm" },
{ QMediaFormat::AAC, "audio/aac", nullptr },
{ QMediaFormat::FLAC, "audio/x-flac", nullptr },
{ QMediaFormat::MP3, "audio/mpeg", "mp3" },
{ QMediaFormat::Wave, "audio/x-wav", nullptr },
{ QMediaFormat::UnspecifiedFormat, nullptr, nullptr }
}

Referenced by avFormatForFormat(), and formatForAVFormat().

◆ mimeType

const char* mimeType

Definition at line 71 of file qffmpegmediaformatinfo.cpp.

Referenced by QtWayland::DataOffer::DataOffer(), QAndroidMetaData::QAndroidMetaData(), QNetworkReplyDataImpl::QNetworkReplyDataImpl(), QtWayland::DataSource::accept(), QMimeBinaryProvider::addAliases(), QZipStreamStrategy::addFile(), QPdfEngine::addFileAttachment(), QPdfWriter::addFileAttachment(), QMimeGlobMatchResult::addMatch(), QtWaylandClient::QWaylandMimeData::appendFormat(), QWindowsMimeText::canConvertToMime(), QWindowsMimeURI::canConvertToMime(), QWindowsMimeHtml::canConvertToMime(), QWindowsMimeImage::canConvertToMime(), QBuiltInMimes::canConvertToMime(), QLastResortMimes::canConvertToMime(), QInternalMimeData::canReadData(), QWindowsMimeRegistry::converterToMime(), QMacMimeHTMLText::convertToMime(), QMacMimeRtfText::convertToMime(), QWindowsMimeImage::convertToMime(), QBuiltInMimes::convertToMime(), QLastResortMimes::convertToMime(), QWindowsMimeURI::convertToMime(), convertTrackInfo(), qstdweb::Blob::copyFrom(), DocumentsContract::createDocument(), QQuickDragAttachedPrivate::createMimeData(), customMimeType(), QMimeData::data(), QtWayland::DataOffer::data_offer_accept(), QtWayland::DataOffer::data_offer_receive(), QAndroidMetaData::extractMetadata(), QMimeBinaryProvider::findByMagic(), QMacMimeRegistry::flavorToMime(), QPrintDevice::format(), QMacPasteboard::formats(), QIOSMimeData::formats(), QWindowsMimeText::formatsForMime(), QWindowsMimeURI::formatsForMime(), QWindowsMimeHtml::formatsForMime(), QWindowsMimeImage::formatsForMime(), QBuiltInMimes::formatsForMime(), QLastResortMimes::formatsForMime(), LocalFileApi::Type::Accept::fromQt(), org.qtproject.qt.android.multimedia.QtAndroidMediaPlayer::getAllTrackInfo(), QWaylandMimeHelper::getByteArray(), QAbstractFileIconProviderPrivate::getFileType(), QMacPasteboard::hasFormat(), QMimeData::hasFormat(), QInternalMimeData::hasFormat(), QCocoaDropData::hasFormat_sys(), QtWaylandClient::QWaylandMimeData::hasFormat_sys(), QInternalMimeData::hasFormatHelper(), QMimeGlobPatternList::hasPattern(), QImageReader::imageFormatsForMimeType(), QImageWriter::imageFormatsForMimeType(), QImageReaderWriterHelpers::imageFormatsForMimeType(), isCustomMimeType(), QQuickTextDocumentPrivate::load(), AndroidContentFileEngine::open(), QHaikuServices::openUrl(), probeImageData(), qDecodeDataUrl(), QWindowsMimeRegistry::registerMimeType(), QWindowsMimeConverter::registerMimeType(), QMimeData::removeFormat(), QMimeAllGlobPatterns::removeMimeType(), QMimeGlobPatternList::removeMimeType(), QInternalMimeData::renderDataHelper(), QMimeBinaryProvider::resolveAlias(), QMimeData::retrieveData(), QInternalMimeData::retrieveData(), QIOSMimeData::retrieveData(), QTextEditMimeData::retrieveData(), QQuickTextEditMimeData::retrieveData(), QWindowsInternalMimeData::retrieveData_sys(), QCocoaDropData::retrieveData_sys(), QtWaylandClient::QWaylandMimeData::retrieveData_sys(), QFileDialog::selectedMimeTypeFilter(), QtWayland::DataSource::send(), QMimeData::setData(), QMacPasteboard::setMimeData(), LocalFileApi::Type::Accept::setMimeType(), QQmlXMLHttpRequest::setOverrideMimeType(), QWasmAudioOutput::setSource(), QtWaylandClient::QWaylandDataOffer::startReceiving(), QtWaylandClient::QWaylandPrimarySelectionOfferV1::startReceiving(), QQuickCanvasItem::toDataURL(), and QTextOdfWriter::writeInlineCharacter().

◆ name

const char* name

Definition at line 72 of file qffmpegmediaformatinfo.cpp.

◆ videoCodecMap