PlayerContext Class Reference

#include <playercontext.h>

List of all members.


Detailed Description

Definition at line 62 of file playercontext.h.


Public Member Functions

 PlayerContext (const QString &inUseID=QString("Unknown"))
 ~PlayerContext ()
bool CreatePlayer (TV *tv, QWidget *widget, TVState desiredState, WId embedwinid, const QRect *embedBounds, bool muted=false)
void TeardownPlayer (void)
bool StartPlaying (int maxWait=-1)
 Starts player, must be called after StartRecorder().
void StopPlaying (void)
void DeletePlayerThread (void)
bool StartOSD (TV *tv)
 Initializes the on screen display.
void UpdateTVChain (void)
bool ReloadTVChain (void)
void CreatePIPWindow (const QRect &, int pos=-1, QWidget *widget=NULL)
void ResizePIPWindow (const QRect &)
 Resize PIP Window.
bool StartPIPPlayer (TV *tv, TVState desiredState)
void PIPTeardown (void)
 stop player but pause the ringbuffer.
void SetNullVideo (bool setting)
bool StartEmbedding (WId wid, const QRect &)
void StopEmbedding (void)
void PushPreviousChannel (void)
 most recently selected channel to the previous channel list
QString PopPreviousChannel (void)
void ChangeState (TVState newState)
 Puts a state change on the nextState queue.
void ForceNextStateNone (void)
 Removes any pending state changes, and puts kState_None on the queue.
TVState DequeueNextState (void)
void ResizePIPWindow (void)
bool HandlePlayerSpeedChangeFFRew (void)
bool HandlePlayerSpeedChangeEOF (void)
void LockState (void) const
void UnlockState (void) const
void LockPlayingInfo (const char *file, int line) const
void UnlockPlayingInfo (const char *file, int line) const
void LockDeletePlayer (const char *file, int line) const
 prevent MythPlayer from being deleted used to ensure player can only be deleted after osd in TV() is unlocked.
void UnlockDeletePlayer (const char *file, int line) const
 allow player to be deleted.
void SetInitialTVState (bool islivetv)
 determine initial tv state and playgroup for the recording
void SetPlayer (MythPlayer *new_player)
void SetRecorder (RemoteEncoder *rec)
void SetTVChain (LiveTVChain *chain)
void SetRingBuffer (RingBuffer *buf)
void SetPlayingInfo (const ProgramInfo *info)
 assign programinfo to the context
void SetPlayGroup (const QString &group)
void SetPseudoLiveTV (const ProgramInfo *pi, PseudoState new_state)
void SetPIPLocation (int loc)
void SetPIPState (PIPState change)
void SetPlayerChangingBuffers (bool val)
void SetNoHardwareDecoders (void)
void SetSpecialDecode (AVSpecialDecode sp)
QRect GetStandAlonePIPRect (void)
 Get PIP more accurate display size for standalone PIP by factoring the aspect ratio of the video.
PIPState GetPIPState (void) const
QString GetPreviousChannel (void) const
bool CalcPlayerSliderPosition (osdInfo &info, bool paddedFields=false) const
uint GetCardID (void) const
QString GetFilters (const QString &baseFilters) const
QString GetPlayMessage (void) const
TVState GetState (void) const
bool GetPlayingInfoMap (InfoMap &infoMap) const
AVSpecialDecode GetSpecialDecode (void) const
bool IsPIPSupported (void) const
 Check if PIP is supported for current video renderer running.
bool IsPBPSupported (void) const
 Check if PBP is supported for current video renderer running.
bool IsOSDFullScreen (void) const
bool IsPIP (void) const
bool IsPBP (void) const
bool IsPrimaryPBP (void) const
bool IsAudioNeeded (void) const
bool IsNullVideoDesired (void) const
bool IsPlayerChangingBuffers (void) const
bool IsEmbedding (void) const
bool HasPlayer (void) const
bool IsPlayerErrored (void) const
bool IsPlayerRecoverable (void) const
bool IsPlayerDecoderErrored (void) const
bool IsPlayerPlaying (void) const
bool IsRecorderErrored (void) const
bool InStateChange (void) const
bool IsErrored (void) const
 This is set if the player encountered some irrecoverable error.
bool IsSameProgram (const ProgramInfo &p) const
bool IsValidLiveTV (void) const

Public Attributes

