MythTV  master
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends | List of all members
MythPlayer Class Reference

#include <mythplayer.h>

Inheritance diagram for MythPlayer:
Inheritance graph
[legend]
Collaboration diagram for MythPlayer:
Collaboration graph
[legend]

Public Member Functions

 MythPlayer (PlayerFlags flags=kNoFlags)
 
 MythPlayer (const MythPlayer &rhs)
 
virtual ~MythPlayer ()
 
virtual int OpenFile (int Retries=4)
 
bool InitVideo (void)
 
void SetPlayerInfo (TV *tv, QWidget *widget, PlayerContext *ctx)
 
void SetLength (int len)
 
void SetFramesPlayed (uint64_t played)
 
void SetEof (EofState eof)
 
void SetPIPActive (bool is_active)
 
void SetPIPVisible (bool is_visible)
 
void SetTranscoding (bool value)
 
void SetWatchingRecording (bool mode)
 
void SetWatched (bool forceWatched=false)
 Determines if the recording should be considered watched. More...
 
void SetKeyframeDistance (int keyframedistance)
 
void SetVideoParams (int w, int h, double fps, float aspect, bool ForceUpdate, int ReferenceFrames, FrameScanType scan=kScan_Ignore, const QString &codecName=QString())
 
void SetFileLength (int total, int frames)
 
void SetDuration (int duration)
 
void SetVideoResize (const QRect &videoRect)
 
void EnableFrameRateMonitor (bool enable=false)
 
void ForceDeinterlacer (bool DoubleRate, MythDeintType Deinterlacer)
 
void SetFrameRate (double fps)
 
QSize GetVideoBufferSize (void) const
 
QSize GetVideoSize (void) const
 
float GetVideoAspect (void) const
 
float GetFrameRate (void) const
 
void GetPlaybackData (InfoMap &infoMap)
 
bool IsAudioNeeded (void)
 
uint GetVolume (void)
 
int GetFreeVideoFrames (void) const
 Returns the number of frames available for decoding onto. More...
 
AspectOverrideMode GetAspectOverride (void) const
 
AdjustFillMode GetAdjustFill (void) const
 
MuteState GetMuteState (void)
 
int GetFFRewSkip (void) const
 
float GetPlaySpeed (void) const
 
AudioPlayerGetAudio (void)
 
const AudioOutputGraphGetAudioGraph () const
 
float GetAudioStretchFactor (void)
 
float GetNextPlaySpeed (void) const
 
int GetLength (void) const
 
uint64_t GetTotalFrameCount (void) const
 
uint64_t GetCurrentFrameCount (void) const
 
uint64_t GetFramesPlayed (void) const
 
virtual int64_t GetSecondsPlayed (bool honorCutList, int divisor=1000)
 
virtual int64_t GetTotalSeconds (bool honorCutList, int divisor=1000) const
 
int64_t GetLatestVideoTimecode () const
 
virtual uint64_t GetBookmark (void)
 
QString GetError (void) const
 
QString GetEncodingType (void) const
 
void GetCodecDescription (InfoMap &infoMap)
 
QString GetXDS (const QString &key) const
 
PIPLocation GetNextPIPLocation (void) const
 
bool IsPaused (void) const
 
bool GetRawAudioState (void) const
 
bool GetLimitKeyRepeat (void) const
 
EofState GetEof (void) const
 
bool IsErrored (void) const
 
bool IsPlaying (uint wait_in_msec=0, bool wait_for=true) const
 
bool AtNormalSpeed (void) const
 
bool IsReallyNearEnd (void) const
 Returns true iff really near end of recording. More...
 
bool IsNearEnd (void)
 Returns true iff near end of recording. More...
 
bool HasAudioOut (void) const
 
bool IsPIPActive (void) const
 
bool IsPIPVisible (void) const
 
bool IsMuted (void)
 
bool PlayerControlsVolume (void) const
 
bool UsingNullVideo (void) const
 
bool HasTVChainNext (void) const
 
bool CanSupportDoubleRate (void)
 
bool IsWatchingInprogress (void) const
 
virtual char * GetScreenGrabAtFrame (uint64_t FrameNum, bool Absolute, int &BufferSize, int &FrameWidth, int &FrameHeight, float &AspectRatio)
 Returns a one RGB frame grab from a video. More...
 
virtual char * GetScreenGrab (int SecondsIn, int &BufferSize, int &FrameWidth, int &FrameHeight, float &AspectRatio)
 Returns a one RGB frame grab from a video. More...
 
InteractiveTVGetInteractiveTV (void)
 
MythVideoOutputGetVideoOutput (void)
 
MythCodecContextGetMythCodecContext (void)
 
virtual bool SwitchTitle (int)
 
virtual bool NextTitle (void)
 
virtual bool PrevTitle (void)
 
virtual bool SwitchAngle (int)
 
virtual bool NextAngle (void)
 
virtual bool PrevAngle (void)
 
void InitForTranscode (bool copyaudio, bool copyvideo)
 
bool TranscodeGetNextFrame (int &did_ff, bool &is_key, bool honorCutList)
 
bool WriteStoredData (RingBuffer *outRingBuffer, bool writevideo, long timecodeOffset)
 
long UpdateStoredFrameNum (long curFrameNum)
 
void SetCutList (const frm_dir_map_t &newCutList)
 
VideoFrameTypeDirectRenderFormats (void)
 Return a list of frame types that can be rendered directly. More...
 
VideoFrameGetNextVideoFrame (void)
 Removes a frame from the available queue for decoding onto. More...
 
VideoFrameGetRawVideoFrame (long long frameNumber=-1)
 Returns a specific frame from the video. More...
 
VideoFrameGetCurrentFrame (int &w, int &h)
 
void DeLimboFrame (VideoFrame *frame)
 
virtual void ReleaseNextVideoFrame (VideoFrame *buffer, int64_t timecode, bool wrap=true)
 Places frame on the queue of frames ready for display. More...
 
void ReleaseCurrentFrame (VideoFrame *frame)
 
void DiscardVideoFrame (VideoFrame *buffer)
 Places frame in the available frames queue. More...
 
void DiscardVideoFrames (bool KeyFrame, bool Flushed)
 Places frames in the available frames queue. More...
 
DecoderBaseGetDecoder (void)
 Returns the stream decoder currently in use. More...
 
virtual bool HasReachedEof (void) const
 
void SetDisablePassThrough (bool disabled)
 
void ForceSetupAudioStream (void)
 
void HandleDecoderCallback (const QString &Debug, DecoderCallback::Callback Function, void *Opaque1, void *Opaque2)
 Convenience function to request and wait for a callback into the main thread. More...
 
void ProcessCallbacks (void)
 
void ReinitVideo (bool ForceUpdate)
 
virtual bool PrepareAudioSample (int64_t &timecode)
 
uint GetCaptionMode (void) const
 
virtual CC708ReaderGetCC708Reader (uint=0)
 
virtual CC608ReaderGetCC608Reader (uint=0)
 
virtual SubtitleReaderGetSubReader (uint=0)
 
virtual TeletextReaderGetTeletextReader (uint=0)
 
void TracksChanged (uint trackType)
 This tries to re-enable captions/subtitles if the user wants them and one of the captions/subtitles tracks has changed. More...
 
void EnableSubtitles (bool enable)
 
void EnableForcedSubtitles (bool enable)
 
bool ForcedSubtitlesFavored (void) const
 
void SetAllowForcedSubtitles (bool allow)
 
bool GetAllowForcedSubtitles (void) const
 
bool SetAudioByComponentTag (int tag)
 Selects the audio stream using the DVB component tag. More...
 
bool SetVideoByComponentTag (int tag)
 Selects the video stream using the DVB component tag. More...
 
bool SetStream (const QString &stream)
 
long GetStreamPos ()
 
long GetStreamMaxPos ()
 
long SetStreamPos (long ms)
 
void StreamPlay (bool play=true)
 
void CheckTVChain ()
 
void FileChangedCallback ()
 
virtual int GetNumChapters (void)
 
virtual int GetCurrentChapter (void)
 
virtual void GetChapterTimes (QList< long long > &times)
 
virtual int GetNumTitles (void) const
 
virtual int GetCurrentTitle (void) const
 
virtual int GetTitleDuration (int) const
 
virtual QString GetTitleName (int) const
 
virtual int GetNumAngles (void) const
 
virtual int GetCurrentAngle (void) const
 
virtual QString GetAngleName (int) const
 
virtual bool GoToMenu (const QString &)
 
virtual void GoToDVDProgram (bool direction)
 
virtual bool IsInStillFrame () const
 
bool PosMapFromEnc (uint64_t start, frm_pos_map_t &posMap, frm_pos_map_t &durMap)
 
bool TryLockOSD (void)
 
void LockOSD (void)
 
void UnlockOSD (void)
 
void ToggleNightMode (void)
 
bool CanVisualise (void)
 
bool IsVisualising (void)
 
QString GetVisualiserName (void)
 
QStringList GetVisualiserList (void)
 
bool EnableVisualisation (bool enable, const QString &name=QString(""))
 
void AutoVisualise (void)
 Enable visualisation if possible, there is no video and user has requested. More...
 
void SaveTotalDuration (void)
 
void ResetTotalDuration (void)
 
void SaveTotalFrames (void)
 
void SetErrored (const QString &reason)
 

Static Public Attributes

static const int kNightModeBrightenssAdjustment = 10
 
static const int kNightModeContrastAdjustment = 10
 
static const double kInaccuracyNone = 0
 
static const double kInaccuracyDefault = 0.1
 
static const double kInaccuracyEditor = 0.5
 
static const double kInaccuracyFull = -1.0
 

Protected Member Functions

void OpenDummy (void)
 
virtual void SetBookmark (bool clear=false)
 
bool AddPIPPlayer (MythPlayer *pip, PIPLocation loc)
 
bool RemovePIPPlayer (MythPlayer *pip)
 
FrameScanType NextScanOverride (void)
 
void SetScanOverride (FrameScanType Scan)
 
void SetScanType (FrameScanType Scan)
 
FrameScanType GetScanType (void) const
 
void Zoom (ZoomDirection direction)
 
void ToggleMoveBottomLine (void)
 
void SaveBottomLine (void)
 
void FileChanged (void)
 
void EmbedInWidget (QRect rect)
 
void StopEmbedding (void)
 
bool IsEmbedding (void)
 
void WindowResized (const QSize &new_size)
 
uint AdjustVolume (int change)
 
uint SetVolume (int newvolume)
 
bool SetMuted (bool mute)
 
MuteState SetMuteState (MuteState state)
 
MuteState IncrMuteState (void)
 
OSDGetOSD (void)
 
virtual void SeekForScreenGrab (uint64_t &number, uint64_t frameNum, bool absolute)
 
virtual long long CalcMaxFFTime (long long ff, bool setjump=true) const
 CalcMaxFFTime(ffframes): forward ffframes forward. More...
 
long long CalcRWTime (long long rw) const
 CalcRWTime(rw): rewind rw frames back. More...
 
virtual void calcSliderPos (osdInfo &info, bool paddedFields=false)
 
uint64_t TranslatePositionFrameToMs (uint64_t position, bool use_cutlist) const
 
uint64_t TranslatePositionMsToFrame (uint64_t position, bool use_cutlist) const
 
uint64_t TranslatePositionAbsToRel (uint64_t position) const
 
uint64_t TranslatePositionRelToAbs (uint64_t position) const
 
float ComputeSecs (uint64_t position, bool use_cutlist) const
 
uint64_t FindFrame (float offset, bool use_cutlist) const
 
void SetAutoCommercialSkip (CommSkipMode autoskip)
 
void SkipCommercials (int direction)
 
void SetCommBreakMap (frm_dir_map_t &newMap)
 
CommSkipMode GetAutoCommercialSkip (void)
 
void ToggleAspectOverride (AspectOverrideMode aspectMode=kAspect_Toggle)
 
void ToggleAdjustFill (AdjustFillMode adjustfillMode=kAdjustFill_Toggle)
 
virtual bool StartPlaying (void)
 
virtual void ResetPlaying (bool resetframes=true)
 
virtual void EndPlaying (void)
 
virtual void StopPlaying (void)
 
bool PauseDecoder (void)
 
void UnpauseDecoder (void)
 
bool Pause (void)
 
bool Play (float speed=1.0, bool normal=true, bool unpauseaudio=true)
 
virtual bool FastForward (float seconds)
 
virtual bool Rewind (float seconds)
 
virtual bool JumpToFrame (uint64_t frame)
 
void JumpChapter (int chapter)
 
virtual bool PrebufferEnoughFrames (int min_buffers=0)
 
void SetBuffering (bool new_buffering)
 
void RefreshPauseFrame (void)
 
void CheckAspectRatio (VideoFrame *frame)
 
virtual void DisplayPauseFrame (void)
 
virtual void DisplayNormalFrame (bool check_prebuffer=true)
 
virtual void PreProcessNormalFrame (void)
 
virtual void VideoStart (void)
 
virtual bool VideoLoop (void)
 
virtual void VideoEnd (void)
 
virtual void DecoderStart (bool start_paused)
 
virtual void DecoderLoop (bool pause)
 
virtual void DecoderEnd (void)
 
virtual void DecoderPauseCheck (void)
 
virtual void AudioEnd (void)
 
virtual void EventStart (void)
 
virtual void EventLoop (void)
 
virtual void InitialSeek (void)
 
bool ITVHandleAction (const QString &action)
 
void ITVRestart (uint chanid, uint cardid, bool isLiveTV)
 Restart the MHEG/MHP engine. More...
 
bool EnableEdit (void)
 
bool HandleProgramEditorActions (QStringList &actions)
 
bool GetEditMode (void) const
 
void DisableEdit (int howToSave)
 Leave cutlist edit mode, saving work in 1 of 3 ways. More...
 
bool IsInDelete (uint64_t frame)
 
uint64_t GetNearestMark (uint64_t frame, bool right)
 
bool IsTemporaryMark (uint64_t frame)
 
bool HasTemporaryMark (void)
 
bool IsCutListSaved (void)
 
bool DeleteMapHasUndo (void)
 
bool DeleteMapHasRedo (void)
 
QString DeleteMapGetUndoMessage (void)
 
QString DeleteMapGetRedoMessage (void)
 
void ReinitOSD (void)
 
void SetOSDMessage (const QString &msg, OSDTimeout timeout)
 
void SetOSDStatus (const QString &title, OSDTimeout timeout)
 
void ResetCaptions (void)
 
bool ToggleCaptions (void)
 
bool ToggleCaptions (uint type)
 
bool HasTextSubtitles (void)
 
void SetCaptionsEnabled (bool enable, bool osd_msg=true)
 
bool GetCaptionsEnabled (void)
 
virtual void DisableCaptions (uint mode, bool osd_msg=true)
 
virtual void EnableCaptions (uint mode, bool osd_msg=true)
 
QStringList GetTracks (uint type)
 
uint GetTrackCount (uint type)
 
virtual int SetTrack (uint type, int trackNo)
 
int GetTrack (uint type)
 
int ChangeTrack (uint type, int dir)
 
void ChangeCaptionTrack (int dir)
 
bool HasCaptionTrack (int mode)
 
int NextCaptionTrack (int mode)
 
void DoDisableForcedSubtitles (void)
 
void DoEnableForcedSubtitles (void)
 
void EnableTeletext (int page=0x100)
 
void DisableTeletext (void)
 
void ResetTeletext (void)
 
bool HandleTeletextAction (const QString &action)
 
void SetTeletextPage (uint page)
 Set Teletext NUV Caption page. More...
 
int64_t AdjustAudioTimecodeOffset (int64_t v, int newsync=-9999)
 
int64_t GetAudioTimecodeOffset (void) const
 
FrameScanType detectInterlace (FrameScanType newScan, FrameScanType scan, float fps, int video_height)
 
virtual void AutoDeint (VideoFrame *frame, bool allow_lock=true)
 Check whether deinterlacing should be enabled. More...
 
void SetPlayingInfo (const ProgramInfo &pginfo)
 
void SetPlaying (bool is_playing)
 
void ResetErrored (void)
 
int GetStatusbarPos (void) const
 
void PauseVideo (void)
 
void UnpauseVideo (void)
 
void PauseBuffer (void)
 
void UnpauseBuffer (void)
 
virtual void CreateDecoder (char *TestBuffer, int TestSize)
 
void SetDecoder (DecoderBase *dec)
 Sets the stream decoder, deleting any existing recorder. More...
 
const DecoderBaseGetDecoder (void) const
 Returns the stream decoder currently in use. More...
 
bool DecodeFrame (struct rtframeheader *frameheader, unsigned char *strm, unsigned char *outbuf)
 
virtual bool DecoderGetFrameFFREW (void)
 
virtual bool DecoderGetFrameREW (void)
 
bool DecoderGetFrame (DecodeType decodetype, bool unsafe=false)
 
bool DoGetFrame (DecodeType DecodeType)
 Get one frame from the decoder. More...
 
bool UpdateFFRewSkip (void)
 
virtual void ChangeSpeed (void)
 
bool DoFastForward (uint64_t frames, double inaccuracy)
 
bool DoRewind (uint64_t frames, double inaccuracy)
 
bool DoFastForwardSecs (float secs, double inaccuracy, bool use_cutlist)
 
bool DoRewindSecs (float secs, double inaccuracy, bool use_cutlist)
 
void DoJumpToFrame (uint64_t frame, double inaccuracy)
 
void WaitForSeek (uint64_t frame, uint64_t seeksnap_wanted)
 
void ClearAfterSeek (bool clearvideobuffers=true)
 This is to support seeking... More...
 
void ClearBeforeSeek (uint64_t Frames)
 Discard video frames prior to seeking. More...
 
virtual bool DoJumpChapter (int chapter)
 
virtual int64_t GetChapter (int chapter)
 
void HandleArbSeek (bool right)
 
void WrapTimecode (int64_t &timecode, TCTypes tc_type)
 
void InitAVSync (void)
 
virtual void AVSync (VideoFrame *buffer)
 
bool PipSync (void)
 Keep PiP frame rate in sync with master framerate. More...
 
void ResetAVSync (void)
 
void SetFrameInterval (FrameScanType scan, double frame_period)
 
void WaitForTime (int64_t framedue)
 
void SwitchToProgram (void)
 
void JumpToProgram (void)
 
void JumpToStream (const QString &stream)
 

Protected Attributes

DetectLetterboxm_detectLetterBox
 
PlayerFlags m_playerFlags
 
DecoderBasem_decoder {nullptr}
 
QMutex m_decoderCallbackLock
 
QVector< DecoderCallbackm_decoderCallbacks
 
QMutex m_decoderChangeLock {QMutex::Recursive}
 
MythVideoOutputm_videoOutput {nullptr}
 
PlayerContextm_playerCtx {nullptr}
 
DecoderThreadm_decoderThread {nullptr}
 
QThread * m_playerThread {nullptr}
 
MythDisplaym_display {nullptr}
 
QWidget * m_parentWidget {nullptr}
 
bool m_embedding {false}
 
QRect m_embedRect {0,0,0,0}
 
QWaitCondition m_decoderThreadPause
 
QWaitCondition m_decoderThreadUnpause
 
QMutex m_decoderPauseLock
 
QMutex m_decoderSeekLock
 
bool m_totalDecoderPause {false}
 
bool m_decoderPaused {false}
 
bool m_inJumpToProgramPause {false}
 
bool m_pauseDecoder {false}
 
bool m_unpauseDecoder {false}
 
bool volatile m_killDecoder {false}
 
int64_t m_decoderSeek {-1}
 
bool m_decodeOneFrame {false}
 
bool m_needNewPauseFrame {false}
 
QMutex m_bufferPauseLock
 
QMutex m_videoPauseLock
 
QMutex m_pauseLock
 
bool m_bufferPaused {false}
 
bool m_videoPaused {false}
 
bool m_allPaused {false}
 
bool m_playing {false}
 
QWaitCondition m_playingWaitCond
 
QMutex m_vidExitLock
 
QMutex m_playingLock
 
bool m_doubleFramerate {false}
 Output fps is double Video (input) rate. More...
 
bool m_liveTV {false}
 
bool m_watchingRecording {false}
 
bool m_transcoding {false}
 
bool m_hasFullPositionMap {false}
 
bool m_limitKeyRepeat {false}
 
QMutex m_errorLock
 
QString m_errorMsg
 Reason why NVP exited with a error. More...
 
int m_errorType {kError_None}
 
int m_jumpChapter {0}
 
uint64_t m_bookmarkSeek {0}
 
int m_clearSavedPosition {1}
 
int m_endExitPrompt
 
long long m_ffTime {0}
 If m_ffTime>0, number of frames to seek forward. More...
 
int m_videobufRetries {0}
 How often we have tried to wait for a video output buffer and failed. More...
 
uint64_t m_framesPlayed {0}
 
uint64_t m_totalFrames {0}
 
long long m_totalLength {0}
 
int64_t m_totalDuration {0}
 
long long m_rewindTime {0}
 
int64_t m_latestVideoTimecode {-1}
 
QElapsedTimer m_avTimer
 
MythDeintType m_lastDeinterlacer { DEINT_NONE }
 
bool m_lastDeinterlacer2x { false }
 
VideoFrameType m_lastFrameCodec { FMT_NONE }
 
QSize m_videoDispDim {0,0}
 Video (input) width & height. More...
 
QSize m_videoDim {0,0}
 Video (input) buffer width & height. More...
 
int m_maxReferenceFrames {0}
 Number of reference frames used in the video stream. More...
 
double m_videoFrameRate {29.97}
 Video (input) Frame Rate (often inaccurate) More...
 
float m_videoAspect {4.0F / 3.0F}
 Video (input) Apect Ratio. More...
 
float m_forcedVideoAspect {-1}
 
FrameScanType m_resetScan { kScan_Ignore }
 
FrameScanType m_scan { kScan_Interlaced }
 
FrameScanType m_scanOverride { kScan_Detect }
 
bool m_scanLocked { false }
 
bool m_scanInitialized { false }
 
long long m_scanTracker { 0 }
 
uint m_keyframeDist {30}
 Video (input) Number of frames between key frames (often inaccurate) More...
 
QString m_codecName
 Codec Name - used by playback profile. More...
 
bool m_buffering {false}
 
QTime m_bufferingStart
 
QTime m_bufferingLastMsg
 
uint m_textDisplayMode {kDisplayNone}
 
uint m_prevTextDisplayMode {kDisplayNone}
 
uint m_prevNonzeroTextDisplayMode {kDisplayNone}
 
uint m_vbiMode {VBIMode::None}
 VBI decoder to use. More...
 
int m_ttPageNum {0x888}
 VBI page to display when in PAL vbimode. More...
 
SubtitleReader m_subReader
 
TeletextReader m_ttxReader
 
bool m_captionsEnabledbyDefault {false}
 This allows us to enable captions/subtitles later if the streams are not immediately available when the video starts playing. More...
 
bool m_textDesired {false}
 
bool m_enableCaptions {false}
 
bool m_disableCaptions {false}
 
bool m_enableForcedSubtitles {false}
 
bool m_disableForcedSubtitles {false}
 
bool m_allowForcedSubtitles {true}
 
CC608Reader m_cc608
 
CC708Reader m_cc708
 
bool m_itvVisible {false}
 
InteractiveTVm_interactiveTV {nullptr}
 
bool m_itvEnabled {false}
 
QMutex m_itvLock
 
QMutex m_streamLock
 
QString m_newStream
 
OSDm_osd {nullptr}
 
bool m_reinitOsd {false}
 
QMutex m_osdLock {QMutex::Recursive}
 
AudioPlayer m_audio
 
AudioOutputGraph m_audiograph
 
PIPMap m_pipPlayers
 
volatile bool m_pipActive {false}
 
volatile bool m_pipVisible {true}
 
PIPLocation m_pipDefaultLoc
 
CommBreakMap m_commBreakMap
 
bool m_forcePositionMapSync {false}
 
DeleteMap m_deleteMap
 
bool m_pausedBeforeEdit {false}
 
QElapsedTimer m_editUpdateTimer
 
float m_speedBeforeEdit {1.0F}
 
QMutex m_decoderLock {QMutex::Recursive}
 Lock for next_play_speed and next_normal_speed. More...
 
float m_nextPlaySpeed {1.0F}
 
bool m_nextNormalSpeed {true}
 
float m_playSpeed {1.0F}
 
bool m_normalSpeed {true}
 
int m_frameInterval {static_cast<int>((1000000.0F / 30))}
 always adjusted for play_speed More...
 
int m_frameIntervalPrev {0}
 used to detect changes to frame_interval More...
 
int m_fpsMultiplier {1}
 used to detect changes More...
 
int m_ffrewSkip {1}
 
int m_ffrewAdjust {0}
 
bool m_fileChanged {false}
 
int m_avsyncAvg {0}
 
int64_t m_dispTimecode {0}
 
bool m_avsyncAudioPaused {false}
 
int64_t m_rtcBase {0}
 
int64_t m_maxTcVal {0}
 
int m_maxTcFrames {0}
 
int m_numDroppedFrames {0}
 
int64_t m_priorAudioTimecode {0}
 
int64_t m_priorVideoTimecode {0}
 
float m_lastFix {0.0F}
 
int64_t m_timeOffsetBase {0}
 
int m_prevTc {0}
 32 bit timecode if last VideoFrame shown More...
 
int m_prevRp {0}
 repeat_pict of last frame More...
 
int64_t m_tcWrap [TCTYPESMAX] {}
 
int64_t m_tcLastVal [TCTYPESMAX] {}
 
int64_t m_savedAudioTimecodeOffset {0}
 
TVm_tv {nullptr}
 
bool m_isDummy {false}
 
int m_bufferingCounter {0}
 
Jitterometerm_outputJmeter {nullptr}
 

Private Member Functions

void syncWithAudioStretch ()
 

Private Attributes

bool m_disablePassthrough {false}
 

Friends

class PlayerContext
 
class CC708Reader
 
class CC608Reader
 
class DecoderThread
 
class DetectLetterbox
 
class TeletextScreen
 
class SubtitleScreen
 
class InteractiveScreen
 
class BDOverlayScreen
 
class VideoPerformanceTest
 
class TV
 
class Transcode
 

Detailed Description

Definition at line 158 of file mythplayer.h.

Constructor & Destructor Documentation

◆ MythPlayer() [1/2]

MythPlayer::MythPlayer ( PlayerFlags  flags = kNoFlags)
explicit

Definition at line 148 of file mythplayer.cpp.

◆ MythPlayer() [2/2]

MythPlayer::MythPlayer ( const MythPlayer rhs)

◆ ~MythPlayer()

MythPlayer::~MythPlayer ( void  )
virtual

Definition at line 181 of file mythplayer.cpp.

Member Function Documentation

◆ OpenFile()

int MythPlayer::OpenFile ( int  Retries = 4)
virtual

◆ InitVideo()

bool MythPlayer::InitVideo ( void  )

◆ SetPlayerInfo()

void MythPlayer::SetPlayerInfo ( TV tv,
QWidget *  widget,
PlayerContext ctx 
)

Definition at line 4066 of file mythplayer.cpp.

Referenced by PlayerContext::CreatePlayer(), and Transcode::TranscodeFile().

◆ SetLength()

void MythPlayer::SetLength ( int  len)
inline

Definition at line 188 of file mythplayer.h.

Referenced by PlayerContext::CreatePlayer(), and TV::customEvent().

◆ SetFramesPlayed()

void MythPlayer::SetFramesPlayed ( uint64_t  played)

◆ SetEof()

void MythPlayer::SetEof ( EofState  eof)

◆ SetPIPActive()

void MythPlayer::SetPIPActive ( bool  is_active)
inline

Definition at line 191 of file mythplayer.h.

Referenced by TV::SetActive().

◆ SetPIPVisible()

void MythPlayer::SetPIPVisible ( bool  is_visible)
inline

Definition at line 192 of file mythplayer.h.

◆ SetTranscoding()

void MythPlayer::SetTranscoding ( bool  value)

Definition at line 3432 of file mythplayer.cpp.

Referenced by Transcode::TranscodeFile().

◆ SetWatchingRecording()

void MythPlayer::SetWatchingRecording ( bool  mode)

◆ SetWatched()

void MythPlayer::SetWatched ( bool  forceWatched = false)

Determines if the recording should be considered watched.

By comparing the number of framesPlayed to the total number of frames in the video minus an offset (14%) we determine if the recording is likely to have been watched to the end, ignoring end credits and trailing adverts.

PlaybackInfo::SetWatchedFlag is then called with the argument TRUE or FALSE accordingly.

Parameters
forceWatchedForces a recording watched ignoring the amount actually played (Optional)

Definition at line 3537 of file mythplayer.cpp.

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

◆ SetKeyframeDistance()

void MythPlayer::SetKeyframeDistance ( int  keyframedistance)

◆ SetVideoParams()

void MythPlayer::SetVideoParams ( int  w,
int  h,
double  fps,
float  aspect,
bool  ForceUpdate,
int  ReferenceFrames,
FrameScanType  scan = kScan_Ignore,
const QString &  codecName = QString() 
)

◆ SetFileLength()

void MythPlayer::SetFileLength ( int  total,
int  frames 
)

◆ SetDuration()

void MythPlayer::SetDuration ( int  duration)

Definition at line 749 of file mythplayer.cpp.

Referenced by AvFormatDecoder::OpenFile().

◆ SetVideoResize()

void MythPlayer::SetVideoResize ( const QRect &  videoRect)

Definition at line 5239 of file mythplayer.cpp.

Referenced by InteractiveScreen::Close(), and MHIContext::DrawVideo().

◆ EnableFrameRateMonitor()

void MythPlayer::EnableFrameRateMonitor ( bool  enable = false)

Definition at line 2199 of file mythplayer.cpp.

Referenced by TV::timerEvent(), TV::ToggleOSDDebug(), and VideoStart().

◆ ForceDeinterlacer()

void MythPlayer::ForceDeinterlacer ( bool  DoubleRate,
MythDeintType  Deinterlacer 
)

Definition at line 2208 of file mythplayer.cpp.

Referenced by Transcode::TranscodeFile().

◆ SetFrameRate()

void MythPlayer::SetFrameRate ( double  fps)

Definition at line 734 of file mythplayer.cpp.

Referenced by AvFormatDecoder::ProcessVideoFrame().

◆ GetVideoBufferSize()

QSize MythPlayer::GetVideoBufferSize ( void  ) const
inline

◆ GetVideoSize()

QSize MythPlayer::GetVideoSize ( void  ) const
inline

◆ GetVideoAspect()

float MythPlayer::GetVideoAspect ( void  ) const
inline

◆ GetFrameRate()

float MythPlayer::GetFrameRate ( void  ) const
inline

◆ GetPlaybackData()

void MythPlayer::GetPlaybackData ( InfoMap infoMap)

Definition at line 4829 of file mythplayer.cpp.

Referenced by TV::UpdateOSDDebug().

◆ IsAudioNeeded()

bool MythPlayer::IsAudioNeeded ( void  )
inline

Definition at line 215 of file mythplayer.h.

Referenced by AudioPlayer::ReinitAudio().

◆ GetVolume()

uint MythPlayer::GetVolume ( void  )
inline

◆ GetFreeVideoFrames()

int MythPlayer::GetFreeVideoFrames ( void  ) const

Returns the number of frames available for decoding onto.

Definition at line 941 of file mythplayer.cpp.

Referenced by AvFormatDecoder::GenerateDummyVideoFrames().

◆ GetAspectOverride()

AspectOverrideMode MythPlayer::GetAspectOverride ( void  ) const

Definition at line 4367 of file mythplayer.cpp.

Referenced by TV::PlaybackMenuInit(), and TV::ToggleAspectOverride().

◆ GetAdjustFill()

AdjustFillMode MythPlayer::GetAdjustFill ( void  ) const

◆ GetMuteState()

MuteState MythPlayer::GetMuteState ( void  )
inline

Definition at line 221 of file mythplayer.h.

Referenced by TV::GetStatus(), TV::PxPSwap(), and TV::PxPToggleType().

◆ GetFFRewSkip()

int MythPlayer::GetFFRewSkip ( void  ) const
inline

◆ GetPlaySpeed()

float MythPlayer::GetPlaySpeed ( void  ) const
inline

Definition at line 224 of file mythplayer.h.

Referenced by TV::GetStatus().

◆ GetAudio()

AudioPlayer* MythPlayer::GetAudio ( void  )
inline

◆ GetAudioGraph()

const AudioOutputGraph& MythPlayer::GetAudioGraph ( ) const
inline

Definition at line 226 of file mythplayer.h.

Referenced by OSD::SetGraph().

◆ GetAudioStretchFactor()

float MythPlayer::GetAudioStretchFactor ( void  )
inline

Definition at line 227 of file mythplayer.h.

◆ GetNextPlaySpeed()

float MythPlayer::GetNextPlaySpeed ( void  ) const
inline

◆ GetLength()

int MythPlayer::GetLength ( void  ) const
inline

Definition at line 229 of file mythplayer.h.

◆ GetTotalFrameCount()

uint64_t MythPlayer::GetTotalFrameCount ( void  ) const
inline

◆ GetCurrentFrameCount()

uint64_t MythPlayer::GetCurrentFrameCount ( void  ) const

◆ GetFramesPlayed()

uint64_t MythPlayer::GetFramesPlayed ( void  ) const
inline

◆ GetSecondsPlayed()

int64_t MythPlayer::GetSecondsPlayed ( bool  honorCutList,
int  divisor = 1000 
)
virtual

Reimplemented in MythDVDPlayer.

Definition at line 4860 of file mythplayer.cpp.

Referenced by calcSliderPos().

◆ GetTotalSeconds()

int64_t MythPlayer::GetTotalSeconds ( bool  honorCutList,
int  divisor = 1000 
) const
virtual

Reimplemented in MythDVDPlayer.

Definition at line 4869 of file mythplayer.cpp.

Referenced by calcSliderPos().

◆ GetLatestVideoTimecode()

int64_t MythPlayer::GetLatestVideoTimecode ( ) const
inline

Definition at line 241 of file mythplayer.h.

Referenced by RefreshPauseFrame().

◆ GetBookmark()

uint64_t MythPlayer::GetBookmark ( void  )
virtual

◆ GetError()

QString MythPlayer::GetError ( void  ) const

Definition at line 5476 of file mythplayer.cpp.

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

◆ GetEncodingType()

QString MythPlayer::GetEncodingType ( void  ) const

Definition at line 4644 of file mythplayer.cpp.

Referenced by GetCodecDescription(), and Transcode::TranscodeFile().

◆ GetCodecDescription()

void MythPlayer::GetCodecDescription ( InfoMap infoMap)

Definition at line 4651 of file mythplayer.cpp.

Referenced by GetPlaybackData(), and PlayerContext::GetPlayingInfoMap().

◆ GetXDS()

QString MythPlayer::GetXDS ( const QString &  key) const

Definition at line 4687 of file mythplayer.cpp.

Referenced by TV::ChannelEditXDSFill().

◆ GetNextPIPLocation()

PIPLocation MythPlayer::GetNextPIPLocation ( void  ) const

Definition at line 3479 of file mythplayer.cpp.

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

◆ IsPaused()

bool MythPlayer::IsPaused ( void  ) const
inline

◆ GetRawAudioState()

bool MythPlayer::GetRawAudioState ( void  ) const

Definition at line 4680 of file mythplayer.cpp.

Referenced by Transcode::TranscodeFile().

◆ GetLimitKeyRepeat()

bool MythPlayer::GetLimitKeyRepeat ( void  ) const
inline

Definition at line 252 of file mythplayer.h.

Referenced by TV::DoSeek().

◆ GetEof()

EofState MythPlayer::GetEof ( void  ) const

◆ IsErrored()

bool MythPlayer::IsErrored ( void  ) const

◆ IsPlaying()

bool MythPlayer::IsPlaying ( uint  wait_in_msec = 0,
bool  wait_for = true 
) const

◆ AtNormalSpeed()

bool MythPlayer::AtNormalSpeed ( void  ) const
inline

◆ IsReallyNearEnd()

bool MythPlayer::IsReallyNearEnd ( void  ) const

Returns true iff really near end of recording.

This is used by SwitchToProgram() to determine if we are so close to the end that we need to switch to the next program.

Definition at line 3840 of file mythplayer.cpp.

Referenced by SwitchToProgram().

◆ IsNearEnd()

bool MythPlayer::IsNearEnd ( void  )

◆ HasAudioOut()

bool MythPlayer::HasAudioOut ( void  ) const
inline

◆ IsPIPActive()

bool MythPlayer::IsPIPActive ( void  ) const
inline

Definition at line 260 of file mythplayer.h.

Referenced by MythVideoOutputOpenGL::ShowPIP(), and VideoOutputD3D::ShowPIP().

◆ IsPIPVisible()

bool MythPlayer::IsPIPVisible ( void  ) const
inline

Definition at line 261 of file mythplayer.h.

Referenced by MythVideoOutputOpenGL::ShowPIP(), and VideoOutputD3D::ShowPIP().

◆ IsMuted()

bool MythPlayer::IsMuted ( void  )
inline

◆ PlayerControlsVolume()

bool MythPlayer::PlayerControlsVolume ( void  ) const
inline

◆ UsingNullVideo()

bool MythPlayer::UsingNullVideo ( void  ) const
inline

Definition at line 264 of file mythplayer.h.

Referenced by TV::PIPAddPlayer().

◆ HasTVChainNext()

bool MythPlayer::HasTVChainNext ( void  ) const

Definition at line 4431 of file mythplayer.cpp.

Referenced by PosMapFromEnc().

◆ CanSupportDoubleRate()

bool MythPlayer::CanSupportDoubleRate ( void  )

◆ IsWatchingInprogress()

bool MythPlayer::IsWatchingInprogress ( void  ) const

◆ GetScreenGrabAtFrame()

char * MythPlayer::GetScreenGrabAtFrame ( uint64_t  FrameNum,
bool  Absolute,
int &  BufferSize,
int &  FrameWidth,
int &  FrameHeight,
float &  AspectRatio 
)
virtual

Returns a one RGB frame grab from a video.

User is responsible for deleting the buffer with delete[]. This also tries to skip any commercial breaks for a more useful screen grab for previews.

Warning: Don't use this on something you're playing!

Parameters
frameNum[in] Frame number to capture
absolute[in] If False, make sure we aren't in cutlist or Comm brk
bufflen[out] Size of buffer returned in bytes
vw[out] Width of buffer returned
vh[out] Height of buffer returned
ar[out] Aspect of buffer returned

Reimplemented in MythBDPlayer.

Definition at line 4474 of file mythplayer.cpp.

Referenced by GetScreenGrab().

◆ GetScreenGrab()

char * MythPlayer::GetScreenGrab ( int  SecondsIn,
int &  BufferSize,
int &  FrameWidth,
int &  FrameHeight,
float &  AspectRatio 
)
virtual

Returns a one RGB frame grab from a video.

User is responsible for deleting the buffer with delete[]. This also tries to skip any commercial breaks for a more useful screen grab for previews.

Warning: Don't use this on something you're playing!

Parameters
secondsin[in] Seconds to seek into the buffer
bufflen[out] Size of buffer returned in bytes
vw[out] Width of buffer returned
vh[out] Height of buffer returned
ar[out] Aspect of buffer returned

Reimplemented in MythBDPlayer.

Definition at line 4451 of file mythplayer.cpp.

◆ GetInteractiveTV()

InteractiveTV * MythPlayer::GetInteractiveTV ( void  )

◆ GetVideoOutput()

MythVideoOutput* MythPlayer::GetVideoOutput ( void  )
inline

◆ GetMythCodecContext()

MythCodecContext* MythPlayer::GetMythCodecContext ( void  )
inline

Definition at line 276 of file mythplayer.h.

◆ SwitchTitle()

virtual bool MythPlayer::SwitchTitle ( int  )
inlinevirtual

Reimplemented in MythBDPlayer.

Definition at line 279 of file mythplayer.h.

Referenced by TV::DoSwitchTitle().

◆ NextTitle()

virtual bool MythPlayer::NextTitle ( void  )
inlinevirtual

Reimplemented in MythBDPlayer.

Definition at line 280 of file mythplayer.h.

◆ PrevTitle()

virtual bool MythPlayer::PrevTitle ( void  )
inlinevirtual

Reimplemented in MythBDPlayer.

Definition at line 281 of file mythplayer.h.

◆ SwitchAngle()

virtual bool MythPlayer::SwitchAngle ( int  )
inlinevirtual

Reimplemented in MythBDPlayer, and MythDVDPlayer.

Definition at line 284 of file mythplayer.h.

Referenced by TV::DoSwitchAngle().

◆ NextAngle()

virtual bool MythPlayer::NextAngle ( void  )
inlinevirtual

Reimplemented in MythBDPlayer.

Definition at line 285 of file mythplayer.h.

◆ PrevAngle()

virtual bool MythPlayer::PrevAngle ( void  )
inlinevirtual

Reimplemented in MythBDPlayer.

Definition at line 286 of file mythplayer.h.

◆ InitForTranscode()

void MythPlayer::InitForTranscode ( bool  copyaudio,
bool  copyvideo 
)

Definition at line 4694 of file mythplayer.cpp.

Referenced by Transcode::TranscodeFile().

◆ TranscodeGetNextFrame()

bool MythPlayer::TranscodeGetNextFrame ( int &  did_ff,
bool is_key,
bool  honorCutList 
)

Definition at line 4722 of file mythplayer.cpp.

Referenced by VideoDecodeBuffer::run(), and Transcode::TranscodeFile().

◆ WriteStoredData()

bool MythPlayer::WriteStoredData ( RingBuffer outRingBuffer,
bool  writevideo,
long  timecodeOffset 
)

Definition at line 4796 of file mythplayer.cpp.

Referenced by Transcode::TranscodeFile().

◆ UpdateStoredFrameNum()

long MythPlayer::UpdateStoredFrameNum ( long  curFrameNum)

Definition at line 4784 of file mythplayer.cpp.

Referenced by Transcode::TranscodeFile().

◆ SetCutList()

void MythPlayer::SetCutList ( const frm_dir_map_t newCutList)

Definition at line 4791 of file mythplayer.cpp.

Referenced by Transcode::TranscodeFile().

◆ DirectRenderFormats()

VideoFrameType * MythPlayer::DirectRenderFormats ( void  )

Return a list of frame types that can be rendered directly.

Definition at line 949 of file mythplayer.cpp.

Referenced by DecoderBase::GetBestVideoFormat(), and MythMMALContext::GetBuffer().

◆ GetNextVideoFrame()

VideoFrame * MythPlayer::GetNextVideoFrame ( void  )

Removes a frame from the available queue for decoding onto.

This places the frame in the limbo queue, from which frames are removed if they are added to another queue. Normally a frame is freed from limbo either by a ReleaseNextVideoFrame() or DiscardVideoFrame() call; but limboed frames are also freed during a seek reset.

Definition at line 966 of file mythplayer.cpp.

Referenced by AvFormatDecoder::GenerateDummyVideoFrames(), get_avf_buffer_dxva2(), NuppelDecoder::GetFrame(), and AvFormatDecoder::ProcessVideoFrame().

◆ GetRawVideoFrame()

VideoFrame * MythPlayer::GetRawVideoFrame ( long long  frameNumber = -1)

Returns a specific frame from the video.

NOTE: You must call DiscardVideoFrame(VideoFrame*) on the frame returned, as this marks the frame as being used and hence unavailable for decoding.

Definition at line 4615 of file mythplayer.cpp.

Referenced by PrePostRollFlagger::findBreakInrange(), CommDetector2::go(), ClassicCommDetector::go(), and ClassicLogoDetector::searchForLogo().

◆ GetCurrentFrame()

VideoFrame * MythPlayer::GetCurrentFrame ( int &  w,
int &  h 
)

Definition at line 1035 of file mythplayer.cpp.

Referenced by MythVideoOutputOpenGL::ShowPIP(), and VideoOutputD3D::ShowPIP().

◆ DeLimboFrame()

void MythPlayer::DeLimboFrame ( VideoFrame frame)

◆ ReleaseNextVideoFrame()

void MythPlayer::ReleaseNextVideoFrame ( VideoFrame buffer,
int64_t  timecode,
bool  wrap = true 
)
virtual

Places frame on the queue of frames ready for display.

Reimplemented in MythDVDPlayer.

Definition at line 976 of file mythplayer.cpp.

Referenced by AvFormatDecoder::GenerateDummyVideoFrames(), NuppelDecoder::GetFrame(), AvFormatDecoder::ProcessVideoFrame(), and MythDVDPlayer::ReleaseNextVideoFrame().

◆ ReleaseCurrentFrame()

void MythPlayer::ReleaseCurrentFrame ( VideoFrame frame)

Definition at line 1058 of file mythplayer.cpp.

Referenced by MythVideoOutputOpenGL::ShowPIP(), and VideoOutputD3D::ShowPIP().

◆ DiscardVideoFrame()

void MythPlayer::DiscardVideoFrame ( VideoFrame buffer)

◆ DiscardVideoFrames()

void MythPlayer::DiscardVideoFrames ( bool  KeyFrame,
bool  Flushed 
)

Places frames in the available frames queue.

If called with 'Keyframe' set to false then all frames not in use by the decoder are made available for decoding. Otherwise, all frames are made available for decoding; this is only safe if the next frame is a keyframe.

Parameters
Keyframeif this is true all frames are placed in the available queue.
Flushedindicates that the decoder has been flushed AND the decoder requires ALL frames to be released (used for VAAPI and VDPAU pause frames)

Definition at line 1015 of file mythplayer.cpp.

Referenced by DecoderEnd(), MythVTBContext::InitFramesContext(), MythNVDECContext::InitFramesContext(), JumpToProgram(), PrebufferEnoughFrames(), AvFormatDecoderDVD::ReadPacket(), NuppelDecoder::SeekReset(), AvFormatDecoder::SeekReset(), and SwitchToProgram().

◆ GetDecoder() [1/2]

DecoderBase* MythPlayer::GetDecoder ( void  )
inline

◆ HasReachedEof()

bool MythPlayer::HasReachedEof ( void  ) const
virtual

Reimplemented in MythDVDPlayer, and MythBDPlayer.

Definition at line 1021 of file mythplayer.cpp.

Referenced by EventLoop().

◆ SetDisablePassThrough()

void MythPlayer::SetDisablePassThrough ( bool  disabled)

Definition at line 5636 of file mythplayer.cpp.

Referenced by syncWithAudioStretch().

◆ ForceSetupAudioStream()

void MythPlayer::ForceSetupAudioStream ( void  )

Definition at line 5644 of file mythplayer.cpp.

Referenced by TV::EnableUpmix().

◆ HandleDecoderCallback()

void MythPlayer::HandleDecoderCallback ( const QString &  Debug,
DecoderCallback::Callback  Function,
void *  Opaque1,
void *  Opaque2 
)

Convenience function to request and wait for a callback into the main thread.

This is used by hardware decoders to ensure certain resources are created and destroyed in the UI (render) thread.

Definition at line 3080 of file mythplayer.cpp.

Referenced by MythCodecContext::DestroyInterop(), MythCodecContext::InitialiseDecoder(), and MythCodecContext::InitialiseDecoder2().

◆ ProcessCallbacks()

void MythPlayer::ProcessCallbacks ( void  )

◆ ReinitVideo()

void MythPlayer::ReinitVideo ( bool  ForceUpdate)

Definition at line 450 of file mythplayer.cpp.

Referenced by SetVideoParams().

◆ PrepareAudioSample()

bool MythPlayer::PrepareAudioSample ( int64_t &  timecode)
virtual

Reimplemented in MythDVDPlayer.

Definition at line 3517 of file mythplayer.cpp.

Referenced by AudioPlayer::AddAudioData().

◆ GetCaptionMode()

uint MythPlayer::GetCaptionMode ( void  ) const
inline

◆ GetCC708Reader()

virtual CC708Reader* MythPlayer::GetCC708Reader ( uint  = 0)
inlinevirtual

Reimplemented in MythCCExtractorPlayer.

Definition at line 324 of file mythplayer.h.

Referenced by SubtitleScreen::Create().

◆ GetCC608Reader()

virtual CC608Reader* MythPlayer::GetCC608Reader ( uint  = 0)
inlinevirtual

