Qt
6.x
The Qt SDK
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Symbols
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
Loading...
Searching...
No Matches
qffmpegmediaformatinfo_p.h
Go to the documentation of this file.
1
// Copyright (C) 2021 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
#ifndef QFFmpegMediaFormatInfo_H
5
#define QFFmpegMediaFormatInfo_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists purely as an
12
// implementation detail. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#include <private/qplatformmediaformatinfo_p.h>
19
#include <
qhash.h
>
20
#include <
qlist.h
>
21
#include <
qaudioformat.h
>
22
#include "
qffmpeg_p.h
"
23
24
QT_BEGIN_NAMESPACE
25
26
class
QFFmpegMediaFormatInfo
:
public
QPlatformMediaFormatInfo
27
{
28
public
:
29
QFFmpegMediaFormatInfo
();
30
~QFFmpegMediaFormatInfo
();
31
32
static
QMediaFormat::VideoCodec
videoCodecForAVCodecId
(AVCodecID
id
);
33
static
QMediaFormat::AudioCodec
audioCodecForAVCodecId
(AVCodecID
id
);
34
static
QMediaFormat::FileFormat
fileFormatForAVInputFormat
(
const
AVInputFormat *
format
);
35
36
static
const
AVOutputFormat *
outputFormatForFileFormat
(
QMediaFormat::FileFormat
format
);
37
38
static
AVCodecID
codecIdForVideoCodec
(
QMediaFormat::VideoCodec
codec
);
39
static
AVCodecID
codecIdForAudioCodec
(
QMediaFormat::AudioCodec
codec
);
40
41
static
QAudioFormat::SampleFormat
sampleFormat
(AVSampleFormat
format
);
42
static
AVSampleFormat
avSampleFormat
(
QAudioFormat::SampleFormat
format
);
43
44
static
int64_t
avChannelLayout
(
QAudioFormat::ChannelConfig
channelConfig
);
45
static
QAudioFormat::ChannelConfig
channelConfigForAVLayout
(int64_t
avChannelLayout
);
46
47
static
QAudioFormat
audioFormatFromCodecParameters
(AVCodecParameters *codecPar);
48
};
49
50
QT_END_NAMESPACE
51
52
#endif
QAudioFormat
The QAudioFormat class stores audio stream parameter information.
Definition
qaudioformat.h:25
QAudioFormat::SampleFormat
SampleFormat
Qt will always expect and use samples in the endianness of the host platform.
Definition
qaudioformat.h:27
QAudioFormat::ChannelConfig
ChannelConfig
\variable QAudioFormat::NChannelPositions
Definition
qaudioformat.h:66
QFFmpegMediaFormatInfo
Definition
qffmpegmediaformatinfo_p.h:27
QFFmpegMediaFormatInfo::audioFormatFromCodecParameters
static QAudioFormat audioFormatFromCodecParameters(AVCodecParameters *codecPar)
Definition
qffmpegmediaformatinfo.cpp:497
QFFmpegMediaFormatInfo::codecIdForAudioCodec
static AVCodecID codecIdForAudioCodec(QMediaFormat::AudioCodec codec)
Definition
qffmpegmediaformatinfo.cpp:335
QFFmpegMediaFormatInfo::videoCodecForAVCodecId
static QMediaFormat::VideoCodec videoCodecForAVCodecId(AVCodecID id)
Definition
qffmpegmediaformatinfo.cpp:274
QFFmpegMediaFormatInfo::QFFmpegMediaFormatInfo
QFFmpegMediaFormatInfo()
Definition
qffmpegmediaformatinfo.cpp:130
QFFmpegMediaFormatInfo::fileFormatForAVInputFormat
static QMediaFormat::FileFormat fileFormatForAVInputFormat(const AVInputFormat *format)
Definition
qffmpegmediaformatinfo.cpp:284
QFFmpegMediaFormatInfo::sampleFormat
static QAudioFormat::SampleFormat sampleFormat(AVSampleFormat format)
Definition
qffmpegmediaformatinfo.cpp:340
QFFmpegMediaFormatInfo::outputFormatForFileFormat
static const AVOutputFormat * outputFormatForFileFormat(QMediaFormat::FileFormat format)
Definition
qffmpegmediaformatinfo.cpp:325
QFFmpegMediaFormatInfo::codecIdForVideoCodec
static AVCodecID codecIdForVideoCodec(QMediaFormat::VideoCodec codec)
Definition
qffmpegmediaformatinfo.cpp:330
QFFmpegMediaFormatInfo::audioCodecForAVCodecId
static QMediaFormat::AudioCodec audioCodecForAVCodecId(AVCodecID id)
Definition
qffmpegmediaformatinfo.cpp:265
QFFmpegMediaFormatInfo::avSampleFormat
static AVSampleFormat avSampleFormat(QAudioFormat::SampleFormat format)
Definition
qffmpegmediaformatinfo.cpp:367
QFFmpegMediaFormatInfo::channelConfigForAVLayout
static QAudioFormat::ChannelConfig channelConfigForAVLayout(int64_t avChannelLayout)
Definition
qffmpegmediaformatinfo.cpp:440
QFFmpegMediaFormatInfo::~QFFmpegMediaFormatInfo
~QFFmpegMediaFormatInfo()
QFFmpegMediaFormatInfo::avChannelLayout
static int64_t avChannelLayout(QAudioFormat::ChannelConfig channelConfig)
Definition
qffmpegmediaformatinfo.cpp:383
QMediaFormat::AudioCodec
AudioCodec
\qmlproperty enumeration QtMultimedia::mediaFormat::fileFormat
Definition
qmediaformat.h:47
QMediaFormat::FileFormat
FileFormat
Describes the container format used in a multimedia file or stream.
Definition
qmediaformat.h:26
QMediaFormat::VideoCodec
VideoCodec
\qmlproperty enumeration QtMultimedia::mediaFormat::audioCodec
Definition
qmediaformat.h:64
QPlatformMediaFormatInfo
Definition
qplatformmediaformatinfo_p.h:25
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
qaudioformat.h
channelConfig
QAudioFormat::ChannelConfig channelConfig
Definition
qcoreaudioutils.mm:176
qffmpeg_p.h
codec
QMediaFormat::AudioCodec codec
Definition
qffmpegmediaformatinfo.cpp:42
qhash.h
qlist.h
format
GLint GLsizei GLsizei GLenum format
Definition
qopengles2ext.h:206
qtmultimedia
src
plugins
multimedia
ffmpeg
qffmpegmediaformatinfo_p.h
Generated by
1.9.7