Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qgstreamermetadata_p.h
Go to the documentation of this file.
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
34{
36 bool flip;
37
38 bool operator==(const RotationResult &rhs) const
39 {
40 return std::tie(rotation, flip) == std::tie(rhs.rotation, rhs.flip);
41 }
42};
44
45QT_END_NAMESPACE
46
47#endif // QGSTREAMERMETADATA_H
q23::expected< QGstDiscovererInfo, QUniqueGErrorHandle > discover(const QString &uri)
q23::expected< QGstDiscovererInfo, QUniqueGErrorHandle > discover(QIODevice *)
GListRangeAdaptorImpl< ListType, true > GListConstRangeAdaptor
GListRangeAdaptorImpl< ListType, false > GListRangeAdaptor
QMediaMetaData toStreamMetadata(const QGstDiscovererAudioInfo &info)
static constexpr std::chrono::nanoseconds discovererTimeout
QMediaMetaData toStreamMetadata(const QGstDiscovererSubtitleInfo &info)
QMediaMetaData toStreamMetadata(const QGstDiscovererVideoInfo &info)
QMediaMetaData toContainerMetadata(const QGstDiscovererInfo &info)
static void updateMetadata(QMediaMetaData &metadata, QMediaMetaData::Key key, ValueType value)
void addMissingKeysFromTaglist(QMediaMetaData &metadata, const QGstTagListHandle &tagList)
QMediaMetaData capsToMetaData(const QGstCaps &caps)
QT_BEGIN_NAMESPACE RotationResult parseRotationTag(std::string_view tag)
GListIterator(GListType element=nullptr)
bool operator!=(const GListIterator &r) const noexcept
std::ptrdiff_t difference_type
GListIterator & operator++() noexcept
std::input_iterator_tag iterator_category
const ListType & operator*() const noexcept
const ListType * operator->() const noexcept
GListIterator operator++(int n) noexcept
bool operator==(const GListIterator &r) const noexcept
std::vector< QGstDiscovererAudioInfo > audioStreams
std::vector< QGstDiscovererContainerInfo > containerStreams
std::vector< QGstDiscovererVideoInfo > videoStreams
std::optional< QGstDiscovererContainerInfo > containerInfo
std::vector< QGstDiscovererSubtitleInfo > subtitleStreams
std::optional< std::chrono::nanoseconds > duration
QtVideo::Rotation rotation
bool operator==(const RotationResult &rhs) const