QString recUsage
MythPlayerplayer
volatile bool playerUnsafe
RemoteEncoderrecorder
LiveTVChaintvchain
RingBufferbuffer
ProgramInfoplayingInfo
 Currently playing info.
long long playingLen
 Initial CalculateLength().
AVSpecialDecode specialDecode
bool nohardwaredecoders
int last_cardid
 CardID of current/last recorder.
float last_framerate
 Estimated framerate from recorder.
int ff_rew_state
 0 == normal, +1 == fast forward, -1 == rewind
int ff_rew_index
 Index into ff_rew_speeds for FF and Rewind speeds.
int ff_rew_speed
 Caches value of ff_rew_speeds[ff_rew_index].
bool paused
TVState playingState
bool errored
StringDeque prevChan
 Previous channels.
ProgramInfopseudoLiveTVRec
PseudoState pseudoLiveTVState
int fftime
int rewtime
int jumptime
float ts_normal
 Time stretch speed, 1.0f for normal playback.
float ts_alt
QMutex playingInfoLock
QMutex deletePlayerLock
QMutex stateLock
QStringList lastSignalMsg
MythTimer lastSignalMsgTime
InfoMap lastSignalUIInfo
MythTimer lastSignalUIInfoTime
MythDeque< TVStatenextState
PIPState pipState
QRect pipRect
QWidget * parentWidget
int pipLocation
 Position of PIP on TV screen.
bool useNullVideo
 True iff software scaled PIP should be used.
bool playerNeedsThread
PlayerThreadplayerThread
WId embedWinID
 Window ID when embedded in another widget.
QRect embedBounds
 Bounds when embedded in another widget.

Static Public Attributes

static const uint kSMExitTimeout = 2000
 Timeout after last Signal Monitor message for ignoring OSD when exiting.
static const uint kMaxChannelHistory = 30

Constructor & Destructor Documentation

PlayerContext::PlayerContext ( const QString &  inUseID = QString("Unknown")  ) 

Definition at line 37 of file playercontext.cpp.

PlayerContext::~PlayerContext (  ) 

Definition at line 65 of file playercontext.cpp.


Member Function Documentation

bool PlayerContext::CreatePlayer ( TV tv,
QWidget *  widget,
TVState  desiredState,
WId  embedwinid,
const QRect *  embedBounds,
bool  muted = false 
)

void PlayerContext::TeardownPlayer ( void   ) 

Definition at line 71 of file playercontext.cpp.

Referenced by TV::TeardownPlayer(), and ~PlayerContext().

bool PlayerContext::StartPlaying ( int  maxWait = -1  ) 

Starts player, must be called after StartRecorder().

Parameters:
maxWait How long to wait for MythPlayer to start playing.
Returns:
true when successful, false otherwise.

Definition at line 486 of file playercontext.cpp.

Referenced by CreatePlayer().

void PlayerContext::StopPlaying ( void   ) 

void PlayerContext::DeletePlayerThread ( void   ) 

Definition at line 535 of file playercontext.cpp.

Referenced by StartPlaying(), StopPlaying(), and TeardownPlayer().

bool PlayerContext::StartOSD ( TV tv  ) 

Initializes the on screen display.

If the MythPlayer already exists we grab it's OSD via MythPlayer::GetOSD().

Definition at line 552 of file playercontext.cpp.

Referenced by TV::CreatePBP(), TV::PBPRestartMainPlayer(), TV::StartPlayer(), and TV::SwitchCards().

void PlayerContext::UpdateTVChain ( void   ) 

Definition at line 566 of file playercontext.cpp.

Referenced by TV::timerEvent().

bool PlayerContext::ReloadTVChain ( void   ) 

void PlayerContext::CreatePIPWindow ( const QRect &  rect,
int  pos = -1,
QWidget *  widget = NULL 
)

Definition at line 171 of file playercontext.cpp.

void PlayerContext::ResizePIPWindow ( const QRect &  rect  ) 

Resize PIP Window.

Definition at line 272 of file playercontext.cpp.

Referenced by TV::ResizePIPWindow(), and TV::StartEmbedding().

bool PlayerContext::StartPIPPlayer ( TV tv,
TVState  desiredState 
)

Definition at line 220 of file playercontext.cpp.

Referenced by TV::StartPlayer().

void PlayerContext::PIPTeardown ( void   ) 

stop player but pause the ringbuffer.

used in PIP/PBP swap or switching from PIP <-> PBP or enabling PBP

Definition at line 250 of file playercontext.cpp.

