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 QGSTREAMERFORMATINFO_H
5#define QGSTREAMERFORMATINFO_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 <qlist.h>
20#include <common/qgst_p.h>
21
22QT_BEGIN_NAMESPACE
23
24class QGstreamerFormatInfo : public QPlatformMediaFormatInfo
25{
26public:
27 QGstreamerFormatInfo();
28 ~QGstreamerFormatInfo();
29
30 QGstCaps formatCaps(const QMediaFormat &f) const;
31 QGstCaps audioCaps(const QMediaFormat &f) const;
32 QGstCaps videoCaps(const QMediaFormat &f) const;
33
34 static QMediaFormat::AudioCodec audioCodecForCaps(QGstStructureView structure);
35 static QMediaFormat::VideoCodec videoCodecForCaps(QGstStructureView structure);
36 static QMediaFormat::FileFormat fileFormatForCaps(QGstStructureView structure);
37 static QImageCapture::FileFormat imageFormatForCaps(QGstStructureView structure);
38
39private:
40 QList<CodecMap> getCodecMaps(QMediaFormat::ConversionMode conversionMode, QList<QMediaFormat::AudioCodec> audioCodecs,
41 QList<QMediaFormat::VideoCodec> videoCodecs);
42};
43
44QT_END_NAMESPACE
45
46#endif
47

Provided by KDAB

Privacy Policy
Start learning QML with our Intro Training
Find out more

source code of qtmultimedia/src/plugins/multimedia/gstreamer/qgstreamerformatinfo_p.h