Reimplemented in MythCCExtractorPlayer.

Definition at line 325 of file mythplayer.h.

Referenced by SubtitleScreen::Create(), NuppelDecoder::GetFrame(), and Transcode::TranscodeFile().

◆ GetSubReader()

virtual SubtitleReader* MythPlayer::GetSubReader ( uint  = 0)
inlinevirtual

◆ GetTeletextReader()

virtual TeletextReader* MythPlayer::GetTeletextReader ( uint  = 0)
inlinevirtual

Reimplemented in MythCCExtractorPlayer.

Definition at line 327 of file mythplayer.h.

Referenced by TeletextScreen::Create().

◆ TracksChanged()

void MythPlayer::TracksChanged ( uint  trackType)

This tries to re-enable captions/subtitles if the user wants them and one of the captions/subtitles tracks has changed.

Definition at line 1405 of file mythplayer.cpp.

Referenced by DecoderBase::AutoSelectTrack(), and DecoderBase::InsertTrack().

◆ EnableSubtitles()

void MythPlayer::EnableSubtitles ( bool  enable)

◆ EnableForcedSubtitles()

void MythPlayer::EnableForcedSubtitles ( bool  enable)

Definition at line 1422 of file mythplayer.cpp.

Referenced by AvFormatDecoder::ProcessSubtitlePacket().

◆ ForcedSubtitlesFavored()

bool MythPlayer::ForcedSubtitlesFavored ( void  ) const
inline

Definition at line 333 of file mythplayer.h.

Referenced by DecoderBase::AutoSelectTrack().

◆ SetAllowForcedSubtitles()

void MythPlayer::SetAllowForcedSubtitles ( bool  allow)

Definition at line 1430 of file mythplayer.cpp.

Referenced by TV::HandleTrackAction().

◆ GetAllowForcedSubtitles()

bool MythPlayer::GetAllowForcedSubtitles ( void  ) const
inline

◆ SetAudioByComponentTag()

bool MythPlayer::SetAudioByComponentTag ( int  tag)

Selects the audio stream using the DVB component tag.

Definition at line 5250 of file mythplayer.cpp.

Referenced by MHIContext::BeginAudio().

◆ SetVideoByComponentTag()

bool MythPlayer::SetVideoByComponentTag ( int  tag)

Selects the video stream using the DVB component tag.

Definition at line 5262 of file mythplayer.cpp.

Referenced by MHIContext::BeginVideo().

◆ SetStream()

bool MythPlayer::SetStream ( const QString &  stream)

Definition at line 5279 of file mythplayer.cpp.

Referenced by MHIContext::BeginStream(), and MHIContext::EndStream().

◆ GetStreamPos()

long MythPlayer::GetStreamPos ( )

Definition at line 5371 of file mythplayer.cpp.

Referenced by GetStreamMaxPos(), and MHIContext::GetStreamPos().

◆ GetStreamMaxPos()

long MythPlayer::GetStreamMaxPos ( )

Definition at line 5377 of file mythplayer.cpp.

Referenced by MHIContext::GetStreamMaxPos().

◆ SetStreamPos()

long MythPlayer::SetStreamPos ( long  ms)

Definition at line 5385 of file mythplayer.cpp.

Referenced by MHIContext::SetStreamPos().

◆ StreamPlay()

void MythPlayer::StreamPlay ( bool  play = true)

Definition at line 5395 of file mythplayer.cpp.

Referenced by MHIContext::StreamPlay().

◆ CheckTVChain()

void MythPlayer::CheckTVChain ( void  )

◆ FileChangedCallback()

void MythPlayer::FileChangedCallback ( void  )

Definition at line 2551 of file mythplayer.cpp.

Referenced by DecoderBase::FileChanged().

◆ GetNumChapters()

int MythPlayer::GetNumChapters ( void  )
virtual

Reimplemented in MythDVDPlayer, and MythBDPlayer.

Definition at line 5124 of file mythplayer.cpp.

Referenced by calcSliderPos(), DoJumpChapter(), and TV::GetNumChapters().

◆ GetCurrentChapter()

int MythPlayer::GetCurrentChapter ( void  )
virtual

Reimplemented in MythDVDPlayer, and MythBDPlayer.

Definition at line 5131 of file mythplayer.cpp.

Referenced by calcSliderPos(), DoJumpChapter(), and TV::GetCurrentChapter().

◆ GetChapterTimes()

void MythPlayer::GetChapterTimes ( QList< long long > &  times)
virtual

Reimplemented in MythDVDPlayer, and MythBDPlayer.

Definition at line 5138 of file mythplayer.cpp.

Referenced by TV::GetChapterTimes(), and TV::GetStatus().

◆ GetNumTitles()

virtual int MythPlayer::GetNumTitles ( void  ) const
inlinevirtual

Reimplemented in MythBDPlayer.

Definition at line 362 of file mythplayer.h.

Referenced by calcSliderPos(), and TV::GetNumTitles().

◆ GetCurrentTitle()

virtual int MythPlayer::GetCurrentTitle ( void  ) const
inlinevirtual

Reimplemented in MythBDPlayer.

Definition at line 363 of file mythplayer.h.

Referenced by calcSliderPos(), and TV::GetCurrentTitle().

◆ GetTitleDuration()

virtual int MythPlayer::GetTitleDuration ( int  ) const
inlinevirtual

Reimplemented in MythBDPlayer.

Definition at line 364 of file mythplayer.h.

Referenced by TV::GetTitleDuration().

◆ GetTitleName()

virtual QString MythPlayer::GetTitleName ( int  ) const
inlinevirtual

Reimplemented in MythBDPlayer.

Definition at line 365 of file mythplayer.h.

Referenced by TV::GetTitleName().

◆ GetNumAngles()

virtual int MythPlayer::GetNumAngles ( void  ) const
inlinevirtual

Reimplemented in MythDVDPlayer, and MythBDPlayer.

Definition at line 368 of file mythplayer.h.

Referenced by calcSliderPos(), and TV::GetNumAngles().

◆ GetCurrentAngle()

virtual int MythPlayer::GetCurrentAngle ( void  ) const
inlinevirtual

Reimplemented in MythDVDPlayer, and MythBDPlayer.

Definition at line 369 of file mythplayer.h.

Referenced by calcSliderPos(), and TV::GetCurrentAngle().

◆ GetAngleName()

virtual QString MythPlayer::GetAngleName ( int  ) const
inlinevirtual

Reimplemented in MythBDPlayer, and MythDVDPlayer.

Definition at line 370 of file mythplayer.h.

Referenced by TV::GetAngleName().

◆ GoToMenu()

virtual bool MythPlayer::GoToMenu ( const QString &  )
inlinevirtual

Reimplemented in MythDVDPlayer, and MythBDPlayer.

Definition at line 373 of file mythplayer.h.

Referenced by TV::ActivePostQHandleAction(), and TV::OSDDialogEvent().

◆ GoToDVDProgram()

virtual void MythPlayer::GoToDVDProgram ( bool  direction)
inlinevirtual

Reimplemented in MythDVDPlayer.

Definition at line 374 of file mythplayer.h.

Referenced by TV::DVDJumpBack(), and TV::DVDJumpForward().

◆ IsInStillFrame()

virtual bool MythPlayer::IsInStillFrame ( void  ) const
inlinevirtual

Reimplemented in MythDVDPlayer.

Definition at line 375 of file mythplayer.h.

Referenced by UnpauseDecoder().

◆ PosMapFromEnc()

bool MythPlayer::PosMapFromEnc ( uint64_t  start,
frm_pos_map_t posMap,
frm_pos_map_t durMap 
)

Definition at line 5424 of file mythplayer.cpp.

Referenced by DecoderBase::PosMapFromEnc().

◆ TryLockOSD()

bool MythPlayer::TryLockOSD ( void  )
inline

Definition at line 383 of file mythplayer.h.

◆ LockOSD()

void MythPlayer::LockOSD ( void  )
inline

Definition at line 384 of file mythplayer.h.

Referenced by PlayerContext::LockOSD().

◆ UnlockOSD()

void MythPlayer::UnlockOSD ( void  )
inline

Definition at line 385 of file mythplayer.h.

Referenced by PlayerContext::UnlockOSD().

◆ ToggleNightMode()

void MythPlayer::ToggleNightMode ( void  )

Definition at line 5482 of file mythplayer.cpp.

Referenced by TV::DoToggleNightMode().

◆ CanVisualise()

bool MythPlayer::CanVisualise ( void  )

Definition at line 5523 of file mythplayer.cpp.

Referenced by AutoVisualise(), TV::EnableVisualisation(), and TV::PlaybackMenuInit().

◆ IsVisualising()

bool MythPlayer::IsVisualising ( void  )

Definition at line 5531 of file mythplayer.cpp.

Referenced by AutoVisualise(), and TV::EnableVisualisation().

◆ GetVisualiserName()

QString MythPlayer::GetVisualiserName ( void  )

Definition at line 5538 of file mythplayer.cpp.

Referenced by TV::EnableVisualisation(), and TV::PlaybackMenuInit().

◆ GetVisualiserList()

QStringList MythPlayer::GetVisualiserList ( void  )

Definition at line 5545 of file mythplayer.cpp.

Referenced by TV::PlaybackMenuInit().

◆ EnableVisualisation()

bool MythPlayer::EnableVisualisation ( bool  enable,
const QString &  name = QString("") 
)

Definition at line 5552 of file mythplayer.cpp.

Referenced by AutoVisualise(), and TV::EnableVisualisation().

◆ AutoVisualise()

void MythPlayer::AutoVisualise ( void  )

Enable visualisation if possible, there is no video and user has requested.

Definition at line 5561 of file mythplayer.cpp.

Referenced by ReinitVideo(), and VideoStart().

◆ SaveTotalDuration()

void MythPlayer::SaveTotalDuration ( void  )

Definition at line 5598 of file mythplayer.cpp.

Referenced by DoFlagCommercials(), and CommDetector2::go().

◆ ResetTotalDuration()

void MythPlayer::ResetTotalDuration ( void  )

Definition at line 5606 of file mythplayer.cpp.

Referenced by CommDetector2::go(), and ClassicCommDetector::go().

◆ SaveTotalFrames()

void MythPlayer::SaveTotalFrames ( void  )

Definition at line 5614 of file mythplayer.cpp.

◆ SetErrored()

void MythPlayer::SetErrored ( const QString &  reason)

◆ OpenDummy()

void MythPlayer::OpenDummy ( void  )
protected

Definition at line 754 of file mythplayer.cpp.

Referenced by JumpToProgram(), OpenFile(), and SwitchToProgram().

◆ SetBookmark()

void MythPlayer::SetBookmark ( bool  clear = false)
protectedvirtual

Reimplemented in MythDVDPlayer, and MythBDPlayer.

Definition at line 3603 of file mythplayer.cpp.

Referenced by InitialSeek(), and TV::SetBookmark().

◆ AddPIPPlayer()

bool MythPlayer::AddPIPPlayer ( MythPlayer pip,
PIPLocation  loc 
)
protected

Definition at line 3440 of file mythplayer.cpp.

Referenced by TV::PIPAddPlayer().

◆ RemovePIPPlayer()

bool MythPlayer::RemovePIPPlayer ( MythPlayer pip)
protected

Definition at line 3465 of file mythplayer.cpp.

Referenced by TV::PIPRemovePlayer().

◆ NextScanOverride()

FrameScanType MythPlayer::NextScanOverride ( void  )
protected

Definition at line 610 of file mythplayer.cpp.

Referenced by TV::ActiveHandleAction().

◆ SetScanOverride()

void MythPlayer::SetScanOverride ( FrameScanType  Scan)
protected

Definition at line 618 of file mythplayer.cpp.

◆ SetScanType()

void MythPlayer::SetScanType ( FrameScanType  Scan)
protected

◆ GetScanType()

FrameScanType MythPlayer::GetScanType ( void  ) const
protected

Definition at line 631 of file mythplayer.cpp.

Referenced by TV::MenuItemDisplayPlayback().

◆ Zoom()

void MythPlayer::Zoom ( ZoomDirection  direction)
protected

Definition at line 4400 of file mythplayer.cpp.

Referenced by TV::ManualZoomHandleAction().

◆ ToggleMoveBottomLine()

void MythPlayer::ToggleMoveBottomLine ( void  )
protected

Definition at line 4409 of file mythplayer.cpp.

Referenced by TV::ToggleMoveBottomLine().

◆ SaveBottomLine()

void MythPlayer::SaveBottomLine ( void  )
protected

Definition at line 4418 of file mythplayer.cpp.

Referenced by TV::SaveBottomLine().

◆ FileChanged()

void MythPlayer::FileChanged ( void  )
protected

Definition at line 2558 of file mythplayer.cpp.

Referenced by EventLoop().

◆ EmbedInWidget()

void MythPlayer::EmbedInWidget ( QRect  rect)
protected

Definition at line 1064 of file mythplayer.cpp.

Referenced by PlayerContext::CreatePlayer(), and PlayerContext::StartEmbedding().

◆ StopEmbedding()

void MythPlayer::StopEmbedding ( void  )
protected

Definition at line 1075 of file mythplayer.cpp.

Referenced by PlayerContext::StopEmbedding().

◆ IsEmbedding()

bool MythPlayer::IsEmbedding ( void  )
protected

◆ WindowResized()

void MythPlayer::WindowResized ( const QSize &  new_size)
protected

Definition at line 1089 of file mythplayer.cpp.

Referenced by TV::event().

◆ AdjustVolume()

uint MythPlayer::AdjustVolume ( int  change)
inlineprotected

Definition at line 437 of file mythplayer.h.

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

◆ SetVolume()

uint MythPlayer::SetVolume ( int  newvolume)
inlineprotected

Definition at line 438 of file mythplayer.h.

Referenced by TV::ChangeVolume().

◆ SetMuted()

bool MythPlayer::SetMuted ( bool  mute)
inlineprotected

◆ SetMuteState()

MuteState MythPlayer::SetMuteState ( MuteState  state)
inlineprotected

Definition at line 440 of file mythplayer.h.

Referenced by TV::RestartAllPlayers().

◆ IncrMuteState()

MuteState MythPlayer::IncrMuteState ( void  )
inlineprotected

Definition at line 441 of file mythplayer.h.

Referenced by TV::ToggleMute().

◆ GetOSD()

OSD* MythPlayer::GetOSD ( void  )
inlineprotected

Definition at line 444 of file mythplayer.h.

Referenced by TV::GetOSDL().

◆ SeekForScreenGrab()

void MythPlayer::SeekForScreenGrab ( uint64_t &  number,
uint64_t  frameNum,
bool  absolute 
)
protectedvirtual

Reimplemented in MythBDPlayer, and MythDVDPlayer.

Definition at line 4554 of file mythplayer.cpp.

Referenced by GetScreenGrabAtFrame().

◆ CalcMaxFFTime()

long long MythPlayer::CalcMaxFFTime ( long long  ffframes,
bool  setjump = true 
) const
protectedvirtual

CalcMaxFFTime(ffframes): forward ffframes forward.

Handle livetv transitions if necessay

Reimplemented in MythDVDPlayer.

Definition at line 3766 of file mythplayer.cpp.

Referenced by MythDVDPlayer::CalcMaxFFTime(), DecoderGetFrameFFREW(), EventLoop(), FastForward(), and JumpToFrame().

◆ CalcRWTime()

long long MythPlayer::CalcRWTime ( long long  rw) const
protected

CalcRWTime(rw): rewind rw frames back.

Handle livetv transitions if necessary

Definition at line 3747 of file mythplayer.cpp.

Referenced by DecoderGetFrameFFREW(), EventLoop(), and Rewind().

◆ calcSliderPos()

void MythPlayer::calcSliderPos ( osdInfo info,
bool  paddedFields = false 
)
protectedvirtual

Definition at line 4940 of file mythplayer.cpp.

Referenced by PlayerContext::CalcPlayerSliderPosition(), and SetOSDStatus().

◆ TranslatePositionFrameToMs()

uint64_t MythPlayer::TranslatePositionFrameToMs ( uint64_t  position,
bool  use_cutlist 
) const
protected

Definition at line 5108 of file mythplayer.cpp.

Referenced by AVSync(), FindFrame(), GetSecondsPlayed(), and GetTotalSeconds().