Referenced by TV::CreatePBP(), TV::PBPRestartMainPlayer(), and TV::TeardownAllPlayers().

void PlayerContext::SetNullVideo ( bool  setting  )  [inline]

Definition at line 85 of file playercontext.h.

Referenced by TV::CreatePIP().

bool PlayerContext::StartEmbedding ( WId  wid,
const QRect &  embedRect 
)

Definition at line 291 of file playercontext.cpp.

Referenced by TV::StartEmbedding().

void PlayerContext::StopEmbedding ( void   ) 

Definition at line 320 of file playercontext.cpp.

Referenced by TV::StopEmbedding().

void PlayerContext::PushPreviousChannel ( void   ) 

most recently selected channel to the previous channel list

Definition at line 594 of file playercontext.cpp.

Referenced by TV::ChangeChannel(), PopPreviousChannel(), TV::SwitchCards(), and TV::UnpauseLiveTV().

QString PlayerContext::PopPreviousChannel ( void   ) 

Definition at line 613 of file playercontext.cpp.

Referenced by TV::PopPreviousChannel().

void PlayerContext::ChangeState ( TVState  newState  ) 

Puts a state change on the nextState queue.

Definition at line 707 of file playercontext.cpp.

Referenced by TV::customEvent(), and SetInitialTVState().

void PlayerContext::ForceNextStateNone ( void   ) 

Removes any pending state changes, and puts kState_None on the queue.

Definition at line 722 of file playercontext.cpp.

Referenced by TV::ForceNextStateNone(), and TV::run().

TVState PlayerContext::DequeueNextState ( void   ) 

Definition at line 713 of file playercontext.cpp.

Referenced by TV::HandleStateChange().

void PlayerContext::ResizePIPWindow ( void   ) 

bool PlayerContext::HandlePlayerSpeedChangeFFRew ( void   ) 

Definition at line 360 of file playercontext.cpp.

Referenced by TV::HandleSpeedChangeTimerEvent().

bool PlayerContext::HandlePlayerSpeedChangeEOF ( void   ) 

Definition at line 373 of file playercontext.cpp.

Referenced by TV::HandleSpeedChangeTimerEvent().

void PlayerContext::LockState ( void   )  const

Definition at line 685 of file playercontext.cpp.

Referenced by TV::HandleStateChange().

void PlayerContext::UnlockState ( void   )  const

Definition at line 690 of file playercontext.cpp.

Referenced by TV::HandleStateChange().

void PlayerContext::LockPlayingInfo ( const char *  file,
int  line 
) const

void PlayerContext::UnlockPlayingInfo ( const char *  file,
int  line 
) const

void PlayerContext::LockDeletePlayer ( const char *  file,
int  line 
) const

prevent MythPlayer from being deleted used to ensure player can only be deleted after osd in TV() is unlocked.

Definition at line 668 of file playercontext.cpp.

Referenced by TV::ActiveHandleAction(), TV::ActivePostQHandleAction(), TV::ChangeAudioSync(), TV::ChangeChannel(), TV::ChangeSpeed(), TV::ChangeTimeStretch(), TV::ChangeVolume(), TV::ChannelEditXDSFill(), TV::CreatePBP(), TV::customEvent(), TV::DoArbSeek(), TV::DoChangePictureAttribute(), TV::DoEditSchedule(), TV::DoJumpChapter(), TV::DoPlay(), TV::DoPlayerSeek(), TV::DoSeek(), TV::DoSkipCommercials(), TV::DoSwitchAngle(), TV::DoSwitchTitle(), TV::DoTogglePause(), TV::DoTogglePauseStart(), TV::DoTogglePictureAttribute(), TV::DrawUnusedRects(), TV::DVDJumpBack(), TV::DVDJumpForward(), TV::DVDMenuHandleAction(), TV::eventFilter(), TV::FillOSDMenuAudio(), TV::FillOSDMenuNavigate(), TV::FillOSDMenuSubtitles(), TV::FillOSDMenuVideo(), TV::GetAngleName(), TV::GetChapterTimes(), TV::GetCurrentAngle(), TV::GetCurrentChapter(), TV::GetCurrentTitle(), TV::GetNumAngles(), TV::GetNumChapters(), TV::GetNumTitles(), TV::GetOSDL(), TV::GetTitleDuration(), TV::GetTitleName(), TV::HandleEndOfRecordingExitPromptTimerEvent(), TV::HandleIsNearEndWhenEmbeddingTimerEvent(), TV::HandleOSDAlreadyEditing(), TV::HandleOSDVideoExit(), TV::HandleTrackAction(), IsEmbedding(), TV::ITVRestart(), TV::ManualZoomHandleAction(), TV::NormalSpeed(), TV::OSDDialogEvent(), TV::PauseAudioUntilBuffered(), TV::PauseLiveTV(), TV::PBPRestartMainPlayer(), TV::PIPAddPlayer(), TV::PrepareToExitPlayer(), TV::ProcessKeypress(), TV::ProcessNetworkControlCommand(), TV::PxPToggleType(), ResizePIPWindow(), TV::RestartAllPlayers(), TV::RestartMainPlayer(), TV::SetActive(), TV::SetAutoCommercialSkip(), TV::SetFFRew(), StartEmbedding(), TV::StartProgramEditMode(), TV::StartTV(), StopEmbedding(), TV::StopFFRew(), TV::StopStuff(), TV::SwitchCards(), TV::TeardownAllPlayers(), TV::ToggleAdjustFill(), TV::ToggleAspectOverride(), TV::ToggleMute(), and TV::UnpauseLiveTV().

