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

(156dfb5ee6315e2f50ef6b8a380a283ac32f3bf5)

#include <qmediametadata.h>
#include <qdatetime.h>
#include <qtimezone.h>
#include <qimage.h>
#include <quuid.h>
#include <mfapi.h>
#include <mfidl.h>
#include <propvarutil.h>
#include <propkey.h>
#include "private/qwindowsmultimediautils_p.h"
#include "mfmetadata_p.h"
+ Include dependency graph for mfmetadata.cpp:

Go to the source code of this file.

Functions

static QVariant convertValue (const PROPVARIANT &var)
 
static QVariant metaDataValue (IPropertyStore *content, const PROPERTYKEY &key)
 
static REFPROPERTYKEY propertyKeyForMetaDataKey (QMediaMetaData::Key key)
 
static void setStringProperty (IPropertyStore *content, REFPROPERTYKEY key, const QString &value)
 
static void setUInt32Property (IPropertyStore *content, REFPROPERTYKEY key, quint32 value)
 
static void setUInt64Property (IPropertyStore *content, REFPROPERTYKEY key, quint64 value)
 
static void setFileTimeProperty (IPropertyStore *content, REFPROPERTYKEY key, const FILETIME *ft)
 

Variables

static const PROPERTYKEY PROP_KEY_NULL = {GUID_NULL, 0}
 

Function Documentation

◆ convertValue()

static QVariant convertValue ( const PROPVARIANT & var)
static

Definition at line 22 of file mfmetadata.cpp.

References QImage::fromData(), QString::fromUtf16(), i, read(), QTimeZone::UTC, and var.

Referenced by metaDataValue().

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

◆ metaDataValue()

static QVariant metaDataValue ( IPropertyStore * content,
const PROPERTYKEY & key )
static

Definition at line 72 of file mfmetadata.cpp.

References QWindowsMultimediaUtils::codecForAudioFormat(), QWindowsMultimediaUtils::codecForVideoFormat(), convertValue(), QStringLiteral, QSize::setHeight(), and var.

Referenced by MFMetaData::fromNative().

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

◆ propertyKeyForMetaDataKey()

◆ setFileTimeProperty()

static void setFileTimeProperty ( IPropertyStore * content,
REFPROPERTYKEY key,
const FILETIME * ft )
static

Definition at line 312 of file mfmetadata.cpp.

Referenced by MFMetaData::toNative().

+ Here is the caller graph for this function:

◆ setStringProperty()

static void setStringProperty ( IPropertyStore * content,
REFPROPERTYKEY key,
const QString & value )
static

Definition at line 282 of file mfmetadata.cpp.

Referenced by MFMetaData::toNative().

+ Here is the caller graph for this function:

◆ setUInt32Property()

static void setUInt32Property ( IPropertyStore * content,
REFPROPERTYKEY key,
quint32 value )
static

Definition at line 292 of file mfmetadata.cpp.

Referenced by MFMetaData::toNative().

+ Here is the caller graph for this function:

◆ setUInt64Property()

static void setUInt64Property ( IPropertyStore * content,
REFPROPERTYKEY key,
quint64 value )
static

Definition at line 302 of file mfmetadata.cpp.

Referenced by MFMetaData::toNative().

+ Here is the caller graph for this function:

Variable Documentation

◆ PROP_KEY_NULL

const PROPERTYKEY PROP_KEY_NULL = {GUID_NULL, 0}
static

Definition at line 20 of file mfmetadata.cpp.

Referenced by propertyKeyForMetaDataKey(), and MFMetaData::toNative().