◆ TranslatePositionMsToFrame()

uint64_t MythPlayer::TranslatePositionMsToFrame ( uint64_t  position,
bool  use_cutlist 
) const
inlineprotected

Definition at line 454 of file mythplayer.h.

Referenced by CalcMaxFFTime(), FastForward(), FindFrame(), JumpToProgram(), and Rewind().

◆ TranslatePositionAbsToRel()

uint64_t MythPlayer::TranslatePositionAbsToRel ( uint64_t  position) const
inlineprotected

Definition at line 463 of file mythplayer.h.

Referenced by TV::SeekHandleAction().

◆ TranslatePositionRelToAbs()

uint64_t MythPlayer::TranslatePositionRelToAbs ( uint64_t  position) const
inlineprotected

Definition at line 466 of file mythplayer.h.

Referenced by TV::SeekHandleAction().

◆ ComputeSecs()

float MythPlayer::ComputeSecs ( uint64_t  position,
bool  use_cutlist 
) const
inlineprotected

◆ FindFrame()

uint64_t MythPlayer::FindFrame ( float  offset,
bool  use_cutlist 
) const
protected

Definition at line 4894 of file mythplayer.cpp.

Referenced by DoFastForwardSecs(), DoRewindSecs(), FastForward(), and Rewind().

◆ SetAutoCommercialSkip()

void MythPlayer::SetAutoCommercialSkip ( CommSkipMode  autoskip)
inlineprotected

Definition at line 475 of file mythplayer.h.

Referenced by TV::SetAutoCommercialSkip().

◆ SkipCommercials()

void MythPlayer::SkipCommercials ( int  direction)
inlineprotected

Definition at line 477 of file mythplayer.h.

Referenced by TV::DoSkipCommercials().

◆ SetCommBreakMap()

void MythPlayer::SetCommBreakMap ( frm_dir_map_t newMap)
protected

Definition at line 4807 of file mythplayer.cpp.

Referenced by TV::customEvent().

◆ GetAutoCommercialSkip()

CommSkipMode MythPlayer::GetAutoCommercialSkip ( void  )
inlineprotected

Definition at line 480 of file mythplayer.h.

Referenced by TV::PlaybackMenuInit(), and TV::SetAutoCommercialSkip().

◆ ToggleAspectOverride()

void MythPlayer::ToggleAspectOverride ( AspectOverrideMode  aspectMode = kAspect_Toggle)
protected

Definition at line 4381 of file mythplayer.cpp.

Referenced by TV::ToggleAspectOverride().

◆ ToggleAdjustFill()

void MythPlayer::ToggleAdjustFill ( AdjustFillMode  adjustfillMode = kAdjustFill_Toggle)
protected

Definition at line 4390 of file mythplayer.cpp.

Referenced by TV::ToggleAdjustFill().

◆ StartPlaying()

bool MythPlayer::StartPlaying ( void  )
protectedvirtual

Definition at line 2722 of file mythplayer.cpp.

Referenced by PlayerContext::StartPlaying().

◆ ResetPlaying()

void MythPlayer::ResetPlaying ( bool  resetframes = true)
protectedvirtual

Reimplemented in MythDVDPlayer.

Definition at line 2413 of file mythplayer.cpp.

Referenced by JumpToProgram(), MythDVDPlayer::ResetPlaying(), and SwitchToProgram().

◆ EndPlaying()

virtual void MythPlayer::EndPlaying ( void  )
inlineprotectedvirtual

Definition at line 490 of file mythplayer.h.

◆ StopPlaying()

void MythPlayer::StopPlaying ( void  )
protectedvirtual

Definition at line 2772 of file mythplayer.cpp.

Referenced by PlayerContext::StopPlaying().

◆ PauseDecoder()

bool MythPlayer::PauseDecoder ( void  )
protected

◆ UnpauseDecoder()

void MythPlayer::UnpauseDecoder ( void  )
protected

Definition at line 3138 of file mythplayer.cpp.

Referenced by DecoderPauseCheck(), Play(), and StartPlaying().

◆ Pause()

bool MythPlayer::Pause ( void  )
protected

◆ Play()

bool MythPlayer::Play ( float  speed = 1.0,
bool  normal = true,
bool  unpauseaudio = true 
)
protected

◆ FastForward()

bool MythPlayer::FastForward ( float  seconds)
protectedvirtual

Reimplemented in MythDVDPlayer.

Definition at line 2339 of file mythplayer.cpp.

Referenced by TV::DoPlayerSeek(), and MythDVDPlayer::FastForward().

◆ Rewind()

bool MythPlayer::Rewind ( float  seconds)
protectedvirtual

Reimplemented in MythDVDPlayer.

Definition at line 2364 of file mythplayer.cpp.

Referenced by TV::DoPlayerSeek(), and MythDVDPlayer::Rewind().

◆ JumpToFrame()

bool MythPlayer::JumpToFrame ( uint64_t  frame)
protectedvirtual

◆ JumpChapter()

void MythPlayer::JumpChapter ( int  chapter)
protected

Definition at line 2407 of file mythplayer.cpp.

Referenced by TV::DoJumpChapter().

◆ PrebufferEnoughFrames()

bool MythPlayer::PrebufferEnoughFrames ( int  min_buffers = 0)
protectedvirtual

Reimplemented in MythDVDPlayer.

Definition at line 1971 of file mythplayer.cpp.

Referenced by DisplayNormalFrame(), and MythDVDPlayer::PrebufferEnoughFrames().

◆ SetBuffering()

void MythPlayer::SetBuffering ( bool  new_buffering)
protected

◆ RefreshPauseFrame()

void MythPlayer::RefreshPauseFrame ( void  )
protected

Definition at line 1902 of file mythplayer.cpp.

Referenced by DisplayPauseFrame().

◆ CheckAspectRatio()

void MythPlayer::CheckAspectRatio ( VideoFrame frame)
protected

Definition at line 2084 of file mythplayer.cpp.

Referenced by DisplayNormalFrame(), and ReleaseNextVideoFrame().

◆ DisplayPauseFrame()

void MythPlayer::DisplayPauseFrame ( void  )
protectedvirtual

◆ DisplayNormalFrame()

void MythPlayer::DisplayNormalFrame ( bool  check_prebuffer = true)
protectedvirtual

Definition at line 2103 of file mythplayer.cpp.

Referenced by MythDVDPlayer::VideoLoop(), MythBDPlayer::VideoLoop(), and VideoLoop().

◆ PreProcessNormalFrame()

void MythPlayer::PreProcessNormalFrame ( void  )
protectedvirtual

Reimplemented in MythBDPlayer, and MythDVDPlayer.

Definition at line 2159 of file mythplayer.cpp.

Referenced by DisplayNormalFrame(), and DisplayPauseFrame().

◆ VideoStart()

void MythPlayer::VideoStart ( void  )
protectedvirtual

Reimplemented in MythBDPlayer, and MythDVDPlayer.

Definition at line 2214 of file mythplayer.cpp.

Referenced by StartPlaying(), MythDVDPlayer::VideoStart(), and MythBDPlayer::VideoStart().

◆ VideoLoop()

bool MythPlayer::VideoLoop ( void  )
protectedvirtual

Reimplemented in MythBDPlayer, and MythDVDPlayer.

Definition at line 2296 of file mythplayer.cpp.

Referenced by TV::PlaybackLoop(), MythDVDPlayer::VideoLoop(), and MythBDPlayer::VideoLoop().

◆ VideoEnd()

void MythPlayer::VideoEnd ( void  )
protectedvirtual

Definition at line 2327 of file mythplayer.cpp.

Referenced by StopPlaying().

◆ DecoderStart()

void MythPlayer::DecoderStart ( bool  start_paused)
protectedvirtual

◆ DecoderLoop()

void MythPlayer::DecoderLoop ( bool  pause)
protectedvirtual

Definition at line 3247 of file mythplayer.cpp.

◆ DecoderEnd()

void MythPlayer::DecoderEnd ( void  )
protectedvirtual

Definition at line 3183 of file mythplayer.cpp.

Referenced by StopPlaying().

◆ DecoderPauseCheck()

void MythPlayer::DecoderPauseCheck ( void  )
protectedvirtual

Reimplemented in MythDVDPlayer.

Definition at line 3204 of file mythplayer.cpp.

Referenced by DecoderLoop(), MythDVDPlayer::DecoderPauseCheck(), and Pause().

◆ AudioEnd()

void MythPlayer::AudioEnd ( void  )
protectedvirtual

Definition at line 3070 of file mythplayer.cpp.

Referenced by StopPlaying().

◆ EventStart()

void MythPlayer::EventStart ( void  )
protectedvirtual

Reimplemented in MythBDPlayer, and MythDVDPlayer.

Definition at line 2788 of file mythplayer.cpp.

Referenced by MythDVDPlayer::EventStart(), MythBDPlayer::EventStart(), and StartPlaying().

◆ EventLoop()

void MythPlayer::EventLoop ( void  )
protectedvirtual

Definition at line 2806 of file mythplayer.cpp.

Referenced by TV::PlaybackLoop().

◆ InitialSeek()

void MythPlayer::InitialSeek ( void  )
protectedvirtual

Reimplemented in MythDVDPlayer.

Definition at line 2760 of file mythplayer.cpp.

Referenced by MythDVDPlayer::InitialSeek(), and StartPlaying().

◆ ITVHandleAction()

bool MythPlayer::ITVHandleAction ( const QString &  action)
protected

Definition at line 5202 of file mythplayer.cpp.

Referenced by TV::ProcessKeypressOrGesture().

◆ ITVRestart()

void MythPlayer::ITVRestart ( uint  chanid,
uint  cardid,
bool  isLiveTV 
)
protected

Restart the MHEG/MHP engine.

Definition at line 5222 of file mythplayer.cpp.

Referenced by TV::ITVRestart().

◆ EnableEdit()

bool MythPlayer::EnableEdit ( void  )
protected

Definition at line 4075 of file mythplayer.cpp.

Referenced by TV::HandleOSDAlreadyEditing(), and TV::StartProgramEditMode().

◆ HandleProgramEditorActions()

bool MythPlayer::HandleProgramEditorActions ( QStringList &  actions)
protected

Definition at line 4164 of file mythplayer.cpp.

Referenced by TV::HandleOSDCutpoint(), and TV::ProcessKeypressOrGesture().

◆ GetEditMode()

bool MythPlayer::GetEditMode ( void  ) const
inlineprotected

◆ DisableEdit()

void MythPlayer::DisableEdit ( int  howToSave)
protected

Leave cutlist edit mode, saving work in 1 of 3 ways.

Parameters
howToSaveIf 1, save all changes. If 0, discard all changes. If -1, do not explicitly save changes but leave auto-save information intact in the database.

Definition at line 4135 of file mythplayer.cpp.

Referenced by TV::customEvent(), HandleProgramEditorActions(), and TV::ProcessKeypressOrGesture().

◆ IsInDelete()

bool MythPlayer::IsInDelete ( uint64_t  frame)
protected

◆ GetNearestMark()

uint64_t MythPlayer::GetNearestMark ( uint64_t  frame,
bool  right 
)
protected

Definition at line 4333 of file mythplayer.cpp.

Referenced by TV::MenuItemDisplayCutlist().

◆ IsTemporaryMark()

bool MythPlayer::IsTemporaryMark ( uint64_t  frame)
protected

Definition at line 4338 of file mythplayer.cpp.

Referenced by TV::MenuItemDisplayCutlist().

◆ HasTemporaryMark()

bool MythPlayer::HasTemporaryMark ( void  )
protected

Definition at line 4343 of file mythplayer.cpp.

Referenced by TV::ProcessKeypressOrGesture().

◆ IsCutListSaved()

bool MythPlayer::IsCutListSaved ( void  )
inlineprotected

Definition at line 540 of file mythplayer.h.

Referenced by TV::ProcessKeypressOrGesture().

◆ DeleteMapHasUndo()

bool MythPlayer::DeleteMapHasUndo ( void  )
inlineprotected

Definition at line 541 of file mythplayer.h.

Referenced by TV::MenuItemDisplayCutlist().

◆ DeleteMapHasRedo()

bool MythPlayer::DeleteMapHasRedo ( void  )
inlineprotected

Definition at line 542 of file mythplayer.h.

Referenced by TV::MenuItemDisplayCutlist().

◆ DeleteMapGetUndoMessage()

QString MythPlayer::DeleteMapGetUndoMessage ( void  )
inlineprotected

Definition at line 543 of file mythplayer.h.

Referenced by TV::MenuItemDisplayCutlist().

◆ DeleteMapGetRedoMessage()

QString MythPlayer::DeleteMapGetRedoMessage ( void  )
inlineprotected

Definition at line 544 of file mythplayer.h.

Referenced by TV::MenuItemDisplayCutlist().

◆ ReinitOSD()

void MythPlayer::ReinitOSD ( void  )
protected

◆ SetOSDMessage()

void MythPlayer::SetOSDMessage ( const QString &  msg,
OSDTimeout  timeout 
)
protected

◆ SetOSDStatus()

void MythPlayer::SetOSDStatus ( const QString &  title,
OSDTimeout  timeout 
)
protected

Definition at line 5585 of file mythplayer.cpp.

Referenced by DisableEdit(), EnableEdit(), and EventLoop().

◆ ResetCaptions()

void MythPlayer::ResetCaptions ( void  )
protected

◆ ToggleCaptions() [1/2]

bool MythPlayer::ToggleCaptions ( void  )
protected

Definition at line 1279 of file mythplayer.cpp.

Referenced by TV::HandleTrackAction(), and ReinitOSD().

◆ ToggleCaptions() [2/2]

bool MythPlayer::ToggleCaptions ( uint  type)
protected

Definition at line 1285 of file mythplayer.cpp.

◆ HasTextSubtitles()

bool MythPlayer::HasTextSubtitles ( void  )
inlineprotected

Definition at line 557 of file mythplayer.h.

Referenced by TV::GetStatus(), HasCaptionTrack(), and TV::PlaybackMenuInit().

◆ SetCaptionsEnabled()

void MythPlayer::SetCaptionsEnabled ( bool  enable,
bool  osd_msg = true 
)
protected

◆ GetCaptionsEnabled()

bool MythPlayer::GetCaptionsEnabled ( void  )
protected

◆ DisableCaptions()

void MythPlayer::DisableCaptions ( uint  mode,
bool  osd_msg = true 
)
protectedvirtual

◆ EnableCaptions()

void MythPlayer::EnableCaptions ( uint  mode,
bool  osd_msg = true 
)
protectedvirtual

◆ GetTracks()

QStringList MythPlayer::GetTracks ( uint  type)
protected

◆ GetTrackCount()

uint MythPlayer::GetTrackCount ( uint  type)
protected

Definition at line 1359 of file mythplayer.cpp.

Referenced by TV::PlaybackMenuInit().

◆ SetTrack()

int MythPlayer::SetTrack ( uint  type,
int  trackNo 
)
protectedvirtual

◆ GetTrack()

int MythPlayer::GetTrack ( uint  type)
protected

◆ ChangeTrack()

int MythPlayer::ChangeTrack ( uint  type,
int  dir 
)
protected

Definition at line 1467 of file mythplayer.cpp.

Referenced by TV::HandleTrackAction().

◆ ChangeCaptionTrack()

void MythPlayer::ChangeCaptionTrack ( int  dir)
protected

Definition at line 1482 of file mythplayer.cpp.

Referenced by TV::HandleTrackAction().

◆ HasCaptionTrack()

bool MythPlayer::HasCaptionTrack ( int  mode)
protected

Definition at line 1519 of file mythplayer.cpp.

Referenced by NextCaptionTrack(), and SetCaptionsEnabled().

◆ NextCaptionTrack()

int MythPlayer::NextCaptionTrack ( int  mode)
protected

Definition at line 1536 of file mythplayer.cpp.

Referenced by ChangeCaptionTrack(), and SetCaptionsEnabled().

◆ DoDisableForcedSubtitles()

void MythPlayer::DoDisableForcedSubtitles ( void  )
protected

Definition at line 1439 of file mythplayer.cpp.

Referenced by EventLoop().

◆ DoEnableForcedSubtitles()

void MythPlayer::DoEnableForcedSubtitles ( void  )
protected