void PlayerContext::UnlockDeletePlayer ( const char *  file,
int  line 
) const

allow player to be deleted.

Definition at line 678 of file playercontext.cpp.

Referenced by TV::ActiveHandleAction(), TV::ActivePostQHandleAction(), TV::ChangeAudioSync(), TV::ChangeChannel(), TV::ChangeSpeed(), TV::ChangeTimeStretch(), TV::ChangeVolume(), TV::ChannelEditXDSFill(), TV::CreatePBP(), TV::customEvent(), TV::DoArbSeek(), TV::DoChangePictureAttribute(), TV::DoEditSchedule(), TV::DoJumpChapter(), TV::DoPlay(), TV::DoPlayerSeek(), TV::DoSeek(), TV::DoSkipCommercials(), TV::DoSwitchAngle(), TV::DoSwitchTitle(), TV::DoTogglePause(), TV::DoTogglePauseStart(), TV::DoTogglePictureAttribute(), TV::DrawUnusedRects(), TV::DVDJumpBack(), TV::DVDJumpForward(), TV::DVDMenuHandleAction(), TV::eventFilter(), TV::FillOSDMenuAudio(), TV::FillOSDMenuNavigate(), TV::FillOSDMenuSubtitles(), TV::FillOSDMenuVideo(), TV::GetAngleName(), TV::GetChapterTimes(), TV::GetCurrentAngle(), TV::GetCurrentChapter(), TV::GetCurrentTitle(), TV::GetNumAngles(), TV::GetNumChapters(), TV::GetNumTitles(), TV::GetOSDL(), TV::GetTitleDuration(), TV::GetTitleName(), TV::HandleEndOfRecordingExitPromptTimerEvent(), TV::HandleIsNearEndWhenEmbeddingTimerEvent(), TV::HandleOSDAlreadyEditing(), TV::HandleOSDVideoExit(), TV::HandleTrackAction(), IsEmbedding(), TV::ITVRestart(), TV::ManualZoomHandleAction(), TV::NormalSpeed(), TV::OSDDialogEvent(), TV::PauseAudioUntilBuffered(), TV::PauseLiveTV(), TV::PBPRestartMainPlayer(), TV::PIPAddPlayer(), TV::PrepareToExitPlayer(), TV::ProcessKeypress(), TV::ProcessNetworkControlCommand(), TV::PxPToggleType(), TV::ResizePIPWindow(), ResizePIPWindow(), TV::RestartAllPlayers(), TV::SetActive(), TV::SetAutoCommercialSkip(), TV::SetFFRew(), StartEmbedding(), TV::StartProgramEditMode(), TV::StartTV(), StopEmbedding(), TV::StopFFRew(), TV::StopStuff(), TV::SwitchCards(), TV::TeardownAllPlayers(), TV::ToggleAdjustFill(), TV::ToggleAspectOverride(), TV::ToggleMute(), and TV::UnpauseLiveTV().

void PlayerContext::SetInitialTVState ( bool  islivetv  ) 

determine initial tv state and playgroup for the recording

Parameters:
islivetv,: true if recording is livetv

Definition at line 90 of file playercontext.cpp.

