MythTV  master
mythplayer.h
Go to the documentation of this file.
1 #ifndef MYTHPLAYER_H
2 #define MYTHPLAYER_H
3 
4 // Qt
5 #include <QCoreApplication>
6 #include <QList>
7 #include <QMutex>
8 #include <QTime>
9 #include <QString>
10 #include <QRect>
11 #include <QSize>
12 #include <QStringList>
13 #include <QWaitCondition>
14 
15 // MythTV
16 #include "playercontext.h"
17 #include "volumebase.h"
18 #include "osd.h"
19 #include "mythvideoout.h"
22 #include "captions/cc608reader.h"
23 #include "captions/cc708reader.h"
24 #include "decoders/decoderbase.h"
25 #include "deletemap.h"
26 #include "commbreakmap.h"
27 #include "audioplayer.h"
28 #include "mthread.h"
29 #include "mythavutil.h"
30 #include "mythtypes.h"
31 #include "programtypes.h"
32 #include "tv.h"
33 #include "videoouttypes.h"
34 #include "mythmiscutil.h"
35 #include "mythplayeravsync.h"
36 #include "mythtvexp.h"
37 
38 // Std
39 #include <cstdint>
40 #include <utility>
41 #include <thread>
42 
43 class ProgramInfo;
44 class InteractiveTV;
45 class QThread;
46 class MythMediaBuffer;
47 class MythDecoderThread;
48 
49 using StatusCallback = void (*)(int, void*);
50 
52 enum TCTypes
53 {
54  TC_VIDEO = 0,
58 };
59 #define TCTYPESMAX 4
60 using tctype_arr = std::array<int64_t,TCTYPESMAX>;
61 
63 {
64  kNoFlags = 0x000000,
65  kDecodeLowRes = 0x000001,
67  kDecodeFewBlocks = 0x000004,
68  kDecodeNoLoopFilter = 0x000008,
69  kDecodeNoDecode = 0x000010,
70  kDecodeAllowGPU = 0x000020,
71  kVideoIsNull = 0x000040,
72  kAudioMuted = 0x010000,
73  kNoITV = 0x020000,
74  kMusicChoice = 0x040000,
75 };
76 
77 #define FlagIsSet(arg) (m_playerFlags & (arg))
78 
79 // Padding between class members reduced from 113 to 73 bytes, but its
80 // still higher than the default warning threshhold of 24 bytes.
81 //
82 // NOLINTNEXTLINE(clang-analyzer-optin.performance.Padding)
83 class MTV_PUBLIC MythPlayer : public QObject
84 {
85  Q_OBJECT
86 
87  // Do NOT add a decoder class to this list
88  friend class PlayerContext;
89  friend class CC708Reader;
90  friend class CC608Reader;
91  friend class MythDecoderThread;
92  friend class VideoPerformanceTest;
93  // TODO remove these
94  friend class TV;
95  friend class Transcode;
96 
97  signals:
98  void CheckCallbacks();
99  void SeekingSlow(int Count);
100  void SeekingComplete();
101  void PauseChanged(bool Paused);
102  void RequestResetCaptions();
103  void SignalTracksChanged(uint Type);
104 
105  public:
106  explicit MythPlayer(PlayerContext* Context, PlayerFlags Flags = kNoFlags);
107  ~MythPlayer() override;
108 
109  // Initialisation
110  virtual int OpenFile(int Retries = 4);
111  virtual bool InitVideo(void);
112  virtual void ReinitVideo(bool ForceUpdate);
113  virtual void InitFrameInterval();
114 
115  // Public Sets
116  void SetLength(int len) { m_totalLength = len; }
117  void SetFramesPlayed(uint64_t played);
118  void SetEof(EofState eof);
119  void SetWatchingRecording(bool mode);
120  void SetKeyframeDistance(int keyframedistance);
121  virtual void SetVideoParams(int w, int h, double fps, float aspect,
122  bool ForceUpdate, int ReferenceFrames,
123  FrameScanType /*scan*/ = kScan_Ignore,
124  const QString& codecName = QString());
125  void SetFileLength(int total, int frames);
126  void SetDuration(int duration);
127  void SetFrameRate(double fps);
128 
129  // Gets
130  QSize GetVideoBufferSize(void) const { return m_videoDim; }
131  QSize GetVideoSize(void) const { return m_videoDispDim; }
132  float GetVideoAspect(void) const { return m_videoAspect; }
133  float GetFrameRate(void) const { return m_videoFrameRate; }
134  bool IsAudioNeeded(void) { return ((FlagIsSet(kVideoIsNull)) == 0); }
135  int GetFreeVideoFrames(void) const;
136 
137  int GetFFRewSkip(void) const { return m_ffrewSkip; }
138  float GetPlaySpeed(void) const { return m_playSpeed; }
139  AudioPlayer* GetAudio(void) { return &m_audio; }
140  float GetNextPlaySpeed(void) const { return m_nextPlaySpeed; }
141  int GetLength(void) const { return m_totalLength; }
142  uint64_t GetTotalFrameCount(void) const { return m_totalFrames; }
143  uint64_t GetCurrentFrameCount(void) const;
144  uint64_t GetFramesPlayed(void) const { return m_framesPlayed; }
145  virtual uint64_t GetBookmark(void);
146  QString GetError(void) const;
147  QString GetEncodingType(void) const;
148  QString GetXDS(const QString &key) const;
149 
150  // Bool Gets
151  bool IsPaused(void) const { return m_allPaused; }
152  bool GetRawAudioState(void) const;
153  bool GetLimitKeyRepeat(void) const { return m_limitKeyRepeat; }
154  EofState GetEof(void) const;
155  bool IsErrored(void) const;
156  bool IsPlaying(uint wait_in_msec = 0, bool wait_for = true) const;
157  bool AtNormalSpeed(void) const { return m_nextNormalSpeed; }
158  bool IsReallyNearEnd(void) const;
159  bool IsNearEnd(void);
160  bool HasTVChainNext(void) const;
161  bool IsWatchingInprogress(void) const;
162 
163  virtual InteractiveTV *GetInteractiveTV() { return nullptr; }
164  MythVideoOutput *GetVideoOutput(void) { return m_videoOutput; }
165 
166  // Title stuff
167  virtual bool SwitchTitle(int /*title*/) { return false; }
168  virtual bool NextTitle(void) { return false; }
169  virtual bool PrevTitle(void) { return false; }
170 
171  // Angle stuff
172  virtual bool SwitchAngle(int /*title*/) { return false; }
173  virtual bool NextAngle(void) { return false; }
174  virtual bool PrevAngle(void) { return false; }
175 
176  // Decoder stuff..
177  MythVideoFrame *GetNextVideoFrame(void);
178  void DeLimboFrame(MythVideoFrame *frame);
179  virtual void ReleaseNextVideoFrame(MythVideoFrame *buffer, int64_t timecode,
180  bool wrap = true);
181  void DiscardVideoFrame(MythVideoFrame *buffer);
182  void DiscardVideoFrames(bool KeyFrame, bool Flushed);
184  DecoderBase *GetDecoder(void) { return m_decoder; }
185  virtual bool HasReachedEof(void) const;
186  void SetDisablePassThrough(bool disabled);
187  void ForceSetupAudioStream(void);
188 
189  // Add data
190  virtual bool PrepareAudioSample(int64_t &timecode);
191 
192  // Public Closed caption and teletext stuff
193  virtual uint GetCaptionMode() const { return kDisplayNone; }
194  virtual CC708Reader *GetCC708Reader(uint /*id*/=0) { return &m_cc708; }
195  virtual CC608Reader *GetCC608Reader(uint /*id*/=0) { return &m_cc608; }
196  virtual SubtitleReader *GetSubReader(uint /*id*/=0) { return &m_subReader; }
197  virtual TeletextReader *GetTeletextReader(uint /*id*/=0) { return &m_ttxReader; }
198 
199  // Public Audio/Subtitle/EIA-608/EIA-708 stream selection - thread safe
200  void EnableSubtitles(bool enable);
201  void EnableForcedSubtitles(bool enable);
202  bool ForcedSubtitlesFavored(void) const {
203  return m_allowForcedSubtitles && !m_captionsEnabledbyDefault;
204  }
205  // How to handle forced Subtitles (i.e. when in a movie someone speaks
206  // in a different language than the rest of the movie, subtitles are
207  // forced on even if the user doesn't have them turned on.)
208  // These two functions are not thread-safe (UI thread use only).
209  bool GetAllowForcedSubtitles(void) const { return m_allowForcedSubtitles; }
210 
211  // LiveTV public stuff
212  void CheckTVChain();
213  void FileChangedCallback();
214 
215  // Chapter public stuff
216  virtual int GetNumChapters(void);
217  virtual int GetCurrentChapter(void);
218  virtual void GetChapterTimes(QList<long long> &times);
219 
220  // Title public stuff
221  virtual int GetNumTitles(void) const { return 0; }
222  virtual int GetCurrentTitle(void) const { return 0; }
223  virtual int GetTitleDuration(int /*title*/) const { return 0; }
224  virtual QString GetTitleName(int /*title*/) const { return QString(); }
225 
226  // Angle public stuff
227  virtual int GetNumAngles(void) const { return 0; }
228  virtual int GetCurrentAngle(void) const { return 0; }
229  virtual QString GetAngleName(int /*title*/) const { return QString(); }
230 
231  // DVD public stuff
232  virtual bool GoToMenu(const QString& /*str*/) { return false; }
233  virtual void GoToDVDProgram(bool direction) { (void) direction; }
234  virtual bool IsInStillFrame() const { return false; }
235 
236  // Position Map Stuff
237  bool PosMapFromEnc(uint64_t start, frm_pos_map_t &posMap, frm_pos_map_t &durMap);
238 
239  void SaveTotalDuration(void);
240  void ResetTotalDuration(void);
241 
244  static const double kInaccuracyNone;
245  static const double kInaccuracyDefault;
246  static const double kInaccuracyEditor;
247  static const double kInaccuracyFull;
248 
249  void SaveTotalFrames(void);
250  void SetErrored(const QString &reason);
251 
252  protected:
253  // Initialization
254  void OpenDummy(void);
255 
256  // Complicated gets
257  virtual long long CalcMaxFFTime(long long ff, bool setjump = true) const;
258  long long CalcRWTime(long long rw) const;
259  uint64_t TranslatePositionFrameToMs(uint64_t position,
260  bool use_cutlist) const;
261  uint64_t TranslatePositionMsToFrame(uint64_t position,
262  bool use_cutlist) const {
263  return m_deleteMap.TranslatePositionMsToFrame(position,
264  GetFrameRate(),
265  use_cutlist);
266  }
267  // TranslatePositionAbsToRel and TranslatePositionRelToAbs are
268  // used for frame calculations when seeking relative to a number
269  // of frames rather than by time.
270  uint64_t TranslatePositionAbsToRel(uint64_t position) const {
271  return m_deleteMap.TranslatePositionAbsToRel(position);
272  }
273  uint64_t TranslatePositionRelToAbs(uint64_t position) const {
274  return m_deleteMap.TranslatePositionRelToAbs(position);
275  }
276  float ComputeSecs(uint64_t position, bool use_cutlist) const {
277  return TranslatePositionFrameToMs(position, use_cutlist) / 1000.0;
278  }
279  uint64_t FindFrame(float offset, bool use_cutlist) const;
280 
281  // Commercial stuff
283  { m_commBreakMap.SetAutoCommercialSkip(autoskip, m_framesPlayed); }
284  void SkipCommercials(int direction)
285  { m_commBreakMap.SkipCommercials(direction); }
286  void SetCommBreakMap(const frm_dir_map_t& NewMap);
288  { return m_commBreakMap.GetAutoCommercialSkip(); }
289 
290  // Start/Reset/Stop playing
291  virtual void ResetPlaying(bool resetframes = true);
292  virtual void StopPlaying(void);
293 
294  // Pause stuff
295  bool PauseDecoder(void);
296  void UnpauseDecoder(void);
297  bool Pause(void);
298  bool Play(float speed = 1.0, bool normal = true, bool unpauseaudio = true);
299 
300  // Seek stuff
301  virtual bool FastForward(float seconds);
302  virtual bool Rewind(float seconds);
303  virtual bool JumpToFrame(uint64_t frame);
304 
305  // Chapter stuff
306  void JumpChapter(int chapter);
307 
308  // Playback
309  virtual bool PrebufferEnoughFrames(int min_buffers = 0);
310  void SetBuffering(bool new_buffering);
311  virtual void VideoEnd(void);
312  virtual void DecoderStart(bool start_paused);
313  virtual void DecoderLoop(bool pause);
314  virtual void DecoderEnd(void);
315  virtual void DecoderPauseCheck(void);
316  virtual void AudioEnd(void);
317 
318  // Edit mode stuff
319  bool GetEditMode(void) const { return m_deleteMap.IsEditing(); }
320  bool IsInDelete(uint64_t frame);
321 
322  protected:
323  // Private Sets
324  void SetPlayingInfo(const ProgramInfo &pginfo);
325  void SetPlaying(bool is_playing);
326  void ResetErrored(void);
327 
328  // Private pausing stuff
329  void PauseVideo(void);
330  void UnpauseVideo(void);
331  void PauseBuffer(void);
332  void UnpauseBuffer(void);
333 
334  // Private decoder stuff
335  virtual void CreateDecoder(TestBufferVec & TestBuffer);
336  void SetDecoder(DecoderBase *dec);
338  const DecoderBase *GetDecoder(void) const { return m_decoder; }
339  virtual bool DecoderGetFrameFFREW(void);
340  virtual bool DecoderGetFrameREW(void);
341  bool DecoderGetFrame(DecodeType decodetype, bool unsafe = false);
342  bool DoGetFrame(DecodeType DecodeType);
343 
344  // These actually execute commands requested by public members
345  bool UpdateFFRewSkip(void);
346  virtual void ChangeSpeed(void);
347  // The "inaccuracy" argument is generally one of the kInaccuracy* values.
348  bool DoFastForward(uint64_t frames, double inaccuracy);
349  bool DoRewind(uint64_t frames, double inaccuracy);
350  void DoJumpToFrame(uint64_t frame, double inaccuracy);
351 
352  // Private seeking stuff
353  void WaitForSeek(uint64_t frame, uint64_t seeksnap_wanted);
354  void ClearAfterSeek(bool clearvideobuffers = true);
355  void ClearBeforeSeek(uint64_t Frames);
356 
357  // Private chapter stuff
358  virtual bool DoJumpChapter(int chapter);
359  virtual int64_t GetChapter(int chapter);
360 
361  // Private A/V Sync Stuff
362  void WrapTimecode(int64_t &timecode, TCTypes tc_type);
363  void SetFrameInterval(FrameScanType scan, double frame_period);
364 
365  protected:
366  DecoderBase *m_decoder {nullptr};
367  mutable QMutex m_decoderChangeLock {QMutex::Recursive};
368  MythVideoOutput *m_videoOutput {nullptr};
370  PlayerContext *m_playerCtx {nullptr};
371  MythDecoderThread* m_decoderThread {nullptr};
372  QThread *m_playerThread {nullptr};
373 #ifdef Q_OS_ANDROID
374  int m_playerThreadId {0};
375 #endif
377 
378  // State
379  QWaitCondition m_decoderThreadPause;
380  QWaitCondition m_decoderThreadUnpause;
381  mutable QMutex m_decoderPauseLock;
382  mutable QMutex m_decoderSeekLock;
383  mutable QMutex m_bufferPauseLock;
384  mutable QMutex m_videoPauseLock;
385  mutable QMutex m_pauseLock;
386  int64_t m_decoderSeek {-1};
387  bool m_totalDecoderPause {false};
388  bool m_decoderPaused {false};
389  bool m_inJumpToProgramPause {false};
390  bool m_pauseDecoder {false};
391  bool m_unpauseDecoder {false};
392  bool volatile m_killDecoder {false};
393  bool m_decodeOneFrame {false};
394  bool m_needNewPauseFrame {false};
395  bool m_bufferPaused {false};
396  bool m_videoPaused {false};
397  bool m_allPaused {false};
398  bool m_playing {false};
399 
400  mutable QWaitCondition m_playingWaitCond;
401  mutable QMutex m_vidExitLock;
402  mutable QMutex m_playingLock;
403  mutable QMutex m_errorLock;
404  QString m_errorMsg;
405  int m_errorType {kError_None};
406  bool m_liveTV {false};
407  bool m_watchingRecording {false};
408  bool m_transcoding {false};
409  bool m_hasFullPositionMap {false};
410  mutable bool m_limitKeyRepeat {false};
411 
412  // Chapter stuff
413  int m_jumpChapter {0};
414 
415  // Bookmark stuff
416  uint64_t m_bookmarkSeek {0};
417  int m_clearSavedPosition {1};
419 
420  // Seek
423  long long m_ffTime {0};
424 
425  // Playback misc.
427  int m_videobufRetries {0};
428  uint64_t m_framesPlayed {0};
429  uint64_t m_totalFrames {0};
430  long long m_totalLength {0};
431  int64_t m_totalDuration {0};
432  long long m_rewindTime {0};
433  int64_t m_latestVideoTimecode {-1};
435 
436  // -- end state stuff --
437 
438  // Input Video Attributes
439  double m_videoFrameRate {29.97};
440  QString m_codecName;
442  QSize m_videoDispDim {0,0};
443  QSize m_videoDim {0,0};
444  int m_maxReferenceFrames {0};
445  float m_videoAspect {4.0F / 3.0F};
446  float m_forcedVideoAspect {-1};
447 
450 
451  // Buffering
452  bool m_buffering {false};
455 
456  // Support for analog captions and teletext
457  // (i.e. Vertical Blanking Interval (VBI) encoded data.)
458  uint m_vbiMode {VBIMode::None};
459  int m_ttPageNum {0x888};
460 
461  // Support for captions, teletext, etc. decoded by libav
466  bool m_captionsEnabledbyDefault {false};
467  bool m_enableCaptions {false};
468  bool m_disableCaptions {false};
469  bool m_enableForcedSubtitles {false};
470  bool m_disableForcedSubtitles {false};
471  bool m_allowForcedSubtitles {true};
472 
473  // CC608/708
476 
477  // Audio stuff
479 
480  // Commercial filtering
482  bool m_forcePositionMapSync {false};
483  // Manual editing
485 
486  // Playback (output) speed control
488  QMutex m_decoderLock {QMutex::Recursive};
489  float m_nextPlaySpeed {1.0F};
490  float m_playSpeed {1.0F};
491  int m_frameInterval {static_cast<int>((1000000.0F / 30))};
492  int m_fpsMultiplier {1};
493  int m_ffrewSkip {1};
494  int m_ffrewAdjust {0};
495  bool m_fileChanged {false};
496  bool m_nextNormalSpeed {true};
497  bool m_normalSpeed {true};
498 
499  // Time Code stuff
500  tctype_arr m_tcWrap {};
501  int64_t m_savedAudioTimecodeOffset {0};
502 
503  // LiveTV
504  bool m_isDummy {false};
505 
506  // Counter for buffering messages
507  int m_bufferingCounter {0};
508 
509  private:
510  Q_DISABLE_COPY(MythPlayer)
511  void syncWithAudioStretch();
512  bool m_disablePassthrough {false};
513 };
514 
515 #endif
MythPlayer::GetTeletextReader
virtual TeletextReader * GetTeletextReader(uint=0)
Definition: mythplayer.h:197
CommSkipMode
CommSkipMode
Definition: tv.h:130
StatusCallback
void(*)(int, void *) StatusCallback
Definition: mythplayer.h:49
MythPlayer::PrevTitle
virtual bool PrevTitle(void)
Definition: mythplayer.h:169
tv.h
MythPlayer::m_errorLock
QMutex m_errorLock
Definition: mythplayer.h:403
MythPlayer::AtNormalSpeed
bool AtNormalSpeed(void) const
Definition: mythplayer.h:157
MythPlayer::TranslatePositionAbsToRel
uint64_t TranslatePositionAbsToRel(uint64_t position) const
Definition: mythplayer.h:270
MythPlayer::GetVideoOutput
MythVideoOutput * GetVideoOutput(void)
Definition: mythplayer.h:164
commbreakmap.h
MythPlayer::GetTotalFrameCount
uint64_t GetTotalFrameCount(void) const
Definition: mythplayer.h:142
MythVideoOutput
Definition: mythvideoout.h:35
deletemap.h
mythvideoout.h
MythPlayerAVSync
Definition: mythplayeravsync.h:13
MythPlayer::m_commBreakMap
CommBreakMap m_commBreakMap
Definition: mythplayer.h:481
MythPlayer::m_subReader
SubtitleReader m_subReader
Definition: mythplayer.h:462
AudioPlayer
Definition: audioplayer.h:24
kDisplayNone
@ kDisplayNone
Definition: videoouttypes.h:12
MythPlayer::m_cc608
CC608Reader m_cc608
Definition: mythplayer.h:474
MythPlayer::TranslatePositionMsToFrame
uint64_t TranslatePositionMsToFrame(uint64_t position, bool use_cutlist) const
Definition: mythplayer.h:261
MythPlayer::kNightModeContrastAdjustment
static const int kNightModeContrastAdjustment
Definition: mythplayer.h:243
MythPlayer::m_decoderThreadUnpause
QWaitCondition m_decoderThreadUnpause
Definition: mythplayer.h:380
MythPlayer::m_avSync
MythPlayerAVSync m_avSync
Definition: mythplayer.h:434
MythPlayer::GetNumAngles
virtual int GetNumAngles(void) const
Definition: mythplayer.h:227
kMusicChoice
@ kMusicChoice
Definition: mythplayer.h:74
MythPlayer::GoToMenu
virtual bool GoToMenu(const QString &)
Definition: mythplayer.h:232
MythPlayer::PrevAngle
virtual bool PrevAngle(void)
Definition: mythplayer.h:174
kError_None
@ kError_None
Definition: videoouttypes.h:184
MythPlayer::GetInteractiveTV
virtual InteractiveTV * GetInteractiveTV()
Definition: mythplayer.h:163
Transcode::m_keyframeDist
int m_keyframeDist
Definition: transcode.h:52
MythPlayer::GoToDVDProgram
virtual void GoToDVDProgram(bool direction)
Definition: mythplayer.h:233
mythtvexp.h
MythPlayer::IsPaused
bool IsPaused(void) const
Definition: mythplayer.h:151
MythPlayer::m_decoderSeekLock
QMutex m_decoderSeekLock
Definition: mythplayer.h:382
MythPlayer::GetNumTitles
virtual int GetNumTitles(void) const
Definition: mythplayer.h:221
TC_VIDEO
@ TC_VIDEO
Definition: mythplayer.h:54
MythPlayer::GetAngleName
virtual QString GetAngleName(int) const
Definition: mythplayer.h:229
MythPlayer::GetTitleDuration
virtual int GetTitleDuration(int) const
Definition: mythplayer.h:223
frm_dir_map_t
QMap< uint64_t, MarkTypes > frm_dir_map_t
Frame # -> Mark map.
Definition: programtypes.h:82
FrameScanType
FrameScanType
Definition: videoouttypes.h:94
MythPlayer::m_errorMsg
QString m_errorMsg
Reason why NVP exited with a error.
Definition: mythplayer.h:404
MythPlayer::m_bufferPauseLock
QMutex m_bufferPauseLock
Definition: mythplayer.h:383
osd.h
SubtitleReader
Definition: subtitlereader.h:32
MythPlayer::m_cc708
CC708Reader m_cc708
Definition: mythplayer.h:475
MythMediaBuffer
Definition: mythmediabuffer.h:49
MythPlayer::GetNextPlaySpeed
float GetNextPlaySpeed(void) const
Definition: mythplayer.h:140
MythPlayer::GetFrameRate
float GetFrameRate(void) const
Definition: mythplayer.h:133
cc608reader.h
teletextreader.h
VBIMode::None
@ None
Definition: tv.h:11
MythPlayer::m_pauseLock
QMutex m_pauseLock
Definition: mythplayer.h:385
MythPlayer::GetCC708Reader
virtual CC708Reader * GetCC708Reader(uint=0)
Definition: mythplayer.h:194
PlayerFlags
PlayerFlags
Definition: mythplayer.h:62
subtitlereader.h
MythPlayer
Definition: mythplayer.h:83
MythPlayer::ForcedSubtitlesFavored
bool ForcedSubtitlesFavored(void) const
Definition: mythplayer.h:202
kDecodeLowRes
@ kDecodeLowRes
Definition: mythplayer.h:65
MythPlayer::SkipCommercials
void SkipCommercials(int direction)
Definition: mythplayer.h:284
MythPlayer::m_bufferingLastMsg
QTime m_bufferingLastMsg
Definition: mythplayer.h:454
MythPlayer::GetLimitKeyRepeat
bool GetLimitKeyRepeat(void) const
Definition: mythplayer.h:153
hardwareprofile.scan.scan
def scan(profile, smoonURL, gate)
Definition: scan.py:57
MythPlayer::m_videoPauseLock
QMutex m_videoPauseLock
Definition: mythplayer.h:384
MythPlayer::kInaccuracyNone
static const double kInaccuracyNone
Definition: mythplayer.h:244
programtypes.h
MythPlayer::SetAutoCommercialSkip
void SetAutoCommercialSkip(CommSkipMode autoskip)
Definition: mythplayer.h:282
MythPlayer::SwitchTitle
virtual bool SwitchTitle(int)
Definition: mythplayer.h:167
MythPlayer::GetPlaySpeed
float GetPlaySpeed(void) const
Definition: mythplayer.h:138
EofState
EofState
Definition: decoderbase.h:67
MythPlayer::m_audio
AudioPlayer m_audio
Definition: mythplayer.h:478
TeletextReader
Definition: teletextreader.h:75
MythPlayer::GetFramesPlayed
uint64_t GetFramesPlayed(void) const
Definition: mythplayer.h:144
MythPlayer::ComputeSecs
float ComputeSecs(uint64_t position, bool use_cutlist) const
Definition: mythplayer.h:276
MythDecoderThread
Definition: mythdecoderthread.h:9
MythPlayer::kNightModeBrightenssAdjustment
static const int kNightModeBrightenssAdjustment
Definition: mythplayer.h:242
MythPlayer::GetVideoBufferSize
QSize GetVideoBufferSize(void) const
Definition: mythplayer.h:130
videoouttypes.h
MythPlayer::GetAutoCommercialSkip
CommSkipMode GetAutoCommercialSkip(void)
Definition: mythplayer.h:287
VideoFrameTypes
std::vector< VideoFrameType > VideoFrameTypes
Definition: mythframe.h:81
MythPlayer::m_decoderPauseLock
QMutex m_decoderPauseLock
Definition: mythplayer.h:381
DecodeType
DecodeType
Definition: decoderbase.h:47
MythPlayer::GetCC608Reader
virtual CC608Reader * GetCC608Reader(uint=0)
Definition: mythplayer.h:195
tctype_arr
std::array< int64_t, TCTYPESMAX > tctype_arr
Definition: mythplayer.h:60
MythPlayer::IsAudioNeeded
bool IsAudioNeeded(void)
Definition: mythplayer.h:134
mythtypes.h
kDecodeAllowGPU
@ kDecodeAllowGPU
Definition: mythplayer.h:70
MythPlayer::m_bufferingStart
QTime m_bufferingStart
Definition: mythplayer.h:453
MythPlayer::NextTitle
virtual bool NextTitle(void)
Definition: mythplayer.h:168
TCTypes
TCTypes
Timecode types.
Definition: mythplayer.h:52
TestBufferVec
std::vector< char > TestBufferVec
Definition: decoderbase.h:23
MythPlayer::SwitchAngle
virtual bool SwitchAngle(int)
Definition: mythplayer.h:172
MythPlayer::SetLength
void SetLength(int len)
Definition: mythplayer.h:116
kNoITV
@ kNoITV
Definition: mythplayer.h:73
MythPlayer::GetEditMode
bool GetEditMode(void) const
Definition: mythplayer.h:319
uint
unsigned int uint
Definition: compat.h:141
kDecodeNoDecode
@ kDecodeNoDecode
Definition: mythplayer.h:69
MythPlayer::m_endExitPrompt
int m_endExitPrompt
Definition: mythplayer.h:418
MythPlayer::GetCurrentAngle
virtual int GetCurrentAngle(void) const
Definition: mythplayer.h:228
MythPlayer::m_playerFlags
PlayerFlags m_playerFlags
Definition: mythplayer.h:376
MythPlayer::GetAllowForcedSubtitles
bool GetAllowForcedSubtitles(void) const
Definition: mythplayer.h:209
MythPlayer::m_playingLock
QMutex m_playingLock
Definition: mythplayer.h:402
MythPlayer::m_deleteMap
DeleteMap m_deleteMap
Definition: mythplayer.h:484
MythPlayer::GetDecoder
DecoderBase * GetDecoder(void)
Returns the stream decoder currently in use.
Definition: mythplayer.h:184
MythPlayer::m_ttxReader
TeletextReader m_ttxReader
Definition: mythplayer.h:463
MythPlayer::GetSubReader
virtual SubtitleReader * GetSubReader(uint=0)
Definition: mythplayer.h:196
frm_pos_map_t
QMap< long long, long long > frm_pos_map_t
Frame # -> File offset map.
Definition: programtypes.h:46
TC_CC
@ TC_CC
Definition: mythplayer.h:57
kDecodeSingleThreaded
@ kDecodeSingleThreaded
Definition: mythplayer.h:66
MythPlayer::GetCaptionMode
virtual uint GetCaptionMode() const
Definition: mythplayer.h:193
volumebase.h
MythPlayer::GetCurrentTitle
virtual int GetCurrentTitle(void) const
Definition: mythplayer.h:222
MTV_PUBLIC
#define MTV_PUBLIC
Definition: mythtvexp.h:15
MythPlayer::GetAudio
AudioPlayer * GetAudio(void)
Definition: mythplayer.h:139
CommBreakMap
Definition: commbreakmap.h:17
kVideoIsNull
@ kVideoIsNull
Definition: mythplayer.h:71
kNoFlags
@ kNoFlags
Definition: mythplayer.h:64
ProgramInfo
Holds information on recordings and videos.
Definition: programinfo.h:67
cc708reader.h
mythmiscutil.h
MythPlayer::m_decoderThreadPause
QWaitCondition m_decoderThreadPause
Definition: mythplayer.h:379
MythVideoFrame::kDefaultRenderFormats
static const VideoFrameTypes kDefaultRenderFormats
Definition: mythframe.h:88
playercontext.h
TC_AUDIO
@ TC_AUDIO
Definition: mythplayer.h:55
MythPlayer::GetTitleName
virtual QString GetTitleName(int) const
Definition: mythplayer.h:224
MythPlayer::GetVideoSize
QSize GetVideoSize(void) const
Definition: mythplayer.h:131
MythPlayer::kInaccuracyEditor
static const double kInaccuracyEditor
Definition: mythplayer.h:246
mythavutil.h
MythPlayer::GetVideoAspect
float GetVideoAspect(void) const
Definition: mythplayer.h:132
kDecodeNoLoopFilter
@ kDecodeNoLoopFilter
Definition: mythplayer.h:68
decoderbase.h
mthread.h
kAudioMuted
@ kAudioMuted
Definition: mythplayer.h:72
PlayerContext
Definition: playercontext.h:48
TC_SUB
@ TC_SUB
Definition: mythplayer.h:56
MythPlayer::m_vidExitLock
QMutex m_vidExitLock
Definition: mythplayer.h:401
audioplayer.h
VideoPerformanceTest
Definition: mythtv/programs/mythavtest/main.cpp:33
MythPlayer::kInaccuracyFull
static const double kInaccuracyFull
Definition: mythplayer.h:247
MythPlayer::IsInStillFrame
virtual bool IsInStillFrame() const
Definition: mythplayer.h:234
MythVideoFrame
Definition: mythframe.h:85
MythPlayer::GetDecoder
const DecoderBase * GetDecoder(void) const
Returns the stream decoder currently in use.
Definition: mythplayer.h:338
InteractiveTV
This is the interface between an MHEG engine and a MythTV TV object.
Definition: interactivetv.h:15
MythPlayer::GetLength
int GetLength(void) const
Definition: mythplayer.h:141
CC708Reader
Definition: cc708reader.h:16
CC608Reader
Definition: cc608reader.h:79
FlagIsSet
#define FlagIsSet(arg)
Definition: mythplayer.h:77
MythPlayer::kInaccuracyDefault
static const double kInaccuracyDefault
Definition: mythplayer.h:245
MythPlayer::GetFFRewSkip
int GetFFRewSkip(void) const
Definition: mythplayer.h:137
MythPlayer::m_playingWaitCond
QWaitCondition m_playingWaitCond
Definition: mythplayer.h:400
mythplayeravsync.h
DecoderBase
Definition: decoderbase.h:120
kScan_Ignore
@ kScan_Ignore
Definition: videoouttypes.h:96
kDecodeFewBlocks
@ kDecodeFewBlocks
Definition: mythplayer.h:67
MythPlayer::NextAngle
virtual bool NextAngle(void)
Definition: mythplayer.h:173
Transcode
Definition: transcode.h:14
MythPlayer::TranslatePositionRelToAbs
uint64_t TranslatePositionRelToAbs(uint64_t position) const
Definition: mythplayer.h:273
TV
Control TV playback.
Definition: tv_play.h:152
DeleteMap
Definition: deletemap.h:25