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
qgstreamermetadata.cpp File Reference

(32c77267af32a82da040811d4b6d2274b34fa577)

#include "qgstreamermetadata_p.h"
#include <QtMultimedia/qmediametadata.h>
#include <QtMultimedia/qtvideo.h>
#include <QtCore/qdebug.h>
#include <QtCore/qdatetime.h>
#include <QtCore/qlocale.h>
#include <QtCore/qtimezone.h>
#include <QtGui/qimage.h>
#include <gst/gstversion.h>
#include <common/qgst_handle_types_p.h>
#include <common/qgstutils_p.h>
+ Include dependency graph for qgstreamermetadata.cpp:

Go to the source code of this file.

Classes

struct  QT_BEGIN_NAMESPACE::MetadataLookupImpl::MetadataKeyValuePair
 

Namespaces

namespace  QT_BEGIN_NAMESPACE
 Combined button and popup list for selecting options.
 
namespace  QT_BEGIN_NAMESPACE::MetadataLookupImpl
 

Macros

#define constexpr_lookup   /*constexpr*/
 

Functions

constexpr const char * QT_BEGIN_NAMESPACE::MetadataLookupImpl::toTag (const char *t)
 
constexpr const char * QT_BEGIN_NAMESPACE::MetadataLookupImpl::toTag (const MetadataKeyValuePair &kv)
 
constexpr QMediaMetaData::Key QT_BEGIN_NAMESPACE::MetadataLookupImpl::toKey (QMediaMetaData::Key k)
 
constexpr QMediaMetaData::Key QT_BEGIN_NAMESPACE::MetadataLookupImpl::toKey (const MetadataKeyValuePair &kv)
 
constexpr_lookup auto QT_BEGIN_NAMESPACE::MetadataLookupImpl::makeLookupTable ()
 
QMediaMetaData::Key QT_BEGIN_NAMESPACE::tagToKey (const char *tag)
 
const char * QT_BEGIN_NAMESPACE::keyToTag (QMediaMetaData::Key key)
 
QtVideo::Rotation QT_BEGIN_NAMESPACE::parseRotationTag (const char *string)
 
QDateTime QT_BEGIN_NAMESPACE::parseDate (const GValue &val)
 
QDateTime QT_BEGIN_NAMESPACE::parseDateTime (const GValue &val)
 
QImage QT_BEGIN_NAMESPACE::parseImage (const GValue &val)
 
std::optional< double > QT_BEGIN_NAMESPACE::parseFractionAsDouble (const GValue &val)
 
void QT_BEGIN_NAMESPACE::addTagsFromExtendedComment (const GstTagList *list, const gchar *tag, QMediaMetaData &metadata)
 
void QT_BEGIN_NAMESPACE::addTagToMetaData (const GstTagList *list, const gchar *tag, void *userdata)
 
QMediaMetaData taglistToMetaData (const GstTagList *tagList)
 
QMediaMetaData taglistToMetaData (const QGstTagListHandle &handle)
 
static void applyMetaDataToTagSetter (const QMediaMetaData &metadata, GstTagSetter *element)
 
void applyMetaDataToTagSetter (const QMediaMetaData &metadata, const QGstElement &element)
 
void applyMetaDataToTagSetter (const QMediaMetaData &metadata, const QGstBin &bin)
 

Variables

constexpr auto QT_BEGIN_NAMESPACE::MetadataLookupImpl::compareByKey
 
constexpr auto QT_BEGIN_NAMESPACE::MetadataLookupImpl::compareByTag
 
constexpr_lookup auto QT_BEGIN_NAMESPACE::MetadataLookupImpl::gstTagToMetaDataKey = makeLookupTable()
 
constexpr_lookup auto QT_BEGIN_NAMESPACE::MetadataLookupImpl::metaDataKeyToGstTag
 
constexpr std::string_view QT_BEGIN_NAMESPACE::extendedComment { GST_TAG_EXTENDED_COMMENT }
 

Macro Definition Documentation

◆ constexpr_lookup

#define constexpr_lookup   /*constexpr*/

Definition at line 26 of file qgstreamermetadata.cpp.

Function Documentation

◆ applyMetaDataToTagSetter() [1/3]

void applyMetaDataToTagSetter ( const QMediaMetaData & metadata,
const QGstBin & bin )

Definition at line 429 of file qgstreamermetadata.cpp.

References applyMetaDataToTagSetter(), elements, and item.

+ Here is the call graph for this function:

◆ applyMetaDataToTagSetter() [2/3]

void applyMetaDataToTagSetter ( const QMediaMetaData & metadata,
const QGstElement & element )

Definition at line 419 of file qgstreamermetadata.cpp.

References applyMetaDataToTagSetter(), QGstElement::element(), QGstObject::name(), and qWarning.

+ Here is the call graph for this function:

◆ applyMetaDataToTagSetter() [3/3]

static void applyMetaDataToTagSetter ( const QMediaMetaData & metadata,
GstTagSetter * element )
static

Definition at line 366 of file qgstreamermetadata.cpp.

References QByteArray::constData(), date, dateTime, QDate::day(), QGstImpl::QSharedHandle< HandleTraits >::HasRef, QLocale::ISO639Part2, QMediaMetaData::keys(), keyToTag(), QLocale::languageToCode(), QDate::month(), QVariant::toDateTime(), QVariant::toDouble(), QVariant::toInt(), QVariant::toString(), QString::toUtf8(), QVariant::typeId(), QVariant::value(), QMediaMetaData::value(), and QDate::year().

Referenced by applyMetaDataToTagSetter(), applyMetaDataToTagSetter(), QGstreamerMediaEncoder::record(), and QGstreamerImageCapture::setMetaData().

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

◆ taglistToMetaData() [1/2]

QMediaMetaData taglistToMetaData ( const GstTagList * tagList)

Definition at line 353 of file qgstreamermetadata.cpp.

Referenced by QGstreamerMediaPlayer::processBusMessage(), taglistToMetaData(), and QGstreamerMediaPlayer::trackMetaData().

+ Here is the caller graph for this function:

◆ taglistToMetaData() [2/2]

QMediaMetaData taglistToMetaData ( const QGstTagListHandle & handle)

Definition at line 361 of file qgstreamermetadata.cpp.

References taglistToMetaData().

+ Here is the call graph for this function: