4#ifndef QGLIST_HELPER_P_H
5#define QGLIST_HELPER_P_H
18#include <QtCore/qtconfigmacros.h>
27template <
typename ListType,
bool IsConst>
37 return reinterpret_cast<
const ListType *>(&element->data);
43 element = element->next;
49 for (
int i = 0; i != n; ++i)
67template <
typename ListType,
bool IsConst>
70 static_assert(
std::is_pointer_v<ListType>);
76 auto begin() {
return GListIterator<ListType, IsConst>(head); }
82template <
typename ListType>
84template <
typename ListType>
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)
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
GListRangeAdaptorImpl(GListType list)
QLocale::Language language
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
QLocale::Language language
Fraction pixelAspectRatio