1 | // Copyright (C) 2016 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 QGSTREAMERMETADATA_H |
5 | #define QGSTREAMERMETADATA_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 <qmediametadata.h> |
19 | |
20 | #include "qgst_p.h" |
21 | |
22 | QT_BEGIN_NAMESPACE |
23 | |
24 | QMediaMetaData taglistToMetaData(const QGstTagListHandle &); |
25 | void extendMetaDataFromTagList(QMediaMetaData &, const QGstTagListHandle &); |
26 | |
27 | QMediaMetaData capsToMetaData(const QGstCaps &); |
28 | void extendMetaDataFromCaps(QMediaMetaData &, const QGstCaps &); |
29 | |
30 | void applyMetaDataToTagSetter(const QMediaMetaData &metadata, const QGstBin &); |
31 | void applyMetaDataToTagSetter(const QMediaMetaData &metadata, const QGstElement &); |
32 | |
33 | struct RotationResult |
34 | { |
35 | QtVideo::Rotation rotation; |
36 | bool flip; |
37 | |
38 | bool operator==(const RotationResult &rhs) const |
39 | { |
40 | return std::tie(args: rotation, args: flip) == std::tie(args: rhs.rotation, args: rhs.flip); |
41 | } |
42 | }; |
43 | RotationResult parseRotationTag(std::string_view); |
44 | |
45 | QT_END_NAMESPACE |
46 | |
47 | #endif // QGSTREAMERMETADATA_H |
48 |