Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QFFmpeg::Clock Class Reference

#include <qffmpegclock_p.h>

+ Collaboration diagram for QFFmpeg::Clock:

Public Types

enum  Type { SystemClock , AudioClock }
 

Public Member Functions

 Clock (ClockController *controller)
 
virtual ~Clock ()
 
virtual Type type () const
 
float playbackRate () const
 
bool isMaster () const
 
qint64 currentTime () const
 
qint64 seekTime () const
 
qint64 usecsTo (qint64 currentTime, qint64 displayTime)
 

Protected Member Functions

virtual void syncTo (qint64 usecs)
 
virtual void setPlaybackRate (float rate, qint64 currentTime)
 
virtual void setPaused (bool paused)
 
qint64 timeUpdated (qint64 currentTime)
 

Friends

class ClockController
 

Detailed Description

Definition at line 24 of file qffmpegclock_p.h.

Member Enumeration Documentation

◆ Type

Enumerator
SystemClock 
AudioClock 

Definition at line 28 of file qffmpegclock_p.h.

Constructor & Destructor Documentation

◆ Clock()

QFFmpeg::Clock::Clock ( ClockController controller)

Definition at line 21 of file qffmpegclock.cpp.

References Q_ASSERT.

◆ ~Clock()

QFFmpeg::Clock::~Clock ( )
virtual

Definition at line 28 of file qffmpegclock.cpp.

Member Function Documentation

◆ currentTime()

qint64 QFFmpeg::Clock::currentTime ( ) const

Definition at line 34 of file qffmpegclock.cpp.

◆ isMaster()

bool QFFmpeg::Clock::isMaster ( ) const
inline

Definition at line 98 of file qffmpegclock_p.h.

◆ playbackRate()

float QFFmpeg::Clock::playbackRate ( ) const
inline

Definition at line 93 of file qffmpegclock_p.h.

◆ seekTime()

qint64 QFFmpeg::Clock::seekTime ( ) const
inline

Definition at line 103 of file qffmpegclock_p.h.

◆ setPaused()

void QFFmpeg::Clock::setPaused ( bool  paused)
protectedvirtual

Definition at line 51 of file qffmpegclock.cpp.

References Q_UNUSED, and qCDebug.

◆ setPlaybackRate()

void QFFmpeg::Clock::setPlaybackRate ( float  rate,
qint64  currentTime 
)
protectedvirtual

Definition at line 44 of file qffmpegclock.cpp.

References currentTime(), Q_UNUSED, and qCDebug.

+ Here is the call graph for this function:

◆ syncTo()

void QFFmpeg::Clock::syncTo ( qint64  usecs)
protectedvirtual

Definition at line 39 of file qffmpegclock.cpp.

References qCDebug, and time.

◆ timeUpdated()

qint64 QFFmpeg::Clock::timeUpdated ( qint64  currentTime)
protected

Definition at line 57 of file qffmpegclock.cpp.

References currentTime().

+ Here is the call graph for this function:

◆ type()

QFFmpeg::Clock::Type QFFmpeg::Clock::type ( ) const
virtual

Definition at line 72 of file qffmpegclock.cpp.

◆ usecsTo()

qint64 QFFmpeg::Clock::usecsTo ( qint64  currentTime,
qint64  displayTime 
)

Definition at line 64 of file qffmpegclock.cpp.

References currentTime(), and qRound64().

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ ClockController

friend class ClockController
friend

Definition at line 52 of file qffmpegclock_p.h.


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