Referenced by TV::CreatePBP(), TV::CreatePIP(), TV::LiveTV(), and TV::Playback().

void PlayerContext::SetPlayer ( MythPlayer new_player  ) 

void PlayerContext::SetRecorder ( RemoteEncoder rec  ) 

void PlayerContext::SetTVChain ( LiveTVChain chain  ) 

Definition at line 859 of file playercontext.cpp.

Referenced by SetInitialTVState(), and TeardownPlayer().

void PlayerContext::SetRingBuffer ( RingBuffer buf  ) 

void PlayerContext::SetPlayingInfo ( const ProgramInfo info  ) 

void PlayerContext::SetPlayGroup ( const QString &  group  ) 

Definition at line 920 of file playercontext.cpp.

Referenced by SetInitialTVState().

void PlayerContext::SetPseudoLiveTV ( const ProgramInfo pi,
PseudoState  new_state 
)

Definition at line 929 of file playercontext.cpp.

Referenced by TV::customEvent(), TV::SwitchCards(), and TV::ToggleRecord().

void PlayerContext::SetPIPLocation ( int  loc  )  [inline]

Definition at line 118 of file playercontext.h.

void PlayerContext::SetPIPState ( PIPState  change  )  [inline]

Definition at line 119 of file playercontext.h.

Referenced by TV::CreatePBP(), TV::CreatePIP(), and TV::PBPRestartMainPlayer().

void PlayerContext::SetPlayerChangingBuffers ( bool  val  )  [inline]

void PlayerContext::SetNoHardwareDecoders ( void   )  [inline]

Definition at line 121 of file playercontext.h.

Referenced by TV::CreatePBP(), and TV::CreatePIP().

void PlayerContext::SetSpecialDecode ( AVSpecialDecode  sp  )  [inline]

Definition at line 122 of file playercontext.h.

Referenced by BuildVideoMarkup(), and FlagCommercials().

QRect PlayerContext::GetStandAlonePIPRect ( void   ) 

Get PIP more accurate display size for standalone PIP by factoring the aspect ratio of the video.

Definition at line 193 of file playercontext.cpp.

Referenced by ResizePIPWindow().

PIPState PlayerContext::GetPIPState ( void   )  const [inline]

QString PlayerContext::GetPreviousChannel ( void   )  const

Definition at line 634 of file playercontext.cpp.

Referenced by TV::FillOSDMenuNavigate(), and TV::ShowPreviousChannel().

bool PlayerContext::CalcPlayerSliderPosition ( osdInfo info,
bool  paddedFields = false 
) const

uint PlayerContext::GetCardID ( void   )  const [inline]

QString PlayerContext::GetFilters ( const QString &  baseFilters  )  const

Definition at line 777 of file playercontext.cpp.

Referenced by MythPlayer::SetVideoFilters().

QString PlayerContext::GetPlayMessage ( void   )  const

TVState PlayerContext::GetState ( void   )  const

bool PlayerContext::GetPlayingInfoMap ( InfoMap infoMap  )  const

AVSpecialDecode PlayerContext::GetSpecialDecode ( void   )  const [inline]

Definition at line 135 of file playercontext.h.

Referenced by MythPlayer::OpenFile().

bool PlayerContext::IsPIPSupported ( void   )  const

Check if PIP is supported for current video renderer running.

Current support written for XV, Opengl and VDPAU. Not sure about ivtv.

Definition at line 133 of file playercontext.cpp.

Referenced by TV::IsPIPSupported().

bool PlayerContext::IsPBPSupported ( void   )  const

Check if PBP is supported for current video renderer running.

Current support written for XV and Opengl. Not sure about ivtv.

Definition at line 151 of file playercontext.cpp.

Referenced by TV::IsPBPSupported().

bool PlayerContext::IsOSDFullScreen ( void   )  const

Definition at line 164 of file playercontext.cpp.

Referenced by TV::GetOSDL().

bool PlayerContext::IsPIP ( void   )  const [inline]

bool PlayerContext::IsPBP ( void   )  const [inline]

bool PlayerContext::IsPrimaryPBP ( void   )  const [inline]

Definition at line 145 of file playercontext.h.

Referenced by MythPlayer::OpenFile().

bool PlayerContext::IsAudioNeeded ( void   )  const [inline]

Definition at line 147 of file playercontext.h.

Referenced by CreatePlayer().

bool PlayerContext::IsNullVideoDesired ( void   )  const [inline]

Definition at line 149 of file playercontext.h.

