Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qffmpegmediaformatinfo.cpp File Reference

(478ead6690161168472bfb9e4c7864927ac36559)

+ Include dependency graph for qffmpegmediaformatinfo.cpp:

Go to the source code of this file.

Functions

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

struct { 
 
   AVCodecID   id 
 
   QMediaFormat::VideoCodec   codec 
 
s_videoCodecMap [] 
 
struct { 
 
   AVCodecID   id 
 
   QMediaFormat::AudioCodec   codec 
 
s_audioCodecMap [] 
 
struct { 
 
   QMediaFormat::FileFormat   fileFormat 
 
   const char *   mimeType 
 
   const char *   name 
 
s_mimeMap [] 
 

Function Documentation

◆ avFormatForFormat()

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

Definition at line 108 of file qffmpegmediaformatinfo.cpp.

◆ codecId() [1/2]

static AVCodecID codecId ( QMediaFormat::AudioCodec codec)
static

Definition at line 58 of file qffmpegmediaformatinfo.cpp.

◆ codecId() [2/2]

static AVCodecID codecId ( QMediaFormat::VideoCodec codec)
static

Definition at line 32 of file qffmpegmediaformatinfo.cpp.

◆ formatForAVFormat()

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

Definition at line 92 of file qffmpegmediaformatinfo.cpp.

Variable Documentation

◆ codec

Definition at line 17 of file qffmpegmediaformatinfo.cpp.

◆ fileFormat

Definition at line 71 of file qffmpegmediaformatinfo.cpp.

◆ id

AVCodecID id

Definition at line 16 of file qffmpegmediaformatinfo.cpp.

◆ mimeType

const char* mimeType

Definition at line 72 of file qffmpegmediaformatinfo.cpp.

◆ name

const char* name

Definition at line 73 of file qffmpegmediaformatinfo.cpp.

◆ [struct]

◆ [struct]

static constexpr struct { ... } s_mimeMap
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 }
}

◆ [struct]