6#include <QtCore/qdatetime.h>
22} ffmpegTagToMetaDataKey[] = {
51 auto *
map = ffmpegTagToMetaDataKey;
53 if (!strcmp(
map->tag,
tag))
62 auto *
map = ffmpegTagToMetaDataKey;
81 auto *
map = &metaData;
85 case qMetaTypeId<QString>():
88 case qMetaTypeId<QStringList>():
91 case qMetaTypeId<QDateTime>(): {
103 case qMetaTypeId<QUrl>():
106 case qMetaTypeId<qint64>():
109 case qMetaTypeId<int>():
112 case qMetaTypeId<qreal>():
118 if (metaTypeId == qMetaTypeId<QLocale::Language>()) {
127 AVDictionaryEntry *
entry =
nullptr;
128 while ((
entry = av_dict_get(tags,
"",
entry, AV_DICT_IGNORE_SUFFIX)))
138 switch (metaTypeId) {
139 case qMetaTypeId<QString>():
140 return val.toString().toUtf8();
141 case qMetaTypeId<QStringList>():
142 return val.toStringList().join(u
",").toUtf8();
143 case qMetaTypeId<QDateTime>():
145 case qMetaTypeId<QUrl>():
146 return val.toUrl().toEncoded();
147 case qMetaTypeId<qint64>():
148 case qMetaTypeId<int>():
150 case qMetaTypeId<qreal>():
155 if (metaTypeId == qMetaTypeId<QLocale::Language>())
164 AVDictionary *dict =
nullptr;
165 for (
const auto &k :
keys) {
172 av_dict_set(&dict,
key,
val.constData(), 0);
qlonglong toLongLong(bool *ok=nullptr, int base=10) const
Returns the byte array converted to a {long long} using base base, which is ten by default.
int toInt(bool *ok=nullptr, int base=10) const
Returns the byte array converted to an int using base base, which is ten by default.
double toDouble(bool *ok=nullptr) const
Returns the byte array converted to a double value.
static QByteArray number(int, int base=10)
Returns a byte-array representing the whole number n as text.
\inmodule QtCore\reentrant
\inmodule QtCore \reentrant
static QString languageToCode(Language language, LanguageCodeTypes codeTypes=AnyLanguageCode)
Returns the two- or three-letter language code for language, as defined in the ISO 639 standards.
static Language codeToLanguage(QStringView languageCode, LanguageCodeTypes codeTypes=AnyLanguageCode) noexcept
Returns the QLocale::Language enum corresponding to the two- or three-letter languageCode,...
iterator insert(const Key &key, const T &value)
QList< Key > keys() const
Key key(const T &value, const Key &defaultKey=Key()) const
QStringList split(const QString &sep, Qt::SplitBehavior behavior=Qt::KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Splits the string into substrings wherever sep occurs, and returns the list of those strings.
static QString fromUtf8(QByteArrayView utf8)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QByteArray toUtf8() const &
\inmodule QtCore \reentrant
static QUrl fromEncoded(QByteArrayView input, ParsingMode mode=TolerantMode)
Parses input and returns the corresponding QUrl.
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
QMap< QString, QString > map
[6]
Combined button and popup list for selecting options.
Q_CORE_EXPORT int qstrcmp(const char *str1, const char *str2)
AudioChannelLayoutTag tag
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define Q_LOGGING_CATEGORY(name,...)
#define qCDebug(category,...)
\inmodule QtCore \reentrant
bool contains(const AT &t) const noexcept