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

#include <libmythtv/mythplayeravsync.h>

Collaboration diagram for MythPlayerAVSync:
[legend]

Public Member Functions

 MythPlayerAVSync ()
 
void InitAVSync ()
 
std::chrono::microseconds AVSync (AudioPlayer *Audio, MythVideoFrame *Frame, std::chrono::microseconds FrameInterval, float PlaySpeed, bool HaveVideo, bool Force)
 
void WaitForFrame (std::chrono::microseconds FrameDue)
 
std::chrono::milliseconds & DisplayTimecode ()
 
void ResetAVSyncClockBase ()
 
void GetAVSyncData (InfoMap &Map) const
 
AVSyncAudioPausedType GetAVSyncAudioPause () const
 
void SetAVSyncAudioPause (AVSyncAudioPausedType Pause)
 
void ResetAVSyncForLiveTV (AudioPlayer *Audio)
 
void SetAVSyncMusicChoice (AudioPlayer *Audio)
 
void SetRefreshInterval (std::chrono::microseconds interval)
 

Private Attributes

QElapsedTimer m_avTimer
 
AVSyncAudioPausedType m_avsyncAudioPaused { kAVSyncAudioNotPaused }
 
int m_avsyncAvg { 0 }
 
std::chrono::milliseconds m_dispTimecode { 0ms }
 
std::chrono::microseconds m_rtcBase { 0us }
 
std::chrono::milliseconds m_maxTcVal { 0ms }
 
std::chrono::milliseconds m_priorAudioTimecode { 0ms }
 
std::chrono::milliseconds m_priorVideoTimecode { 0ms }
 
int m_maxTcFrames { 0 }
 
int m_numDroppedFrames { 0 }
 
float m_lastFix { 0.0F }
 
std::chrono::microseconds m_refreshInterval { 0us }
 
std::chrono::microseconds m_shortFrameDeltas { 0us }
 

Detailed Description

Definition at line 20 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 ( )

◆ AVSync()

std::chrono::microseconds MythPlayerAVSync::AVSync ( AudioPlayer Audio,
MythVideoFrame Frame,
std::chrono::microseconds  FrameInterval,
float  PlaySpeed,
bool  HaveVideo,
bool  Force 
)

Definition at line 55 of file mythplayeravsync.cpp.

Referenced by MythPlayerUI::DisplayNormalFrame().

◆ WaitForFrame()

void MythPlayerAVSync::WaitForFrame ( std::chrono::microseconds  FrameDue)

◆ DisplayTimecode()

std::chrono::milliseconds& MythPlayerAVSync::DisplayTimecode ( )
inline

◆ ResetAVSyncClockBase()

void MythPlayerAVSync::ResetAVSyncClockBase ( )
inline

Definition at line 33 of file mythplayeravsync.h.

Referenced by MythPlayer::ChangeSpeed().

◆ GetAVSyncData()

void MythPlayerAVSync::GetAVSyncData ( InfoMap Map) const

Definition at line 49 of file mythplayeravsync.cpp.

Referenced by MythPlayerUI::GetPlaybackData().

◆ GetAVSyncAudioPause()

AVSyncAudioPausedType MythPlayerAVSync::GetAVSyncAudioPause ( ) const
inline

Definition at line 36 of file mythplayeravsync.h.

Referenced by MythPlayer::PrebufferEnoughFrames().

◆ SetAVSyncAudioPause()

void MythPlayerAVSync::SetAVSyncAudioPause ( AVSyncAudioPausedType  Pause)
inline

Definition at line 38 of file mythplayeravsync.h.

◆ ResetAVSyncForLiveTV()

void MythPlayerAVSync::ResetAVSyncForLiveTV ( AudioPlayer Audio)

Definition at line 36 of file mythplayeravsync.cpp.

Referenced by MythPlayer::PrebufferEnoughFrames().

◆ SetAVSyncMusicChoice()

void MythPlayerAVSync::SetAVSyncMusicChoice ( AudioPlayer Audio)

Definition at line 43 of file mythplayeravsync.cpp.

Referenced by MythPlayer::PrebufferEnoughFrames().

◆ SetRefreshInterval()

void MythPlayerAVSync::SetRefreshInterval ( std::chrono::microseconds  interval)
inline

Definition at line 42 of file mythplayeravsync.h.

Referenced by MythPlayerUI::MythPlayerUI().

Member Data Documentation

◆ m_avTimer

QElapsedTimer MythPlayerAVSync::m_avTimer
private

Definition at line 46 of file mythplayeravsync.h.

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

◆ m_avsyncAudioPaused

AVSyncAudioPausedType MythPlayerAVSync::m_avsyncAudioPaused { kAVSyncAudioNotPaused }
private

◆ m_avsyncAvg

int MythPlayerAVSync::m_avsyncAvg { 0 }
private

Definition at line 48 of file mythplayeravsync.h.

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

◆ m_dispTimecode

std::chrono::milliseconds MythPlayerAVSync::m_dispTimecode { 0ms }
private

Definition at line 49 of file mythplayeravsync.h.

Referenced by AVSync(), and DisplayTimecode().

◆ m_rtcBase

std::chrono::microseconds MythPlayerAVSync::m_rtcBase { 0us }
private

Definition at line 50 of file mythplayeravsync.h.

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

◆ m_maxTcVal

std::chrono::milliseconds MythPlayerAVSync::m_maxTcVal { 0ms }
private

Definition at line 51 of file mythplayeravsync.h.

Referenced by AVSync().

◆ m_priorAudioTimecode

std::chrono::milliseconds MythPlayerAVSync::m_priorAudioTimecode { 0ms }
private

Definition at line 52 of file mythplayeravsync.h.

Referenced by AVSync(), and InitAVSync().

◆ m_priorVideoTimecode

std::chrono::milliseconds MythPlayerAVSync::m_priorVideoTimecode { 0ms }
private

Definition at line 53 of file mythplayeravsync.h.

Referenced by AVSync(), and InitAVSync().

◆ m_maxTcFrames

int MythPlayerAVSync::m_maxTcFrames { 0 }
private

Definition at line 54 of file mythplayeravsync.h.

Referenced by AVSync().

◆ m_numDroppedFrames

int MythPlayerAVSync::m_numDroppedFrames { 0 }
private

Definition at line 55 of file mythplayeravsync.h.

Referenced by AVSync().

◆ m_lastFix

float MythPlayerAVSync::m_lastFix { 0.0F }
private

Definition at line 56 of file mythplayeravsync.h.

Referenced by AVSync(), and InitAVSync().

◆ m_refreshInterval

std::chrono::microseconds MythPlayerAVSync::m_refreshInterval { 0us }
private

Definition at line 57 of file mythplayeravsync.h.

Referenced by AVSync(), and SetRefreshInterval().

◆ m_shortFrameDeltas

std::chrono::microseconds MythPlayerAVSync::m_shortFrameDeltas { 0us }
private

Definition at line 58 of file mythplayeravsync.h.

Referenced by AVSync(), and InitAVSync().


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