Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
avfmetadata.mm File Reference
#include "avfmetadata_p.h"
#include <qdarwinformatsinfo_p.h>
#include <avfmediaplayer_p.h>
#include <QtCore/qbuffer.h>
#include <QtCore/qiodevice.h>
#include <QtCore/qdatetime.h>
#include <QtCore/qlocale.h>
#include <QtCore/qurl.h>
#include <QImage>
#include <QtMultimedia/qvideoframe.h>
#include <CoreFoundation/CoreFoundation.h>
+ Include dependency graph for avfmetadata.mm:

Go to the source code of this file.

Classes

struct  AVMetadataIDs
 

Functions

static AVMetadataIdentifier toIdentifier (QMediaMetaData::Key key, AVMetadataKeySpace keySpace)
 
static std::optional< QMediaMetaData::KeytoKey (AVMetadataItem *item)
 
static QMediaMetaData fromAVMetadata (NSArray *metadataItems)
 
static AVMutableMetadataItem * setAVMetadataItemForKey (QMediaMetaData::Key key, const QVariant &value, AVMetadataKeySpace keySpace=AVMetadataKeySpaceCommon)
 

Variables

const AVMetadataIDs keyToAVMetaDataID []
 

Function Documentation

◆ fromAVMetadata()

static QMediaMetaData fromAVMetadata ( NSArray *  metadataItems)
static

Definition at line 213 of file avfmetadata.mm.

References QMediaMetaData::insert(), item, and toKey().

Referenced by AVFMetaData::fromAsset(), and AVFMetaData::fromAssetTrack().

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

◆ setAVMetadataItemForKey()

static AVMutableMetadataItem * setAVMetadataItemForKey ( QMediaMetaData::Key  key,
const QVariant value,
AVMetadataKeySpace  keySpace = AVMetadataKeySpaceCommon 
)
static

Definition at line 274 of file avfmetadata.mm.

References QDarwinFormatInfo::avFileTypeForContainerFormat(), QMediaMetaData::CoverArtImage, QMediaMetaData::FileFormat, QString::isEmpty(), item, QMediaMetaData::Language, QLocale::languageToCode(), ok, QMediaMetaData::Orientation, release(), QMediaMetaData::ThumbnailImage, toIdentifier(), and QIODeviceBase::WriteOnly.

Referenced by AVFMetaData::toAVMetadataForFormat().

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

◆ toIdentifier()

static AVMetadataIdentifier toIdentifier ( QMediaMetaData::Key  key,
AVMetadataKeySpace  keySpace 
)
static

Definition at line 116 of file avfmetadata.mm.

References AVMetadataIDs::common, AVMetadataIDs::ID3, AVMetadataIDs::iTunes, keyToAVMetaDataID, AVMetadataIDs::quickTime, and QMediaMetaData::Resolution.

Referenced by QV4::IdentifierHash::add(), QV4::IdentifierHash::add(), and setAVMetadataItemForKey().

+ Here is the caller graph for this function:

◆ toKey()

Variable Documentation

◆ keyToAVMetaDataID

const AVMetadataIDs keyToAVMetaDataID[]

Definition at line 33 of file avfmetadata.mm.

Referenced by toIdentifier(), and toKey().