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
22QT_BEGIN_NAMESPACE
23
24QMediaMetaData taglistToMetaData(const QGstTagListHandle &);
25void extendMetaDataFromTagList(QMediaMetaData &, const QGstTagListHandle &);
26
27QMediaMetaData capsToMetaData(const QGstCaps &);
28void extendMetaDataFromCaps(QMediaMetaData &, const QGstCaps &);
29
30void applyMetaDataToTagSetter(const QMediaMetaData &metadata, const QGstBin &);
31void applyMetaDataToTagSetter(const QMediaMetaData &metadata, const QGstElement &);
32
33struct 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};
43RotationResult parseRotationTag(std::string_view);
44
45QT_END_NAMESPACE
46
47#endif // QGSTREAMERMETADATA_H
48

Provided by KDAB

Privacy Policy
Learn Advanced QML with KDAB
Find out more

source code of qtmultimedia/src/plugins/multimedia/gstreamer/common/qgstreamermetadata_p.h