Referenced by TV::StartEmbedding(), and TV::StartPlayer().

bool PlayerContext::IsPlayerChangingBuffers ( void   )  const [inline]

Definition at line 150 of file playercontext.h.

Referenced by TV::ProcessKeypress(), and TV::ProcessNetworkControlCommand().

bool PlayerContext::IsEmbedding ( void   )  const

Definition at line 310 of file playercontext.cpp.

Referenced by TV::StartEmbedding(), and TV::StopEmbedding().

bool PlayerContext::HasPlayer ( void   )  const

bool PlayerContext::IsPlayerErrored ( void   )  const

Definition at line 336 of file playercontext.cpp.

Referenced by TV::timerEvent().

bool PlayerContext::IsPlayerRecoverable ( void   )  const

Definition at line 342 of file playercontext.cpp.

Referenced by TV::timerEvent().

bool PlayerContext::IsPlayerDecoderErrored ( void   )  const

Definition at line 348 of file playercontext.cpp.

Referenced by TV::timerEvent().

bool PlayerContext::IsPlayerPlaying ( void   )  const

bool PlayerContext::IsRecorderErrored ( void   )  const

Definition at line 398 of file playercontext.cpp.

Referenced by MythPlayer::EventLoop(), and TV::timerEvent().

bool PlayerContext::InStateChange ( void   )  const

Definition at line 695 of file playercontext.cpp.

Referenced by TV::GetState(), and TV::HandlePseudoLiveTVTimerEvent().

bool PlayerContext::IsErrored ( void   )  const [inline]

This is set if the player encountered some irrecoverable error.

Definition at line 160 of file playercontext.h.

Referenced by TV::HandleStateChange(), TV::run(), and TV::timerEvent().

bool PlayerContext::IsSameProgram ( const ProgramInfo p  )  const

Definition at line 767 of file playercontext.cpp.

Referenced by TV::IsSameProgram().

bool PlayerContext::IsValidLiveTV ( void   )  const [inline]

Definition at line 162 of file playercontext.h.


Member Data Documentation

Definition at line 166 of file playercontext.h.

Referenced by SetPlayingInfo().

Definition at line 167 of file playercontext.h.

Referenced by TV::ActiveHandleAction(), TV::ActivePostQHandleAction(), CalcPlayerSliderPosition(), TV::ChangeAudioSync(), TV::ChangeChannel(), TV::ChangeSpeed(), TV::ChangeTimeStretch(), TV::ChangeVolume(), TV::ChannelEditXDSFill(), TV::CreatePBP(), CreatePlayer(), TV::customEvent(), TV::DoArbSeek(), TV::DoChangePictureAttribute(), TV::DoEditSchedule(), TV::DoJumpChapter(), TV::DoPlay(), TV::DoPlayerSeek(), TV::DoSeek(), TV::DoSkipCommercials(), TV::DoSwitchAngle(), TV::DoSwitchTitle(), TV::DoTogglePause(), TV::DoTogglePauseStart(), TV::DoTogglePictureAttribute(), TV::DrawUnusedRects(), TV::DVDJumpBack(), TV::DVDJumpForward(), TV::eventFilter(), TV::FillOSDMenuAudio(), TV::FillOSDMenuNavigate(), TV::FillOSDMenuSubtitles(), TV::FillOSDMenuVideo(), TV::GetAngleName(), TV::GetChapterTimes(), TV::GetCurrentAngle(), TV::GetCurrentChapter(), TV::GetCurrentTitle(), TV::GetNumAngles(), TV::GetNumChapters(), TV::GetNumTitles(), TV::GetOSDL(), GetPlayingInfoMap(), GetPlayMessage(), PreviewGenerator::GetScreenGrab(), GetStandAlonePIPRect(), TV::GetTitleDuration(), TV::GetTitleName(), TV::HandleEndOfRecordingExitPromptTimerEvent(), TV::HandleIsNearEndWhenEmbeddingTimerEvent(), TV::HandleOSDAlreadyEditing(), TV::HandleOSDCutpoint(), TV::HandleOSDVideoExit(), HandlePlayerSpeedChangeEOF(), HandlePlayerSpeedChangeFFRew(), TV::HandleTrackAction(), HasPlayer(), IsEmbedding(), IsPBPSupported(), IsPIPSupported(), IsPlayerDecoderErrored(), IsPlayerErrored(), IsPlayerPlaying(), IsPlayerRecoverable(), TV::ITVRestart(), TV::ManualZoomHandleAction(), TV::NormalSpeed(), TV::OSDDialogEvent(), TV::PauseAudioUntilBuffered(), TV::PauseLiveTV(), TV::PBPRestartMainPlayer(), TV::PIPAddPlayer(), TV::PIPRemovePlayer(), TV::PrepareToExitPlayer(), TV::ProcessKeypress(), TV::ProcessNetworkControlCommand(), TV::PxPSwap(), TV::PxPToggleType(), TV::ResizePIPWindow(), ResizePIPWindow(), TV::RestartAllPlayers(), TV::RestartMainPlayer(), TV::SetActive(), TV::SetAutoCommercialSkip(), TV::SetFFRew(), SetPlayer(), TV::ShowOSDCutpoint(), StartEmbedding(), StartOSD(), StartPlaying(), TV::StartProgramEditMode(), TV::StartTV(), StopEmbedding(), TV::StopFFRew(), StopPlaying(), TV::SwitchCards(), TV::TeardownAllPlayers(), TV::ToggleAdjustFill(), TV::ToggleAspectOverride(), TV::ToggleMute(), TV::ToggleUpmix(), TV::UnpauseLiveTV(), and UpdateTVChain().

