Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qplatformmediaformatinfo_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
QPLATFORMMEDIAFORMATINFO_H
5
#
define
QPLATFORMMEDIAFORMATINFO_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
<
QtMultimedia
/
private
/
qtmultimediaglobal_p
.
h
>
19
#
include
<
QtMultimedia
/
qimagecapture
.
h
>
20
#
include
<
QtMultimedia
/
qmediaformat
.
h
>
21
22
QT_BEGIN_NAMESPACE
23
24
class
QDebug;
25
26
class
Q_MULTIMEDIA_EXPORT
QPlatformMediaFormatInfo
27
{
28
public
:
29
QPlatformMediaFormatInfo();
30
virtual
~QPlatformMediaFormatInfo();
31
32
QList<QMediaFormat::FileFormat> supportedFileFormats(
const
QMediaFormat &constraints, QMediaFormat::ConversionMode m)
const
;
33
QList<QMediaFormat::AudioCodec> supportedAudioCodecs(
const
QMediaFormat &constraints, QMediaFormat::ConversionMode m)
const
;
34
QList<QMediaFormat::VideoCodec> supportedVideoCodecs(
const
QMediaFormat &constraints, QMediaFormat::ConversionMode m)
const
;
35
36
bool
isSupported(
const
QMediaFormat &format, QMediaFormat::ConversionMode m)
const
;
37
38
void
fixupCodecMaps();
39
40
struct
CodecMap {
41
QMediaFormat::FileFormat format;
42
QList<QMediaFormat::AudioCodec> audio;
43
QList<QMediaFormat::VideoCodec> video;
44
45
Q_MULTIMEDIA_EXPORT
friend
QDebug operator<<(QDebug dbg,
const
CodecMap &m);
46
};
47
QList<CodecMap> encoders;
48
QList<CodecMap> decoders;
49
50
QList<QImageCapture::FileFormat> imageFormats;
51
};
52
53
QT_END_NAMESPACE
54
55
56
#
endif
// QPLATFORMMEDIAFORMATINFO_H
QPlatformMediaFormatInfo
Definition
qplatformmediaformatinfo_p.h:27
Q_STATIC_LOGGING_CATEGORY
QT_BEGIN_NAMESPACE Q_STATIC_LOGGING_CATEGORY(lcSynthesizedIterableAccess, "qt.iterable.synthesized", QtWarningMsg)
qtmultimedia
src
multimedia
platform
qplatformmediaformatinfo_p.h
Generated on
for Qt by
1.18.0