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
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 <private/qtmultimediaglobal_p.h>
19#include <qimagecapture.h>
20#include <qmediaformat.h>
21
23
24class Q_MULTIMEDIA_EXPORT QPlatformMediaFormatInfo
25{
26public:
29
30 QList<QMediaFormat::FileFormat> supportedFileFormats(const QMediaFormat &constraints, QMediaFormat::ConversionMode m) const;
31 QList<QMediaFormat::AudioCodec> supportedAudioCodecs(const QMediaFormat &constraints, QMediaFormat::ConversionMode m) const;
32 QList<QMediaFormat::VideoCodec> supportedVideoCodecs(const QMediaFormat &constraints, QMediaFormat::ConversionMode m) const;
33
34 bool isSupported(const QMediaFormat &format, QMediaFormat::ConversionMode m) const;
35
36 struct CodecMap {
38 QList<QMediaFormat::AudioCodec> audio;
39 QList<QMediaFormat::VideoCodec> video;
40 };
41 QList<CodecMap> encoders;
42 QList<CodecMap> decoders;
43
44 QList<QImageCapture::FileFormat> imageFormats;
45};
46
48
49
50#endif // QPLATFORMMEDIAFORMATINFO_H
\inmodule QtMultimedia
FileFormat
Describes the container format used in a multimedia file or stream.
ConversionMode
In many cases, systems have asymmetric capabilities and can often decode more formats or codecs than ...
virtual ~QPlatformMediaFormatInfo()
QList< QImageCapture::FileFormat > imageFormats
Combined button and popup list for selecting options.
const GLfloat * m
GLint GLsizei GLsizei GLenum format
QList< QMediaFormat::VideoCodec > video
QList< QMediaFormat::AudioCodec > audio