Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qgstreamermetadata.cpp File Reference
#include "qgstreamermetadata_p.h"
#include <QDebug>
#include <QtMultimedia/qmediametadata.h>
#include <QtCore/qdatetime.h>
#include <QtCore/qtimezone.h>
#include <gst/gstversion.h>
#include <qgstutils_p.h>
#include <qlocale.h>
+ Include dependency graph for qgstreamermetadata.cpp:

Go to the source code of this file.

Functions

static QMediaMetaData::Key tagToKey (const char *tag)
 
static const char * keyToTag (QMediaMetaData::Key key)
 
static void addTagToMap (const GstTagList *list, const gchar *tag, gpointer user_data)
 

Variables

struct { 
 
   const char *   tag 
 
   QMediaMetaData::Key   key 
 
gstTagToMetaDataKey [] 
 

Function Documentation

◆ addTagToMap()

static void addTagToMap ( const GstTagList *  list,
const gchar *  tag,
gpointer  user_data 
)
static

Definition at line 84 of file qgstreamermetadata.cpp.

References QLocale::codeToLanguage(), QMap< Key, T >::contains(), date, dateTime, QImage::fromData(), QString::fromUtf8(), QVariant::fromValue(), info, QMap< Key, T >::insert(), QLocale::ISO639Part2, QMediaMetaData::Language, list, map, QFileInfo::size(), tag, tagToKey(), and user_data.

Referenced by QGstreamerMetaData::fromGstTagList().

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

◆ keyToTag()

static const char * keyToTag ( QMediaMetaData::Key  key)
static

Definition at line 72 of file qgstreamermetadata.cpp.

References gstTagToMetaDataKey, QMap< Key, T >::key(), and map.

+ Here is the call graph for this function:

◆ tagToKey()

static QMediaMetaData::Key tagToKey ( const char *  tag)
static

Definition at line 61 of file qgstreamermetadata.cpp.

References gstTagToMetaDataKey, QMap< Key, T >::key(), map, and tag.

Referenced by addTagToMap().

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

Variable Documentation

◆ [struct]

QT_BEGIN_NAMESPACE struct { ... } gstTagToMetaDataKey[]

Referenced by keyToTag(), and tagToKey().

◆ key

Definition at line 18 of file qgstreamermetadata.cpp.

◆ tag

const char* tag

Definition at line 17 of file qgstreamermetadata.cpp.

Referenced by addTagToMap(), and tagToKey().