Definition at line 168 of file playercontext.h.

Definition at line 171 of file playercontext.h.

Referenced by TV::ActiveHandleAction(), TV::ActivePostQHandleAction(), MythDVDPlayer::CalcMaxFFTime(), MythDVDPlayer::calcSliderPos(), MythDVDPlayer::ChangeSpeed(), TV::CreatePBP(), CreatePlayer(), MythDVDPlayer::DecoderGetFrameREW(), MythDVDPlayer::DisableCaptions(), MythDVDPlayer::DisplayDVDButton(), MythDVDPlayer::DisplayNormalFrame(), MythDVDPlayer::DisplayPauseFrame(), MythDVDPlayer::DoChangeDVDTrack(), TV::DoTogglePauseFinish(), TV::DoTogglePauseStart(), TV::DVDJumpBack(), TV::DVDJumpForward(), TV::DVDMenuHandleAction(), MythDVDPlayer::EnableCaptions(), MythDVDPlayer::EventEnd(), MythDVDPlayer::EventStart(), MythPlayer::FileChangedCallback(), MythDVDPlayer::GetBookmark(), MythBDPlayer::GetChapter(), MythBDPlayer::GetChapterTimes(), MythDVDPlayer::GetCurrentAngle(), MythBDPlayer::GetCurrentAngle(), MythBDPlayer::GetCurrentChapter(), MythBDPlayer::GetCurrentTitle(), MythDVDPlayer::GetNumAngles(), MythBDPlayer::GetNumAngles(), MythBDPlayer::GetNumChapters(), MythBDPlayer::GetNumTitles(), MythBDPlayer::GetTitleDuration(), MythDVDPlayer::GoToDVDMenu(), MythDVDPlayer::GoToDVDProgram(), TV::HandleLCDTimerEvent(), TV::HandleStateChange(), TV::IsBookmarkAllowed(), MythPlayer::IsReallyNearEnd(), MythPlayer::JumpToProgram(), MythPlayer::OpenFile(), MythDVDPlayer::OpenFile(), MythPlayer::PauseBuffer(), TV::PauseLiveTV(), TV::PBPRestartMainPlayer(), PIPTeardown(), MythDVDPlayer::PrebufferEnoughFrames(), MythDVDPlayer::PrepareAudioSample(), TV::ProcessKeypress(), TV::ProcessNetworkControlCommand(), MythDVDPlayer::ReleaseNextVideoFrame(), TV::RestartAllPlayers(), MythDVDPlayer::SeekForScreenGrab(), MythDVDPlayer::SetBookmark(), MythDVDPlayer::SetDVDBookmark(), SetRingBuffer(), MythDVDPlayer::SetTrack(), TV::ShowLCDDVDInfo(), TV::ShowOSDStopWatchingRecording(), TV::StopStuff(), MythDVDPlayer::SwitchAngle(), MythBDPlayer::SwitchAngle(), TV::SwitchCards(), MythBDPlayer::SwitchTitle(), MythPlayer::SwitchToProgram(), MythPlayer::UnpauseBuffer(), TV::UnpauseLiveTV(), and MythDVDPlayer::VideoLoop().

Initial CalculateLength().

Definition at line 173 of file playercontext.h.

Referenced by CreatePlayer(), and SetPlayingInfo().

Definition at line 174 of file playercontext.h.

Definition at line 175 of file playercontext.h.

Referenced by CreatePlayer().

CardID of current/last recorder.

Definition at line 176 of file playercontext.h.

Referenced by SetRecorder().

Index into ff_rew_speeds for FF and Rewind speeds.

Definition at line 181 of file playercontext.h.

Referenced by TV::ChangeFFRew(), HandlePlayerSpeedChangeFFRew(), TV::run(), TV::SetFFRew(), TV::StopFFRew(), and TeardownPlayer().

Definition at line 185 of file playercontext.h.

Referenced by GetPlayingInfoMap(), GetState(), and TV::HandleStateChange().

Definition at line 187 of file playercontext.h.

Referenced by TV::SetErrored(), and TV::StartTV().

Definition at line 193 of file playercontext.h.

Referenced by TV::HandlePseudoLiveTVTimerEvent(), and SetPseudoLiveTV().

Time stretch speed, 1.0f for normal playback.

Begins at 1.0f meaning normal playback, but can be increased or decreased to speedup or slowdown playback. Ignored when doing Fast Forward or Rewind.

Definition at line 205 of file playercontext.h.

Referenced by TV::ChangeSpeed(), TV::ChangeTimeStretch(), CreatePlayer(), TV::DoPlay(), TV::DoTogglePauseStart(), TV::FillOSDMenuPlayback(), GetPlayMessage(), HandlePlayerSpeedChangeEOF(), TV::NormalSpeed(), TV::OSDDialogEvent(), TV::ProcessNetworkControlCommand(), TV::run(), SetPlayGroup(), TV::StopFFRew(), TeardownPlayer(), TV::ToggleTimeStretch(), and TV::UnpauseLiveTV().

Definition at line 206 of file playercontext.h.

Referenced by SetPlayGroup(), and TV::ToggleTimeStretch().

Definition at line 208 of file playercontext.h.

Referenced by LockPlayingInfo(), SetPlayingInfo(), and UnlockPlayingInfo().

QMutex PlayerContext::stateLock [mutable]

QStringList PlayerContext::lastSignalMsg [mutable]

Definition at line 213 of file playercontext.h.

Referenced by TV::PauseLiveTV(), TV::timerEvent(), and TV::UpdateOSDSignal().

Definition at line 214 of file playercontext.h.

Referenced by TV::ActiveHandleAction(), PlayerContext(), and TV::UpdateOSDSignal().

Definition at line 216 of file playercontext.h.

Referenced by TV::UpdateOSDSignal().

Definition at line 222 of file playercontext.h.

Referenced by CreatePlayer(), and ResizePIPWindow().

Definition at line 224 of file playercontext.h.

Referenced by CreatePIPWindow(), PIPTeardown(), and StartPIPPlayer().

Position of PIP on TV screen.

Definition at line 226 of file playercontext.h.

Referenced by CreatePIPWindow().

True iff software scaled PIP should be used.

Definition at line 228 of file playercontext.h.

Referenced by CreatePlayer(), PIPTeardown(), and StartPIPPlayer().

Definition at line 229 of file playercontext.h.

Referenced by StartPIPPlayer(), and StartPlaying().

Definition at line 230 of file playercontext.h.

Referenced by DeletePlayerThread(), and StartPlaying().

Window ID when embedded in another widget.

Definition at line 233 of file playercontext.h.

Referenced by TV::PBPRestartMainPlayer(), TV::ShowNoRecorderDialog(), StartEmbedding(), TV::StartPlayer(), StopEmbedding(), and TV::SwitchCards().

Bounds when embedded in another widget.

Definition at line 234 of file playercontext.h.

Referenced by TV::CreatePBP(), TV::PBPRestartMainPlayer(), StartEmbedding(), TV::StartPlayer(), and TV::SwitchCards().

const uint PlayerContext::kSMExitTimeout = 2000 [static]

Timeout after last Signal Monitor message for ignoring OSD when exiting.

Definition at line 237 of file playercontext.h.

Referenced by TV::ActiveHandleAction(), and PlayerContext().

Definition at line 238 of file playercontext.h.

Referenced by PushPreviousChannel().


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

Generated on Mon Sep 6 06:39:49 2010 for MythTV by  doxygen 1.5.5