Definition at line 1448 of file mythplayer.cpp.

Referenced by EventLoop().

◆ EnableTeletext()

void MythPlayer::EnableTeletext ( int  page = 0x100)
protected

Definition at line 1096 of file mythplayer.cpp.

Referenced by EnableCaptions(), and TV::HandleTrackAction().

◆ DisableTeletext()

void MythPlayer::DisableTeletext ( void  )
protected

Definition at line 1107 of file mythplayer.cpp.

Referenced by DisableCaptions(), and HandleTeletextAction().

◆ ResetTeletext()

void MythPlayer::ResetTeletext ( void  )
protected

Definition at line 1122 of file mythplayer.cpp.

Referenced by TV::ChangeChannel().

◆ HandleTeletextAction()

bool MythPlayer::HandleTeletextAction ( const QString &  action)
protected

Definition at line 1145 of file mythplayer.cpp.

Referenced by TV::ProcessKeypressOrGesture().

◆ SetTeletextPage()

void MythPlayer::SetTeletextPage ( uint  page)
protected

Set Teletext NUV Caption page.

Definition at line 1134 of file mythplayer.cpp.

Referenced by TV::HandleTrackAction().

◆ AdjustAudioTimecodeOffset()

int64_t MythPlayer::AdjustAudioTimecodeOffset ( int64_t  v,
int  newsync = -9999 
)
protected

Definition at line 3503 of file mythplayer.cpp.

Referenced by TV::ChangeAudioSync(), and PlayerContext::CreatePlayer().

◆ GetAudioTimecodeOffset()

int64_t MythPlayer::GetAudioTimecodeOffset ( void  ) const
inlineprotected

Definition at line 586 of file mythplayer.h.

Referenced by TV::GetStatus(), and TV::HandleOSDClosed().

◆ detectInterlace()

FrameScanType MythPlayer::detectInterlace ( FrameScanType  newScan,
FrameScanType  scan,
float  fps,
int  video_height 
)
protected

Definition at line 493 of file mythplayer.cpp.

Referenced by SetVideoParams().

◆ AutoDeint()

void MythPlayer::AutoDeint ( VideoFrame frame,
bool  allow_lock = true 
)
protectedvirtual

Check whether deinterlacing should be enabled.

If the user has triggered an override, this will always be used (until 'detect' is requested to turn it off again).

For H264 material, the decoder will signal when the current frame is on a new GOP boundary and if the frame's interlaced flag does not match the current scan type, the scan type is unlocked. This works well for all test clips with mixed progressive/interlaced sequences.

For all other material, we lock the scan type to interlaced when interlaced frames are seen - and do not unlock if we see progressive frames. This is primarily targetted at MPEG2 material where there is a lot of content where the scan type changes frequently - and for no obvious reason. This will result in 'false positives' in some cases but there is no clear approach that works for all cases. The previous behaviour is preserved (i.e. lock to interlaced if interlaced frames are seen) which results in less erratic playback (as the deinterlacers are not continually switched on and off) and correctly deinterlaces material that is not otherwise flagged correctly.

Reimplemented in MythDVDPlayer.

Definition at line 546 of file mythplayer.cpp.

Referenced by MythDVDPlayer::AutoDeint(), and DisplayNormalFrame().

◆ SetPlayingInfo()

void MythPlayer::SetPlayingInfo ( const ProgramInfo pginfo)
protected

Definition at line 325 of file mythplayer.cpp.

Referenced by JumpToProgram(), JumpToStream(), and SwitchToProgram().

◆ SetPlaying()

void MythPlayer::SetPlaying ( bool  is_playing)
protected

◆ ResetErrored()

void MythPlayer::ResetErrored ( void  )
protected

Definition at line 5463 of file mythplayer.cpp.

Referenced by TV::HandleStateChange().

◆ GetStatusbarPos()

int MythPlayer::GetStatusbarPos ( void  ) const
protected

Definition at line 4813 of file mythplayer.cpp.

◆ PauseVideo()

void MythPlayer::PauseVideo ( void  )
protected

Definition at line 310 of file mythplayer.cpp.

Referenced by Pause(), MythDVDPlayer::VideoLoop(), and MythBDPlayer::VideoLoop().

◆ UnpauseVideo()

void MythPlayer::UnpauseVideo ( void  )
protected

Definition at line 318 of file mythplayer.cpp.

Referenced by Play(), MythDVDPlayer::VideoLoop(), and MythBDPlayer::VideoLoop().

◆ PauseBuffer()

void MythPlayer::PauseBuffer ( void  )
protected

Definition at line 227 of file mythplayer.cpp.

Referenced by Pause().

◆ UnpauseBuffer()

void MythPlayer::UnpauseBuffer ( void  )
protected

Definition at line 239 of file mythplayer.cpp.

Referenced by OpenFile(), and Play().

◆ CreateDecoder()

void MythPlayer::CreateDecoder ( char *  TestBuffer,
int  TestSize 
)
protectedvirtual

Reimplemented in MythDVDPlayer, and MythBDPlayer.

Definition at line 770 of file mythplayer.cpp.

Referenced by OpenFile().

◆ SetDecoder()

void MythPlayer::SetDecoder ( DecoderBase dec)
protected

Sets the stream decoder, deleting any existing recorder.

Definition at line 5406 of file mythplayer.cpp.

Referenced by MythBDPlayer::CreateDecoder(), MythDVDPlayer::CreateDecoder(), CreateDecoder(), DecoderEnd(), OpenDummy(), OpenFile(), and ~MythPlayer().

◆ GetDecoder() [2/2]

const DecoderBase* MythPlayer::GetDecoder ( void  ) const
inlineprotected

Returns the stream decoder currently in use.

Definition at line 616 of file mythplayer.h.

◆ DecodeFrame()

bool MythPlayer::DecodeFrame ( struct rtframeheader frameheader,
unsigned char *  strm,
unsigned char *  outbuf 
)
protected

◆ DecoderGetFrameFFREW()

bool MythPlayer::DecoderGetFrameFFREW ( void  )
protectedvirtual

Reimplemented in MythDVDPlayer.

Definition at line 3312 of file mythplayer.cpp.

Referenced by DecoderGetFrame(), and MythDVDPlayer::DecoderGetFrameFFREW().

◆ DecoderGetFrameREW()

bool MythPlayer::DecoderGetFrameREW ( void  )
protectedvirtual

Reimplemented in MythDVDPlayer.

Definition at line 3336 of file mythplayer.cpp.

Referenced by DecoderGetFrameFFREW(), and MythDVDPlayer::DecoderGetFrameREW().

◆ DecoderGetFrame()

bool MythPlayer::DecoderGetFrame ( DecodeType  decodetype,
bool  unsafe = false 
)
protected

Definition at line 3348 of file mythplayer.cpp.

Referenced by DecoderLoop(), and MythCCExtractorPlayer::run().

◆ DoGetFrame()

bool MythPlayer::DoGetFrame ( DecodeType  Type)
protected

Get one frame from the decoder.

Certain decoders operate asynchronously and will return EAGAIN if a video frame is not yet ready. We handle the retries here in MythPlayer so that we can abort retries if we need to pause or stop the decoder.

This is most relevant for MediaCodec decoding when using direct rendering as there are a limited number of decoder output buffers that are retained by the VideoOutput classes (VideoOutput and VideoBuffers) until they have been used.

Note
The caller must hold m_decoderChangeLock.

Definition at line 3408 of file mythplayer.cpp.

Referenced by DecoderGetFrame(), DecoderGetFrameFFREW(), and TranscodeGetNextFrame().

◆ UpdateFFRewSkip()

bool MythPlayer::UpdateFFRewSkip ( void  )
protected

Definition at line 3636 of file mythplayer.cpp.

Referenced by ChangeSpeed(), DisplayNormalFrame(), and SetVideoParams().

◆ ChangeSpeed()

void MythPlayer::ChangeSpeed ( void  )
protectedvirtual

◆ DoFastForward()

bool MythPlayer::DoFastForward ( uint64_t  frames,
double  inaccuracy 
)
protected

◆ DoRewind()

bool MythPlayer::DoRewind ( uint64_t  frames,
double  inaccuracy 
)
protected

◆ DoFastForwardSecs()

bool MythPlayer::DoFastForwardSecs ( float  secs,
double  inaccuracy,
bool  use_cutlist 
)
protected

Definition at line 3926 of file mythplayer.cpp.

Referenced by HandleProgramEditorActions().

◆ DoRewindSecs()

bool MythPlayer::DoRewindSecs ( float  secs,
double  inaccuracy,
bool  use_cutlist 
)
protected

Definition at line 3732 of file mythplayer.cpp.

Referenced by HandleProgramEditorActions().

◆ DoJumpToFrame()

void MythPlayer::DoJumpToFrame ( uint64_t  frame,
double  inaccuracy 
)
protected

◆ WaitForSeek()

void MythPlayer::WaitForSeek ( uint64_t  frame,
uint64_t  seeksnap_wanted 
)
protected

Definition at line 3943 of file mythplayer.cpp.

Referenced by DoFastForward(), DoRewind(), and TranscodeGetNextFrame().

◆ ClearAfterSeek()

void MythPlayer::ClearAfterSeek ( bool  clearvideobuffers = true)
protected

This is to support seeking...

This resets the output classes and discards all frames no longer being used by the decoder class.

Note: caller should not hold any locks

Parameters
clearvideobuffersThis clears the videooutput buffers as well, this is only safe if no old frames are required to continue decoding.

Definition at line 4011 of file mythplayer.cpp.

Referenced by DoFastForward(), MythDVDPlayer::DoJumpChapter(), DoRewind(), GetRawVideoFrame(), GetScreenGrabAtFrame(), InitForTranscode(), ReinitVideo(), ResetPlaying(), MythCCExtractorPlayer::run(), TranscodeGetNextFrame(), MythDVDPlayer::VideoLoop(), and VideoStart().

◆ ClearBeforeSeek()

void MythPlayer::ClearBeforeSeek ( uint64_t  Frames)
protected

Discard video frames prior to seeking.

Note
This is only used for MediaCodec surface rendering where the decoder will stall waiting for buffers if we do not free those buffers first. This is currently only an issue for recordings and livetv as the decoder is not paused before seeking when using a position map.
m_watchingRecording does not appear to be accurate - so is currently ignored.

Definition at line 4047 of file mythplayer.cpp.

Referenced by DoFastForward(), and DoRewind().

◆ DoJumpChapter()

bool MythPlayer::DoJumpChapter ( int  chapter)
protectedvirtual

Reimplemented in MythDVDPlayer.

Definition at line 5144 of file mythplayer.cpp.

Referenced by EventLoop().

◆ GetChapter()

int64_t MythPlayer::GetChapter ( int  chapter)
protectedvirtual

Reimplemented in MythBDPlayer.

Definition at line 5182 of file mythplayer.cpp.

Referenced by DoJumpChapter().

◆ HandleArbSeek()

void MythPlayer::HandleArbSeek ( bool  right)
protected

Definition at line 4348 of file mythplayer.cpp.

Referenced by HandleProgramEditorActions().

◆ WrapTimecode()

void MythPlayer::WrapTimecode ( int64_t &  timecode,
TCTypes  tc_type 
)
protected

◆ InitAVSync()

void MythPlayer::InitAVSync ( void  )
protected

Definition at line 1587 of file mythplayer.cpp.

Referenced by VideoStart().

◆ AVSync()

void MythPlayer::AVSync ( VideoFrame buffer)
protectedvirtual

Definition at line 1661 of file mythplayer.cpp.

Referenced by MythDVDPlayer::DisplayLastFrame(), and DisplayNormalFrame().

◆ PipSync()

bool MythPlayer::PipSync ( void  )
protected

Keep PiP frame rate in sync with master framerate.

This is a simple frame rate tracker. If a frame is not due, then just keep the last displayed frame. Otherwise discard frame(s) that are too old.

Definition at line 1620 of file mythplayer.cpp.

Referenced by DisplayNormalFrame().

◆ ResetAVSync()

void MythPlayer::ResetAVSync ( void  )
protected

Definition at line 1576 of file mythplayer.cpp.

Referenced by ClearAfterSeek().

◆ SetFrameInterval()

void MythPlayer::SetFrameInterval ( FrameScanType  scan,
double  frame_period 
)
protected

Definition at line 1566 of file mythplayer.cpp.

Referenced by InitAVSync(), SetFrameRate(), and SetVideoParams().

◆ WaitForTime()

void MythPlayer::WaitForTime ( int64_t  framedue)
protected

Definition at line 1607 of file mythplayer.cpp.

Referenced by AVSync().

◆ SwitchToProgram()

void MythPlayer::SwitchToProgram ( void  )
protected

Definition at line 2433 of file mythplayer.cpp.

Referenced by EventLoop().

◆ JumpToProgram()

void MythPlayer::JumpToProgram ( void  )
protected

Definition at line 2587 of file mythplayer.cpp.

Referenced by EventLoop().

◆ JumpToStream()

void MythPlayer::JumpToStream ( const QString &  stream)
protected

Definition at line 5303 of file mythplayer.cpp.

Referenced by EventLoop().

◆ syncWithAudioStretch()

void MythPlayer::syncWithAudioStretch ( )
private

Definition at line 5622 of file mythplayer.cpp.

Referenced by ChangeSpeed(), and SetDecoder().

Friends And Related Function Documentation

◆ PlayerContext

friend class PlayerContext
friend

Definition at line 163 of file mythplayer.h.

◆ CC708Reader

friend class CC708Reader
friend

Definition at line 164 of file mythplayer.h.

Referenced by MythCCExtractorPlayer::GetCC708Reader().

◆ CC608Reader

friend class CC608Reader
friend

Definition at line 165 of file mythplayer.h.

Referenced by MythCCExtractorPlayer::GetCC608Reader().

◆ DecoderThread

friend class DecoderThread
friend

Definition at line 166 of file mythplayer.h.

Referenced by DecoderStart().

◆ DetectLetterbox

friend class DetectLetterbox
friend

Definition at line 167 of file mythplayer.h.

Referenced by MythPlayer().

◆ TeletextScreen

friend class TeletextScreen
friend

Definition at line 168 of file mythplayer.h.

◆ SubtitleScreen

friend class SubtitleScreen
friend

Definition at line 169 of file mythplayer.h.

◆ InteractiveScreen

friend class InteractiveScreen
friend

Definition at line 170 of file mythplayer.h.

◆ BDOverlayScreen

friend class BDOverlayScreen
friend

Definition at line 171 of file mythplayer.h.

◆ VideoPerformanceTest

friend class VideoPerformanceTest
friend

Definition at line 172 of file mythplayer.h.

◆ TV

friend class TV
friend

Definition at line 174 of file mythplayer.h.

◆ Transcode

friend class Transcode
friend

Definition at line 175 of file mythplayer.h.

Member Data Documentation

◆ kNightModeBrightenssAdjustment

const int MythPlayer::kNightModeBrightenssAdjustment = 10
static

Definition at line 401 of file mythplayer.h.

Referenced by ToggleNightMode().

◆ kNightModeContrastAdjustment

const int MythPlayer::kNightModeContrastAdjustment = 10
static

Definition at line 402 of file mythplayer.h.

Referenced by ToggleNightMode().

◆ kInaccuracyNone

const double MythPlayer::kInaccuracyNone = 0
static

◆ kInaccuracyDefault

const double MythPlayer::kInaccuracyDefault = 0.1
static

Definition at line 404 of file mythplayer.h.

Referenced by EventLoop().

◆ kInaccuracyEditor

const double MythPlayer::kInaccuracyEditor = 0.5
static

Definition at line 405 of file mythplayer.h.

Referenced by HandleProgramEditorActions().

◆ kInaccuracyFull

const double MythPlayer::kInaccuracyFull = -1.0
static

Definition at line 406 of file mythplayer.h.

Referenced by ChangeSpeed(), DoFastForward(), DoRewind(), and HandleArbSeek().

◆ m_detectLetterBox

DetectLetterbox* MythPlayer::m_detectLetterBox
protected

◆ m_playerFlags

PlayerFlags MythPlayer::m_playerFlags
protected

◆ m_decoder

DecoderBase* MythPlayer::m_decoder {nullptr}
protected

Definition at line 663 of file mythplayer.h.

