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
QFFmpeg::MediaDataHolder Class Reference

#include <qffmpegmediadataholder_p.h>

+ Collaboration diagram for QFFmpeg::MediaDataHolder:

Classes

struct  ContextError
 
struct  StreamInfo
 

Public Types

using StreamsMap = std::array<QList<StreamInfo>, QPlatformMediaPlayer::NTrackTypes>
 
using StreamIndexes = std::array<int, QPlatformMediaPlayer::NTrackTypes>
 
using Maybe = QMaybe<QSharedPointer<MediaDataHolder>, ContextError>
 

Public Member Functions

 MediaDataHolder ()=default
 
 MediaDataHolder (AVFormatContextUPtr context, const std::shared_ptr< ICancelToken > &cancelToken)
 
int activeTrack (QPlatformMediaPlayer::TrackType type) const
 
const QList< StreamInfo > & streamInfo (QPlatformMediaPlayer::TrackType trackType) const
 
qint64 duration () const
 
const QMediaMetaDatametaData () const
 
bool isSeekable () const
 
QtVideo::Rotation rotation () const
 
AVFormatContext * avContext ()
 
int currentStreamIndex (QPlatformMediaPlayer::TrackType trackType) const
 
bool setActiveTrack (QPlatformMediaPlayer::TrackType type, int streamNumber)
 

Static Public Member Functions

static QPlatformMediaPlayer::TrackType trackTypeFromMediaType (int mediaType)
 
static Maybe create (const QUrl &url, QIODevice *stream, const std::shared_ptr< ICancelToken > &cancelToken)
 

Detailed Description

Definition at line 39 of file qffmpegmediadataholder_p.h.

Member Typedef Documentation

◆ Maybe

◆ StreamIndexes

◆ StreamsMap

Constructor & Destructor Documentation

◆ MediaDataHolder() [1/2]

QFFmpeg::MediaDataHolder::MediaDataHolder ( )
default

◆ MediaDataHolder() [2/2]

QFFmpeg::MediaDataHolder::MediaDataHolder ( AVFormatContextUPtr context,
const std::shared_ptr< ICancelToken > & cancelToken )

Member Function Documentation

◆ activeTrack()

int QFFmpeg::MediaDataHolder::activeTrack ( QPlatformMediaPlayer::TrackType type) const

Referenced by QFFmpeg::PlaybackEngine::activeTrack().

+ Here is the caller graph for this function:

◆ avContext()

AVFormatContext * QFFmpeg::MediaDataHolder::avContext ( )

Referenced by QFFmpeg::PlaybackEngine::setMedia(), and QFFmpeg::PlaybackEngine::setState().

+ Here is the caller graph for this function:

◆ create()

static Maybe QFFmpeg::MediaDataHolder::create ( const QUrl & url,
QIODevice * stream,
const std::shared_ptr< ICancelToken > & cancelToken )
static

Referenced by QFFmpegMediaPlayer::setMedia(), and QFFmpegAudioDecoder::start().

+ Here is the caller graph for this function:

◆ currentStreamIndex()

int QFFmpeg::MediaDataHolder::currentStreamIndex ( QPlatformMediaPlayer::TrackType trackType) const

◆ duration()

qint64 QFFmpeg::MediaDataHolder::duration ( ) const
inline

Definition at line 67 of file qffmpegmediadataholder_p.h.

Referenced by QFFmpeg::PlaybackEngine::duration().

+ Here is the caller graph for this function:

◆ isSeekable()

bool QFFmpeg::MediaDataHolder::isSeekable ( ) const
inline

Definition at line 71 of file qffmpegmediadataholder_p.h.

Referenced by QFFmpeg::PlaybackEngine::isSeekable().

+ Here is the caller graph for this function:

◆ metaData()

const QMediaMetaData & QFFmpeg::MediaDataHolder::metaData ( ) const
inline

Definition at line 69 of file qffmpegmediadataholder_p.h.

Referenced by QFFmpeg::PlaybackEngine::metaData().

+ Here is the caller graph for this function:

◆ rotation()

QtVideo::Rotation QFFmpeg::MediaDataHolder::rotation ( ) const

Referenced by QFFmpeg::PlaybackEngine::createRenderer().

+ Here is the caller graph for this function:

◆ setActiveTrack()

bool QFFmpeg::MediaDataHolder::setActiveTrack ( QPlatformMediaPlayer::TrackType type,
int streamNumber )

Referenced by QFFmpeg::PlaybackEngine::setActiveTrack().

+ Here is the caller graph for this function:

◆ streamInfo()

const QList< StreamInfo > & QFFmpeg::MediaDataHolder::streamInfo ( QPlatformMediaPlayer::TrackType trackType) const

Referenced by QFFmpeg::PlaybackEngine::streamInfo().

+ Here is the caller graph for this function:

◆ trackTypeFromMediaType()

static QPlatformMediaPlayer::TrackType QFFmpeg::MediaDataHolder::trackTypeFromMediaType ( int mediaType)
static

The documentation for this class was generated from the following file: