MythTV
master
|
#include <libmythtv/mythplayeravsync.h>
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 } |
Definition at line 20 of file mythplayeravsync.h.
MythPlayerAVSync::MythPlayerAVSync | ( | ) |
Definition at line 11 of file mythplayeravsync.cpp.
void MythPlayerAVSync::InitAVSync | ( | ) |
Definition at line 17 of file mythplayeravsync.cpp.
Referenced by MythPlayer::ClearAfterSeek(), MythPlayerAVSync(), MythPlayer::Play(), and MythPlayerUI::VideoStart().
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().
void MythPlayerAVSync::WaitForFrame | ( | std::chrono::microseconds | FrameDue | ) |
Definition at line 28 of file mythplayeravsync.cpp.
Referenced by MythPlayerUI::DoDisplayVideoFrame(), and MythPlayerUI::RenderVideoFrame().
|
inline |
Definition at line 31 of file mythplayeravsync.h.
Referenced by MythPlayerUI::RefreshPauseFrame(), MythBDPlayer::VideoLoop(), and MythDVDPlayer::VideoLoop().
|
inline |
Definition at line 33 of file mythplayeravsync.h.
Referenced by MythPlayer::ChangeSpeed().
void MythPlayerAVSync::GetAVSyncData | ( | InfoMap & | Map | ) | const |
Definition at line 49 of file mythplayeravsync.cpp.
Referenced by MythPlayerUI::GetPlaybackData().
|
inline |
Definition at line 36 of file mythplayeravsync.h.
Referenced by MythPlayer::PrebufferEnoughFrames().
|
inline |
Definition at line 38 of file mythplayeravsync.h.
void MythPlayerAVSync::ResetAVSyncForLiveTV | ( | AudioPlayer * | Audio | ) |
Definition at line 36 of file mythplayeravsync.cpp.
Referenced by MythPlayer::PrebufferEnoughFrames().
void MythPlayerAVSync::SetAVSyncMusicChoice | ( | AudioPlayer * | Audio | ) |
Definition at line 43 of file mythplayeravsync.cpp.
Referenced by MythPlayer::PrebufferEnoughFrames().
|
inline |
Definition at line 42 of file mythplayeravsync.h.
Referenced by MythPlayerUI::MythPlayerUI().
|
private |
Definition at line 46 of file mythplayeravsync.h.
Referenced by AVSync(), MythPlayerAVSync(), and WaitForFrame().
|
private |
Definition at line 47 of file mythplayeravsync.h.
Referenced by AVSync(), GetAVSyncAudioPause(), ResetAVSyncForLiveTV(), SetAVSyncAudioPause(), and SetAVSyncMusicChoice().
|
private |
Definition at line 48 of file mythplayeravsync.h.
Referenced by AVSync(), GetAVSyncData(), and InitAVSync().
|
private |
Definition at line 49 of file mythplayeravsync.h.
Referenced by AVSync(), and DisplayTimecode().
|
private |
Definition at line 50 of file mythplayeravsync.h.
Referenced by AVSync(), InitAVSync(), ResetAVSyncClockBase(), and ResetAVSyncForLiveTV().
|
private |
Definition at line 51 of file mythplayeravsync.h.
Referenced by AVSync().
|
private |
Definition at line 52 of file mythplayeravsync.h.
Referenced by AVSync(), and InitAVSync().
|
private |
Definition at line 53 of file mythplayeravsync.h.
Referenced by AVSync(), and InitAVSync().
|
private |
Definition at line 54 of file mythplayeravsync.h.
Referenced by AVSync().
|
private |
Definition at line 55 of file mythplayeravsync.h.
Referenced by AVSync().
|
private |
Definition at line 56 of file mythplayeravsync.h.
Referenced by AVSync(), and InitAVSync().
|
private |
Definition at line 57 of file mythplayeravsync.h.
Referenced by AVSync(), and SetRefreshInterval().
|
private |
Definition at line 58 of file mythplayeravsync.h.
Referenced by AVSync(), and InitAVSync().