Referenced by MythDVDPlayer::AutoDeint(), calcSliderPos(), ChangeCaptionTrack(), MythDVDPlayer::ChangeSpeed(), ChangeTrack(), ClearBeforeSeek(), DecoderGetFrame(), MythDVDPlayer::DecoderGetFrameFFREW(), DecoderGetFrameFFREW(), DecoderGetFrameREW(), DecoderLoop(), DisableCaptions(), DisplayNormalFrame(), DoGetFrame(), MythDVDPlayer::DoJumpChapter(), MythDVDPlayer::EnableCaptions(), EnableCaptions(), EventLoop(), MythDVDPlayer::FastForward(), FileChanged(), ForceSetupAudioStream(), GetChapter(), GetChapterTimes(), GetCodecDescription(), GetCurrentChapter(), GetEncodingType(), GetEof(), GetNumChapters(), GetPlaybackData(), GetRawAudioState(), GetStreamPos(), GetTrack(), GetTrackCount(), GetTracks(), GetXDS(), HasCaptionTrack(), InitForTranscode(), InitVideo(), IsNearEnd(), IsReallyNearEnd(), MythDVDPlayer::JumpToFrame(), JumpToProgram(), JumpToStream(), MythCCExtractorPlayer::OnGotNewFrame(), OpenFile(), Pause(), MythCCExtractorPlayer::Process608Captions(), MythCCExtractorPlayer::Process708Captions(), MythCCExtractorPlayer::ProcessDVBSubtitles(), MythCCExtractorPlayer::ProcessTeletext(), ReinitVideo(), ResetPlaying(), ResetTotalDuration(), MythDVDPlayer::Rewind(), MythCCExtractorPlayer::run(), SaveTotalDuration(), SaveTotalFrames(), SetAudioByComponentTag(), SetDecoder(), SetDisablePassThrough(), SetEof(), SetFrameInterval(), SetStreamPos(), MythDVDPlayer::SetTrack(), SetTrack(), SetTranscoding(), SetVideoByComponentTag(), SetWatchingRecording(), SwitchToProgram(), syncWithAudioStretch(), TranscodeGetNextFrame(), UpdateFFRewSkip(), UpdateStoredFrameNum(), VideoLoop(), VideoStart(), WaitForSeek(), and WriteStoredData().

◆ m_decoderCallbackLock

QMutex MythPlayer::m_decoderCallbackLock
protected

Definition at line 664 of file mythplayer.h.

Referenced by HandleDecoderCallback(), and ProcessCallbacks().

◆ m_decoderCallbacks

QVector<DecoderCallback> MythPlayer::m_decoderCallbacks
protected

Definition at line 665 of file mythplayer.h.

Referenced by HandleDecoderCallback(), and ProcessCallbacks().

◆ m_decoderChangeLock

QMutex MythPlayer::m_decoderChangeLock {QMutex::Recursive}
mutableprotected

◆ m_videoOutput

MythVideoOutput* MythPlayer::m_videoOutput {nullptr}
protected

◆ m_playerCtx

PlayerContext* MythPlayer::m_playerCtx {nullptr}
protected

Definition at line 668 of file mythplayer.h.

Referenced by AVSync(), MythDVDPlayer::CalcMaxFFTime(), CalcMaxFFTime(), CalcRWTime(), calcSliderPos(), MythDVDPlayer::ChangeSpeed(), CheckTVChain(), MythBDPlayer::CreateDecoder(), MythDVDPlayer::CreateDecoder(), CreateDecoder(), MythDVDPlayer::DecoderGetFrameREW(), DecoderLoop(), MythDVDPlayer::DisableCaptions(), DisableEdit(), MythDVDPlayer::DisplayDVDButton(), MythBDPlayer::DisplayMenu(), DisplayNormalFrame(), MythDVDPlayer::DisplayPauseFrame(), MythBDPlayer::DisplayPauseFrame(), DoFastForward(), MythDVDPlayer::DoJumpChapter(), DoRewind(), MythDVDPlayer::EnableCaptions(), EnableEdit(), MythDVDPlayer::EventEnd(), EventLoop(), MythDVDPlayer::EventStart(), MythBDPlayer::EventStart(), EventStart(), FileChanged(), FindFrame(), MythDVDPlayer::GetBookmark(), MythBDPlayer::GetBookmark(), GetBookmark(), MythBDPlayer::GetChapter(), MythBDPlayer::GetChapterTimes(), MythDVDPlayer::GetChapterTimes(), MythBDPlayer::GetCurrentAngle(), MythDVDPlayer::GetCurrentAngle(), MythBDPlayer::GetCurrentChapter(), MythDVDPlayer::GetCurrentChapter(), GetCurrentFrameCount(), MythBDPlayer::GetCurrentTitle(), MythBDPlayer::GetNumAngles(), MythDVDPlayer::GetNumAngles(), MythBDPlayer::GetNumChapters(), MythDVDPlayer::GetNumChapters(), MythBDPlayer::GetNumTitles(), GetPlaybackData(), GetRawVideoFrame(), MythDVDPlayer::GetSecondsPlayed(), GetStatusbarPos(), MythBDPlayer::GetTitleDuration(), MythDVDPlayer::GoToDVDProgram(), MythBDPlayer::GoToMenu(), MythDVDPlayer::GoToMenu(), HasTVChainNext(), MythDVDPlayer::InitialSeek(), InitialSeek(), InitVideo(), IsNearEnd(), IsReallyNearEnd(), IsWatchingInprogress(), JumpToProgram(), JumpToStream(), MythBDPlayer::NextTitle(), OpenDummy(), OpenFile(), PauseBuffer(), PosMapFromEnc(), MythDVDPlayer::PrepareAudioSample(), MythBDPlayer::PrevTitle(), MythDVDPlayer::ReleaseNextVideoFrame(), MythCCExtractorPlayer::run(), MythDVDPlayer::SeekForScreenGrab(), SeekForScreenGrab(), MythBDPlayer::SetBookmark(), MythDVDPlayer::SetBookmark(), SetBookmark(), SetPlayerInfo(), SetPlayingInfo(), SetScanType(), SetStream(), MythDVDPlayer::SetTrack(), SetWatched(), MythDVDPlayer::StillFrameCheck(), MythDVDPlayer::SwitchAngle(), MythBDPlayer::SwitchAngle(), MythBDPlayer::SwitchTitle(), SwitchToProgram(), TranscodeGetNextFrame(), TranslatePositionFrameToMs(), UnpauseBuffer(), MythDVDPlayer::VideoLoop(), MythBDPlayer::VideoLoop(), VideoLoop(), MythDVDPlayer::VideoStart(), MythBDPlayer::VideoStart(), VideoStart(), and WaitForSeek().

◆ m_decoderThread

DecoderThread* MythPlayer::m_decoderThread {nullptr}
protected

◆ m_playerThread

QThread* MythPlayer::m_playerThread {nullptr}
protected

◆ m_display

MythDisplay* MythPlayer::m_display {nullptr}
protected

Definition at line 677 of file mythplayer.h.

Referenced by CanSupportDoubleRate(), InitAVSync(), and ~MythPlayer().

◆ m_parentWidget

QWidget* MythPlayer::m_parentWidget {nullptr}
protected

Definition at line 678 of file mythplayer.h.

Referenced by InitVideo(), and SetPlayerInfo().

◆ m_embedding

bool MythPlayer::m_embedding {false}
protected

Definition at line 679 of file mythplayer.h.

Referenced by EmbedInWidget(), InitVideo(), and StopEmbedding().

◆ m_embedRect

QRect MythPlayer::m_embedRect {0,0,0,0}
protected

Definition at line 680 of file mythplayer.h.

Referenced by EmbedInWidget(), InitVideo(), and StopEmbedding().

◆ m_decoderThreadPause

QWaitCondition MythPlayer::m_decoderThreadPause
protected

Definition at line 683 of file mythplayer.h.

Referenced by PauseDecoder().

◆ m_decoderThreadUnpause

QWaitCondition MythPlayer::m_decoderThreadUnpause
protected

Definition at line 684 of file mythplayer.h.

Referenced by UnpauseDecoder().

◆ m_decoderPauseLock

QMutex MythPlayer::m_decoderPauseLock
mutableprotected

Definition at line 685 of file mythplayer.h.

Referenced by PauseDecoder(), and UnpauseDecoder().

◆ m_decoderSeekLock

QMutex MythPlayer::m_decoderSeekLock
mutableprotected

Definition at line 686 of file mythplayer.h.

Referenced by DecoderLoop(), and WaitForSeek().

◆ m_totalDecoderPause

bool MythPlayer::m_totalDecoderPause {false}
protected

Definition at line 687 of file mythplayer.h.

Referenced by DecoderLoop(), and SetDecoder().

◆ m_decoderPaused

bool MythPlayer::m_decoderPaused {false}
protected

Definition at line 688 of file mythplayer.h.

Referenced by DecoderLoop(), DecoderStart(), Pause(), PauseDecoder(), and UnpauseDecoder().

◆ m_inJumpToProgramPause

bool MythPlayer::m_inJumpToProgramPause {false}
protected

Definition at line 689 of file mythplayer.h.

Referenced by DecoderLoop(), and JumpToProgram().

◆ m_pauseDecoder

bool MythPlayer::m_pauseDecoder {false}
protected

Definition at line 690 of file mythplayer.h.

Referenced by DecoderGetFrame(), DecoderPauseCheck(), DoGetFrame(), and PauseDecoder().

◆ m_unpauseDecoder

bool MythPlayer::m_unpauseDecoder {false}
protected

Definition at line 691 of file mythplayer.h.

Referenced by DecoderPauseCheck(), and UnpauseDecoder().

◆ m_killDecoder

bool volatile MythPlayer::m_killDecoder {false}
protected

◆ m_decoderSeek

int64_t MythPlayer::m_decoderSeek {-1}
protected

Definition at line 693 of file mythplayer.h.

Referenced by DecoderLoop(), and WaitForSeek().

◆ m_decodeOneFrame

bool MythPlayer::m_decodeOneFrame {false}
protected

◆ m_needNewPauseFrame

bool MythPlayer::m_needNewPauseFrame {false}
protected

◆ m_bufferPauseLock

QMutex MythPlayer::m_bufferPauseLock
mutableprotected

Definition at line 696 of file mythplayer.h.

Referenced by PauseBuffer(), and UnpauseBuffer().

◆ m_videoPauseLock

QMutex MythPlayer::m_videoPauseLock
mutableprotected

Definition at line 697 of file mythplayer.h.

Referenced by PauseVideo(), and UnpauseVideo().

◆ m_pauseLock

QMutex MythPlayer::m_pauseLock
mutableprotected

Definition at line 698 of file mythplayer.h.

Referenced by Pause(), and Play().

◆ m_bufferPaused

bool MythPlayer::m_bufferPaused {false}
protected

Definition at line 699 of file mythplayer.h.

Referenced by Pause(), PauseBuffer(), and UnpauseBuffer().

◆ m_videoPaused

bool MythPlayer::m_videoPaused {false}
protected

◆ m_allPaused

bool MythPlayer::m_allPaused {false}
protected

◆ m_playing

bool MythPlayer::m_playing {false}
protected

Definition at line 702 of file mythplayer.h.

Referenced by IsPlaying(), and SetPlaying().

◆ m_playingWaitCond

QWaitCondition MythPlayer::m_playingWaitCond
mutableprotected

Definition at line 704 of file mythplayer.h.

Referenced by IsPlaying(), and SetPlaying().

◆ m_vidExitLock

QMutex MythPlayer::m_vidExitLock
mutableprotected

◆ m_playingLock

QMutex MythPlayer::m_playingLock
mutableprotected

Definition at line 706 of file mythplayer.h.

Referenced by IsPlaying(), and SetPlaying().

◆ m_doubleFramerate

bool MythPlayer::m_doubleFramerate {false}
protected

Output fps is double Video (input) rate.

Definition at line 707 of file mythplayer.h.

Referenced by AVSync(), SetScanType(), and VideoStart().

◆ m_liveTV

bool MythPlayer::m_liveTV {false}
protected

◆ m_watchingRecording

bool MythPlayer::m_watchingRecording {false}
protected

◆ m_transcoding

bool MythPlayer::m_transcoding {false}
protected

Definition at line 710 of file mythplayer.h.

Referenced by DecoderLoop(), OpenFile(), and SetTranscoding().

◆ m_hasFullPositionMap

bool MythPlayer::m_hasFullPositionMap {false}
protected

Definition at line 711 of file mythplayer.h.

Referenced by EnableEdit(), EventLoop(), OpenFile(), SeekForScreenGrab(), and WaitForSeek().

◆ m_limitKeyRepeat

bool MythPlayer::m_limitKeyRepeat {false}
mutableprotected

Definition at line 712 of file mythplayer.h.

Referenced by CalcMaxFFTime(), and DoRewind().

◆ m_errorLock

QMutex MythPlayer::m_errorLock
mutableprotected

Definition at line 713 of file mythplayer.h.

Referenced by GetError(), IsErrored(), ResetErrored(), and SetErrored().

◆ m_errorMsg

QString MythPlayer::m_errorMsg
protected

Reason why NVP exited with a error.

Definition at line 714 of file mythplayer.h.

Referenced by GetError(), IsErrored(), ResetErrored(), and SetErrored().

◆ m_errorType

int MythPlayer::m_errorType {kError_None}
protected

Definition at line 715 of file mythplayer.h.

Referenced by SetErrored().

◆ m_jumpChapter

int MythPlayer::m_jumpChapter {0}
protected

◆ m_bookmarkSeek

uint64_t MythPlayer::m_bookmarkSeek {0}
protected

◆ m_clearSavedPosition

int MythPlayer::m_clearSavedPosition {1}
protected

Definition at line 722 of file mythplayer.h.

Referenced by InitialSeek(), and MythPlayer().

◆ m_endExitPrompt

int MythPlayer::m_endExitPrompt
protected

Definition at line 723 of file mythplayer.h.

Referenced by EventLoop(), and MythPlayer().

◆ m_ffTime

long long MythPlayer::m_ffTime {0}
protected

If m_ffTime>0, number of frames to seek forward.

If m_ffTime<0, number of frames to seek backward.

Definition at line 728 of file mythplayer.h.

Referenced by ChangeSpeed(), DoFastForward(), EventLoop(), FastForward(), JumpToFrame(), and StartPlaying().

◆ m_videobufRetries

int MythPlayer::m_videobufRetries {0}
protected

How often we have tried to wait for a video output buffer and failed.

Definition at line 732 of file mythplayer.h.

Referenced by DecoderGetFrame().

◆ m_framesPlayed

uint64_t MythPlayer::m_framesPlayed {0}
protected

◆ m_totalFrames

uint64_t MythPlayer::m_totalFrames {0}
protected

◆ m_totalLength

long long MythPlayer::m_totalLength {0}
protected

◆ m_totalDuration

int64_t MythPlayer::m_totalDuration {0}
protected

Definition at line 736 of file mythplayer.h.

Referenced by GetStreamMaxPos(), JumpToStream(), and SetDuration().

◆ m_rewindTime

long long MythPlayer::m_rewindTime {0}
protected

Definition at line 737 of file mythplayer.h.

Referenced by ChangeSpeed(), DoRewind(), EventLoop(), JumpToFrame(), Rewind(), and StartPlaying().

◆ m_latestVideoTimecode

int64_t MythPlayer::m_latestVideoTimecode {-1}
protected

Definition at line 738 of file mythplayer.h.

Referenced by ReleaseNextVideoFrame().

◆ m_avTimer

QElapsedTimer MythPlayer::m_avTimer
protected

Definition at line 739 of file mythplayer.h.

Referenced by AVSync(), MythPlayer(), PipSync(), and WaitForTime().

◆ m_lastDeinterlacer

MythDeintType MythPlayer::m_lastDeinterlacer { DEINT_NONE }
protected

Definition at line 742 of file mythplayer.h.

Referenced by DisplayNormalFrame(), and GetCodecDescription().

◆ m_lastDeinterlacer2x

bool MythPlayer::m_lastDeinterlacer2x { false }
protected

Definition at line 743 of file mythplayer.h.

Referenced by AVSync(), DisplayNormalFrame(), and GetCodecDescription().

