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