MythTV  master
Public Member Functions | Private Attributes | List of all members
MythPlayerAVSync Class Reference

#include <mythplayeravsync.h>

Collaboration diagram for MythPlayerAVSync:
Collaboration graph
[legend]

Public Member Functions

 MythPlayerAVSync ()
 
void InitAVSync ()
 
int64_t AVSync (AudioPlayer *Audio, MythVideoFrame *Frame, int FrameInterval, float PlaySpeed, bool HaveVideo, bool Force)
 
void WaitForFrame (int64_t FrameDue)
 
int64_t & DisplayTimecode ()
 
void ResetAVSyncClockBase ()
 
void GetAVSyncData (InfoMap &Map) const
 
bool GetAVSyncAudioPause () const
 
void SetAVSyncAudioPause (bool Pause)
 
bool ResetAVSyncForLiveTV (AudioPlayer *Audio)
 
void SetAVSyncMusicChoice (AudioPlayer *Audio)
 

Private Attributes

QElapsedTimer m_avTimer
 
bool m_avsyncAudioPaused { false }
 
int m_avsyncAvg { 0 }
 
int64_t m_dispTimecode { 0 }
 
int64_t m_rtcBase { 0 }
 
int64_t m_maxTcVal { 0 }
 
int64_t m_priorAudioTimecode { 0 }
 
int64_t m_priorVideoTimecode { 0 }
 
int m_maxTcFrames { 0 }
 
int m_numDroppedFrames { 0 }
 
float m_lastFix { 0.0F }
 

Detailed Description

Definition at line 13 of file mythplayeravsync.h.

Constructor & Destructor Documentation

◆ MythPlayerAVSync()

MythPlayerAVSync::MythPlayerAVSync ( )

Definition at line 11 of file mythplayeravsync.cpp.

Member Function Documentation

◆ InitAVSync()

void MythPlayerAVSync::InitAVSync ( void  )

◆ AVSync()

int64_t MythPlayerAVSync::AVSync ( AudioPlayer Audio,
MythVideoFrame Frame,
int  FrameInterval,
float  PlaySpeed,
bool  HaveVideo,
bool  Force 
)

Definition at line 76 of file mythplayeravsync.cpp.

Referenced by MythPlayerUI::DisplayNormalFrame().

◆ WaitForFrame()

void MythPlayerAVSync::WaitForFrame ( int64_t  FrameDue)

◆ DisplayTimecode()

int64_t & MythPlayerAVSync::DisplayTimecode ( )

◆ ResetAVSyncClockBase()

void MythPlayerAVSync::ResetAVSyncClockBase ( )

Definition at line 40 of file mythplayeravsync.cpp.

Referenced by MythPlayer::ChangeSpeed().

◆ GetAVSyncData()

void MythPlayerAVSync::GetAVSyncData ( InfoMap Map) const

Definition at line 70 of file mythplayeravsync.cpp.

Referenced by MythPlayerUI::GetPlaybackData().

◆ GetAVSyncAudioPause()

bool MythPlayerAVSync::GetAVSyncAudioPause ( ) const

Definition at line 45 of file mythplayeravsync.cpp.

Referenced by MythPlayer::PrebufferEnoughFrames().

◆ SetAVSyncAudioPause()

void MythPlayerAVSync::SetAVSyncAudioPause ( bool  Pause)

Definition at line 50 of file mythplayeravsync.cpp.

◆ ResetAVSyncForLiveTV()

bool MythPlayerAVSync::ResetAVSyncForLiveTV ( AudioPlayer Audio)

Definition at line 55 of file mythplayeravsync.cpp.

Referenced by MythPlayer::PrebufferEnoughFrames().

◆ SetAVSyncMusicChoice()

void MythPlayerAVSync::SetAVSyncMusicChoice ( AudioPlayer Audio)

Definition at line 64 of file mythplayeravsync.cpp.

Referenced by MythPlayer::PrebufferEnoughFrames().

Member Data Documentation

◆ m_avTimer

QElapsedTimer MythPlayerAVSync::m_avTimer
private

Definition at line 32 of file mythplayeravsync.h.

Referenced by AVSync(), MythPlayerAVSync(), and WaitForFrame().

◆ m_avsyncAudioPaused

bool MythPlayerAVSync::m_avsyncAudioPaused { false }
private

◆ m_avsyncAvg

int MythPlayerAVSync::m_avsyncAvg { 0 }
private

Definition at line 34 of file mythplayeravsync.h.

Referenced by AVSync(), GetAVSyncData(), and InitAVSync().

◆ m_dispTimecode

int64_t MythPlayerAVSync::m_dispTimecode { 0 }
private

Definition at line 35 of file mythplayeravsync.h.

Referenced by AVSync(), and DisplayTimecode().

◆ m_rtcBase

int64_t MythPlayerAVSync::m_rtcBase { 0 }
private

Definition at line 36 of file mythplayeravsync.h.

Referenced by AVSync(), InitAVSync(), ResetAVSyncClockBase(), and ResetAVSyncForLiveTV().

◆ m_maxTcVal

int64_t MythPlayerAVSync::m_maxTcVal { 0 }
private

Definition at line 37 of file mythplayeravsync.h.

Referenced by AVSync().

◆ m_priorAudioTimecode

int64_t MythPlayerAVSync::m_priorAudioTimecode { 0 }
private

Definition at line 38 of file mythplayeravsync.h.

Referenced by AVSync(), and InitAVSync().

◆ m_priorVideoTimecode

int64_t MythPlayerAVSync::m_priorVideoTimecode { 0 }
private

Definition at line 39 of file mythplayeravsync.h.

Referenced by AVSync(), and InitAVSync().

◆ m_maxTcFrames

int MythPlayerAVSync::m_maxTcFrames { 0 }
private

Definition at line 40 of file mythplayeravsync.h.

Referenced by AVSync().

◆ m_numDroppedFrames

int MythPlayerAVSync::m_numDroppedFrames { 0 }
private

Definition at line 41 of file mythplayeravsync.h.

Referenced by AVSync().

◆ m_lastFix

float MythPlayerAVSync::m_lastFix { 0.0F }
private

Definition at line 42 of file mythplayeravsync.h.

Referenced by AVSync(), and InitAVSync().


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