Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QT_BEGIN_NAMESPACE::MetadataLookupImpl Namespace Reference

Classes

struct  MetadataKeyValuePair
 

Functions

constexpr const char * toTag (const char *t)
 
constexpr const char * toTag (const MetadataKeyValuePair &kv)
 
constexpr QMediaMetaData::Key toKey (QMediaMetaData::Key k)
 
constexpr QMediaMetaData::Key toKey (const MetadataKeyValuePair &kv)
 
constexpr_lookup auto makeLookupTable ()
 

Variables

constexpr auto compareByKey
 
constexpr auto compareByTag
 
constexpr_lookup auto gstTagToMetaDataKey = makeLookupTable()
 
constexpr_lookup auto metaDataKeyToGstTag
 

Function Documentation

◆ makeLookupTable()

constexpr_lookup auto QT_BEGIN_NAMESPACE::MetadataLookupImpl::makeLookupTable ( )

◆ toKey() [1/2]

constexpr QMediaMetaData::Key QT_BEGIN_NAMESPACE::MetadataLookupImpl::toKey ( const MetadataKeyValuePair & kv)
constexpr

Definition at line 48 of file qgstreamermetadata.cpp.

◆ toKey() [2/2]

constexpr QMediaMetaData::Key QT_BEGIN_NAMESPACE::MetadataLookupImpl::toKey ( QMediaMetaData::Key k)
constexpr

Definition at line 44 of file qgstreamermetadata.cpp.

◆ toTag() [1/2]

constexpr const char * QT_BEGIN_NAMESPACE::MetadataLookupImpl::toTag ( const char * t)
constexpr

Definition at line 35 of file qgstreamermetadata.cpp.

References toTag().

Referenced by toTag(), and toTag().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toTag() [2/2]

constexpr const char * QT_BEGIN_NAMESPACE::MetadataLookupImpl::toTag ( const MetadataKeyValuePair & kv)
constexpr

Definition at line 39 of file qgstreamermetadata.cpp.

References toTag().

+ Here is the call graph for this function:

Variable Documentation

◆ compareByKey

constexpr auto QT_BEGIN_NAMESPACE::MetadataLookupImpl::compareByKey
constexpr
Initial value:
= [](const auto &lhs, const auto &rhs) {
return toKey(lhs) < toKey(rhs);
}
static std::optional< QMediaMetaData::Key > toKey(AVMetadataItem *item)

Definition at line 53 of file qgstreamermetadata.cpp.

◆ compareByTag

constexpr auto QT_BEGIN_NAMESPACE::MetadataLookupImpl::compareByTag
constexpr
Initial value:
= [](const auto &lhs, const auto &rhs) {
return std::strcmp(toTag(lhs), toTag(rhs)) < 0;
}
constexpr const char * toTag(const char *t)

Definition at line 57 of file qgstreamermetadata.cpp.

◆ gstTagToMetaDataKey

constexpr_lookup auto QT_BEGIN_NAMESPACE::MetadataLookupImpl::gstTagToMetaDataKey = makeLookupTable()

Definition at line 110 of file qgstreamermetadata.cpp.

◆ metaDataKeyToGstTag

constexpr_lookup auto QT_BEGIN_NAMESPACE::MetadataLookupImpl::metaDataKeyToGstTag
Initial value:
= [] {
std::sort(array.begin(), array.end(), compareByKey);
return array;
}()
GLenum array

Definition at line 111 of file qgstreamermetadata.cpp.