◆ m_lastFrameCodec

VideoFrameType MythPlayer::m_lastFrameCodec { FMT_NONE }
protected

Definition at line 744 of file mythplayer.h.

Referenced by DisplayNormalFrame(), and GetCodecDescription().

◆ m_videoDispDim

QSize MythPlayer::m_videoDispDim {0,0}
protected

Video (input) width & height.

Definition at line 749 of file mythplayer.h.

Referenced by GetCodecDescription(), GetScreenGrabAtFrame(), InitVideo(), ReinitVideo(), and SetVideoParams().

◆ m_videoDim

QSize MythPlayer::m_videoDim {0,0}
protected

Video (input) buffer width & height.

Definition at line 750 of file mythplayer.h.

Referenced by AutoVisualise(), AVSync(), GetCurrentFrame(), GetScreenGrabAtFrame(), InitVideo(), ReinitVideo(), and SetVideoParams().

◆ m_maxReferenceFrames

int MythPlayer::m_maxReferenceFrames {0}
protected

Number of reference frames used in the video stream.

Definition at line 751 of file mythplayer.h.

Referenced by InitVideo(), ReinitVideo(), and SetVideoParams().

◆ m_videoFrameRate

double MythPlayer::m_videoFrameRate {29.97}
protected

◆ m_videoAspect

float MythPlayer::m_videoAspect {4.0F / 3.0F}
protected

Video (input) Apect Ratio.

Definition at line 753 of file mythplayer.h.

Referenced by CheckAspectRatio(), InitVideo(), ReinitVideo(), and SetVideoParams().

◆ m_forcedVideoAspect

float MythPlayer::m_forcedVideoAspect {-1}
protected

Definition at line 754 of file mythplayer.h.

Referenced by ReinitVideo().

◆ m_resetScan

FrameScanType MythPlayer::m_resetScan { kScan_Ignore }
protected

Definition at line 756 of file mythplayer.h.

Referenced by EventLoop(), and SetScanType().

◆ m_scan

FrameScanType MythPlayer::m_scan { kScan_Interlaced }
protected

◆ m_scanOverride

FrameScanType MythPlayer::m_scanOverride { kScan_Detect }
protected

Definition at line 758 of file mythplayer.h.

Referenced by AutoDeint(), GetScanType(), NextScanOverride(), and SetScanOverride().

◆ m_scanLocked

bool MythPlayer::m_scanLocked { false }
protected

◆ m_scanInitialized

bool MythPlayer::m_scanInitialized { false }
protected

Definition at line 760 of file mythplayer.h.

Referenced by ChangeSpeed(), SetScanOverride(), SetScanType(), and SetVideoParams().

◆ m_scanTracker

long long MythPlayer::m_scanTracker { 0 }
protected

Definition at line 761 of file mythplayer.h.

Referenced by AutoDeint(), SetVideoParams(), and VideoStart().

◆ m_keyframeDist

uint MythPlayer::m_keyframeDist {30}
protected

Video (input) Number of frames between key frames (often inaccurate)

Definition at line 764 of file mythplayer.h.

Referenced by EventLoop(), InitForTranscode(), and SetKeyframeDistance().

◆ m_codecName

QString MythPlayer::m_codecName
protected

Codec Name - used by playback profile.

Definition at line 766 of file mythplayer.h.

Referenced by ClearBeforeSeek(), InitVideo(), and SetVideoParams().

◆ m_buffering

bool MythPlayer::m_buffering {false}
protected

Definition at line 769 of file mythplayer.h.

Referenced by SetBuffering().

◆ m_bufferingStart

QTime MythPlayer::m_bufferingStart
protected

Definition at line 770 of file mythplayer.h.

Referenced by PrebufferEnoughFrames(), and SetBuffering().

◆ m_bufferingLastMsg

QTime MythPlayer::m_bufferingLastMsg
protected

Definition at line 771 of file mythplayer.h.

Referenced by PrebufferEnoughFrames(), and SetBuffering().

◆ m_textDisplayMode

uint MythPlayer::m_textDisplayMode {kDisplayNone}
protected

◆ m_prevTextDisplayMode

uint MythPlayer::m_prevTextDisplayMode {kDisplayNone}
protected

Definition at line 775 of file mythplayer.h.

Referenced by DisableTeletext(), and EnableTeletext().

◆ m_prevNonzeroTextDisplayMode

uint MythPlayer::m_prevNonzeroTextDisplayMode {kDisplayNone}
protected

Definition at line 776 of file mythplayer.h.

Referenced by DisableCaptions(), EnableCaptions(), and SetCaptionsEnabled().

◆ m_vbiMode

uint MythPlayer::m_vbiMode {VBIMode::None}
protected

VBI decoder to use.

Definition at line 780 of file mythplayer.h.

Referenced by MythPlayer(), and NextCaptionTrack().

◆ m_ttPageNum

int MythPlayer::m_ttPageNum {0x888}
protected

VBI page to display when in PAL vbimode.

Definition at line 781 of file mythplayer.h.

Referenced by EnableCaptions(), MythPlayer(), and SetTeletextPage().

◆ m_subReader

SubtitleReader MythPlayer::m_subReader
protected

Definition at line 784 of file mythplayer.h.

◆ m_ttxReader

TeletextReader MythPlayer::m_ttxReader
protected

Definition at line 785 of file mythplayer.h.

◆ m_captionsEnabledbyDefault

bool MythPlayer::m_captionsEnabledbyDefault {false}
protected

This allows us to enable captions/subtitles later if the streams are not immediately available when the video starts playing.

Definition at line 788 of file mythplayer.h.

Referenced by MythPlayer(), and VideoStart().

◆ m_textDesired

bool MythPlayer::m_textDesired {false}
protected

◆ m_enableCaptions

bool MythPlayer::m_enableCaptions {false}
protected

Definition at line 790 of file mythplayer.h.

Referenced by EnableSubtitles(), EventLoop(), SetCaptionsEnabled(), and TracksChanged().

◆ m_disableCaptions

bool MythPlayer::m_disableCaptions {false}
protected

Definition at line 791 of file mythplayer.h.

Referenced by EnableSubtitles(), EventLoop(), and SetCaptionsEnabled().

◆ m_enableForcedSubtitles

bool MythPlayer::m_enableForcedSubtitles {false}
protected

Definition at line 792 of file mythplayer.h.

Referenced by DoEnableForcedSubtitles(), EnableForcedSubtitles(), and EventLoop().

◆ m_disableForcedSubtitles

bool MythPlayer::m_disableForcedSubtitles {false}
protected

Definition at line 793 of file mythplayer.h.

Referenced by DoDisableForcedSubtitles(), EnableForcedSubtitles(), and EventLoop().

◆ m_allowForcedSubtitles

bool MythPlayer::m_allowForcedSubtitles {true}
protected

Definition at line 794 of file mythplayer.h.

Referenced by DoEnableForcedSubtitles(), and SetAllowForcedSubtitles().

◆ m_cc608

CC608Reader MythPlayer::m_cc608
protected

Definition at line 797 of file mythplayer.h.

Referenced by MythPlayer(), SetTeletextPage(), and SetTrack().

◆ m_cc708

CC708Reader MythPlayer::m_cc708
protected

Definition at line 798 of file mythplayer.h.

Referenced by SetTrack().

◆ m_itvVisible

bool MythPlayer::m_itvVisible {false}
protected

Definition at line 801 of file mythplayer.h.

Referenced by ITVRestart(), PreProcessNormalFrame(), and ReinitOSD().

◆ m_interactiveTV

InteractiveTV* MythPlayer::m_interactiveTV {nullptr}
protected

◆ m_itvEnabled

bool MythPlayer::m_itvEnabled {false}
protected

Definition at line 803 of file mythplayer.h.

Referenced by GetInteractiveTV(), and MythPlayer().

◆ m_itvLock

QMutex MythPlayer::m_itvLock
protected

◆ m_streamLock

QMutex MythPlayer::m_streamLock
protected

Definition at line 805 of file mythplayer.h.

Referenced by EventLoop(), and SetStream().

◆ m_newStream

QString MythPlayer::m_newStream
protected

Definition at line 806 of file mythplayer.h.

Referenced by EventLoop(), and SetStream().

◆ m_osd

OSD* MythPlayer::m_osd {nullptr}
protected

◆ m_reinitOsd

bool MythPlayer::m_reinitOsd {false}
protected

Definition at line 810 of file mythplayer.h.

Referenced by EventLoop(), and ReinitOSD().

◆ m_osdLock

QMutex MythPlayer::m_osdLock {QMutex::Recursive}
protected

◆ m_audio

AudioPlayer MythPlayer::m_audio
protected

◆ m_audiograph

AudioOutputGraph MythPlayer::m_audiograph
protected

Definition at line 815 of file mythplayer.h.

Referenced by DisableEdit(), and EnableEdit().

◆ m_pipPlayers

PIPMap MythPlayer::m_pipPlayers
protected

◆ m_pipActive

volatile bool MythPlayer::m_pipActive {false}
protected

Definition at line 819 of file mythplayer.h.

◆ m_pipVisible

volatile bool MythPlayer::m_pipVisible {true}
protected

Definition at line 820 of file mythplayer.h.

◆ m_pipDefaultLoc

PIPLocation MythPlayer::m_pipDefaultLoc
protected

Definition at line 821 of file mythplayer.h.

Referenced by GetNextPIPLocation(), and MythPlayer().

◆ m_commBreakMap

CommBreakMap MythPlayer::m_commBreakMap
protected

◆ m_forcePositionMapSync

bool MythPlayer::m_forcePositionMapSync {false}
protected

◆ m_deleteMap

DeleteMap MythPlayer::m_deleteMap
protected

◆ m_pausedBeforeEdit

bool MythPlayer::m_pausedBeforeEdit {false}
protected

Definition at line 828 of file mythplayer.h.

Referenced by DisableEdit(), and EnableEdit().

◆ m_editUpdateTimer

QElapsedTimer MythPlayer::m_editUpdateTimer
protected

Definition at line 829 of file mythplayer.h.

Referenced by EnableEdit(), and EventLoop().

◆ m_speedBeforeEdit

float MythPlayer::m_speedBeforeEdit {1.0F}
protected

Definition at line 830 of file mythplayer.h.

Referenced by DisableEdit(), and EnableEdit().

◆ m_decoderLock

QMutex MythPlayer::m_decoderLock {QMutex::Recursive}
protected

Lock for next_play_speed and next_normal_speed.

Definition at line 834 of file mythplayer.h.

◆ m_nextPlaySpeed

float MythPlayer::m_nextPlaySpeed {1.0F}
protected

◆ m_nextNormalSpeed

bool MythPlayer::m_nextNormalSpeed {true}
protected

Definition at line 836 of file mythplayer.h.

Referenced by ChangeSpeed(), Pause(), and Play().

◆ m_playSpeed

float MythPlayer::m_playSpeed {1.0F}
protected

◆ m_normalSpeed

bool MythPlayer::m_normalSpeed {true}
protected

Definition at line 839 of file mythplayer.h.

Referenced by AVSync(), ChangeSpeed(), DecoderLoop(), and SetScanType().

◆ m_frameInterval

int MythPlayer::m_frameInterval {static_cast<int>((1000000.0F / 30))}
protected

◆ m_frameIntervalPrev

int MythPlayer::m_frameIntervalPrev {0}
protected

used to detect changes to frame_interval

Definition at line 841 of file mythplayer.h.

Referenced by SetScanType().

◆ m_fpsMultiplier

int MythPlayer::m_fpsMultiplier {1}
protected

used to detect changes

Definition at line 842 of file mythplayer.h.

Referenced by DisplayNormalFrame(), SetFrameInterval(), and UpdateFFRewSkip().

◆ m_ffrewSkip

int MythPlayer::m_ffrewSkip {1}
protected

◆ m_ffrewAdjust

int MythPlayer::m_ffrewAdjust {0}
protected

Definition at line 845 of file mythplayer.h.

Referenced by DecoderGetFrameFFREW(), DecoderGetFrameREW(), and UpdateFFRewSkip().

◆ m_fileChanged

bool MythPlayer::m_fileChanged {false}
protected

Definition at line 846 of file mythplayer.h.

Referenced by EventLoop(), FileChanged(), and FileChangedCallback().

◆ m_avsyncAvg

int MythPlayer::m_avsyncAvg {0}
protected

Definition at line 849 of file mythplayer.h.

Referenced by AVSync(), GetPlaybackData(), ResetAVSync(), and VideoStart().

◆ m_dispTimecode

int64_t MythPlayer::m_dispTimecode {0}
protected

◆ m_avsyncAudioPaused

bool MythPlayer::m_avsyncAudioPaused {false}
protected

Definition at line 851 of file mythplayer.h.

Referenced by AVSync(), and PrebufferEnoughFrames().

◆ m_rtcBase

int64_t MythPlayer::m_rtcBase {0}
protected

◆ m_maxTcVal

int64_t MythPlayer::m_maxTcVal {0}
protected

Definition at line 853 of file mythplayer.h.

Referenced by AVSync(), and PipSync().

◆ m_maxTcFrames

int MythPlayer::m_maxTcFrames {0}
protected

Definition at line 854 of file mythplayer.h.

Referenced by AVSync().

◆ m_numDroppedFrames

int MythPlayer::m_numDroppedFrames {0}
protected

Definition at line 855 of file mythplayer.h.

Referenced by AVSync().

◆ m_priorAudioTimecode

int64_t MythPlayer::m_priorAudioTimecode {0}
protected

Definition at line 856 of file mythplayer.h.

Referenced by AVSync(), InitAVSync(), Play(), and ResetAVSync().

◆ m_priorVideoTimecode

int64_t MythPlayer::m_priorVideoTimecode {0}
protected

Definition at line 857 of file mythplayer.h.

Referenced by AVSync(), InitAVSync(), Play(), and ResetAVSync().

◆ m_lastFix

float MythPlayer::m_lastFix {0.0F}
protected

Definition at line 858 of file mythplayer.h.

Referenced by AVSync(), InitAVSync(), Play(), and ResetAVSync().

◆ m_timeOffsetBase

int64_t MythPlayer::m_timeOffsetBase {0}
protected

Definition at line 859 of file mythplayer.h.

Referenced by AVSync().

◆ m_prevTc

int MythPlayer::m_prevTc {0}
protected

32 bit timecode if last VideoFrame shown

Definition at line 862 of file mythplayer.h.

Referenced by ResetAVSync().

◆ m_prevRp

int MythPlayer::m_prevRp {0}
protected

repeat_pict of last frame

Definition at line 863 of file mythplayer.h.

◆ m_tcWrap

int64_t MythPlayer::m_tcWrap[TCTYPESMAX] {}
protected

◆ m_tcLastVal

int64_t MythPlayer::m_tcLastVal[TCTYPESMAX] {}
protected

Definition at line 865 of file mythplayer.h.

Referenced by ClearAfterSeek().

◆ m_savedAudioTimecodeOffset

int64_t MythPlayer::m_savedAudioTimecodeOffset {0}
protected

Definition at line 866 of file mythplayer.h.

Referenced by DisableEdit(), and EnableEdit().

◆ m_tv

TV* MythPlayer::m_tv {nullptr}
protected

Definition at line 869 of file mythplayer.h.

Referenced by SetPlayerInfo(), and VideoStart().

◆ m_isDummy

bool MythPlayer::m_isDummy {false}
protected

Definition at line 870 of file mythplayer.h.

Referenced by DecoderLoop(), EventLoop(), JumpToProgram(), OpenDummy(), OpenFile(), and VideoLoop().

◆ m_bufferingCounter

int MythPlayer::m_bufferingCounter {0}
protected

Definition at line 873 of file mythplayer.h.

Referenced by PrebufferEnoughFrames(), and StartPlaying().

◆ m_outputJmeter

Jitterometer* MythPlayer::m_outputJmeter {nullptr}
protected

Definition at line 876 of file mythplayer.h.

Referenced by AVSync(), EnableFrameRateMonitor(), GetPlaybackData(), and ~MythPlayer().

◆ m_disablePassthrough

bool MythPlayer::m_disablePassthrough {false}
private

Definition at line 880 of file mythplayer.h.

Referenced by SetDecoder(), SetDisablePassThrough(), and syncWithAudioStretch().


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