Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CDVDClock Class Reference

#include <DVDClock.h>

Public Member Functions

 CDVDClock ()
 
 ~CDVDClock ()
 
double GetClock (bool interpolated=true)
 
double GetClock (double &absolute, bool interpolated=true)
 
double ErrorAdjust (double error, const char *log)
 
void Discontinuity (double clock, double absolute)
 
void Discontinuity (double clock=0LL)
 
void Reset ()
 
void SetSpeed (int iSpeed)
 
void SetSpeedAdjust (double adjust)
 
double GetSpeedAdjust ()
 
double GetClockSpeed ()
 
int UpdateFramerate (double fps, double *interval=NULL)
 
void SetMaxSpeedAdjust (double speed)
 
double GetAbsoluteClock (bool interpolated=true)
 
double GetFrequency ()
 
bool GetClockInfo (int &MissedVblanks, double &ClockSpeed, double &RefreshRate) const
 
void SetVsyncAdjust (double adjustment)
 
double GetVsyncAdjust ()
 
void Pause (bool pause)
 
void Advance (double time)
 

Protected Member Functions

double SystemToAbsolute (int64_t system)
 
int64_t AbsoluteToSystem (double absolute)
 
double SystemToPlaying (int64_t system)
 

Protected Attributes

CCriticalSection m_critSection
 
int64_t m_systemUsed
 
int64_t m_startClock
 
int64_t m_pauseClock
 
double m_iDisc
 
bool m_bReset
 
bool m_paused
 
int m_speedAfterPause
 
std::unique_ptr< CVideoReferenceClockm_videoRefClock
 
int64_t m_systemFrequency
 
int64_t m_systemOffset
 
CCriticalSection m_systemsection
 
int64_t m_systemAdjust
 
int64_t m_lastSystemTime
 
double m_speedAdjust
 
double m_vSyncAdjust
 
double m_frameTime
 
double m_maxspeedadjust
 
CCriticalSection m_speedsection
 

Constructor & Destructor Documentation

◆ CDVDClock()

CDVDClock::CDVDClock ( )

◆ ~CDVDClock()

CDVDClock::~CDVDClock ( )
default

Member Function Documentation

◆ AbsoluteToSystem()

int64_t CDVDClock::AbsoluteToSystem ( double absolute)
protected

◆ Advance()

void CDVDClock::Advance ( double time)

◆ Discontinuity() [1/2]

void CDVDClock::Discontinuity ( double clock,
double absolute )

◆ Discontinuity() [2/2]

void CDVDClock::Discontinuity ( double clock = 0LL)
inline

◆ ErrorAdjust()

double CDVDClock::ErrorAdjust ( double error,
const char * log )

◆ GetAbsoluteClock()

double CDVDClock::GetAbsoluteClock ( bool interpolated = true)

◆ GetClock() [1/2]

double CDVDClock::GetClock ( bool interpolated = true)

◆ GetClock() [2/2]

double CDVDClock::GetClock ( double & absolute,
bool interpolated = true )

◆ GetClockInfo()

bool CDVDClock::GetClockInfo ( int & MissedVblanks,
double & ClockSpeed,
double & RefreshRate ) const

◆ GetClockSpeed()

double CDVDClock::GetClockSpeed ( )

get the current speed of the clock relative normal system time

◆ GetFrequency()

double CDVDClock::GetFrequency ( )
inline

◆ GetSpeedAdjust()

double CDVDClock::GetSpeedAdjust ( )

◆ GetVsyncAdjust()

double CDVDClock::GetVsyncAdjust ( )

◆ Pause()

void CDVDClock::Pause ( bool pause)

◆ Reset()

void CDVDClock::Reset ( )
inline

◆ SetMaxSpeedAdjust()

void CDVDClock::SetMaxSpeedAdjust ( double speed)

◆ SetSpeed()

void CDVDClock::SetSpeed ( int iSpeed)

◆ SetSpeedAdjust()

void CDVDClock::SetSpeedAdjust ( double adjust)

◆ SetVsyncAdjust()

void CDVDClock::SetVsyncAdjust ( double adjustment)

◆ SystemToAbsolute()

double CDVDClock::SystemToAbsolute ( int64_t system)
protected

◆ SystemToPlaying()

double CDVDClock::SystemToPlaying ( int64_t system)
protected

◆ UpdateFramerate()

int CDVDClock::UpdateFramerate ( double fps,
double * interval = NULL )

Member Data Documentation

◆ m_bReset

bool CDVDClock::m_bReset
protected

◆ m_critSection

CCriticalSection CDVDClock::m_critSection
protected

◆ m_frameTime

double CDVDClock::m_frameTime
protected

◆ m_iDisc

double CDVDClock::m_iDisc
protected

◆ m_lastSystemTime

int64_t CDVDClock::m_lastSystemTime
protected

◆ m_maxspeedadjust

double CDVDClock::m_maxspeedadjust
protected

◆ m_pauseClock

int64_t CDVDClock::m_pauseClock
protected

◆ m_paused

bool CDVDClock::m_paused
protected

◆ m_speedAdjust

double CDVDClock::m_speedAdjust
protected

◆ m_speedAfterPause

int CDVDClock::m_speedAfterPause
protected

◆ m_speedsection

CCriticalSection CDVDClock::m_speedsection
protected

◆ m_startClock

int64_t CDVDClock::m_startClock
protected

◆ m_systemAdjust

int64_t CDVDClock::m_systemAdjust
protected

◆ m_systemFrequency

int64_t CDVDClock::m_systemFrequency
protected

◆ m_systemOffset

int64_t CDVDClock::m_systemOffset
protected

◆ m_systemsection

CCriticalSection CDVDClock::m_systemsection
protected

◆ m_systemUsed

int64_t CDVDClock::m_systemUsed
protected

◆ m_videoRefClock

std::unique_ptr<CVideoReferenceClock> CDVDClock::m_videoRefClock
protected

◆ m_vSyncAdjust

double CDVDClock::m_vSyncAdjust
protected

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