MythTV  master
mythbdplayer.h
Go to the documentation of this file.
1 #ifndef MYTHBDPLAYER_H
2 #define MYTHBDPLAYER_H
3 
4 // Qt
5 #include <QCoreApplication>
6 
7 // MythTV
8 #include "mythplayerui.h"
9 
10 class MythBDPlayer : public MythPlayerUI
11 {
12  Q_OBJECT
13 
14  public:
15  MythBDPlayer(MythMainWindow* MainWindow, TV* Tv, PlayerContext* Context, PlayerFlags Flags = kNoFlags);
16  bool HasReachedEof (void) const override;
17  int GetNumChapters (void) override;
18  int GetCurrentChapter (void) override;
19  void GetChapterTimes (QList<std::chrono::seconds> &ChapterTimes) override;
20  int64_t GetChapter (int Chapter) override;
21  int GetNumTitles (void) const override;
22  int GetNumAngles (void) const override;
23  int GetCurrentTitle (void) const override;
24  int GetCurrentAngle (void) const override;
25  std::chrono::seconds GetTitleDuration (int Title) const override;
26  QString GetTitleName (int Title) const override;
27  QString GetAngleName (int Angle) const override;
28  bool SwitchTitle (int Title) override;
29  bool PrevTitle (void) override;
30  bool NextTitle (void) override;
31  bool SwitchAngle (int Angle) override;
32  bool PrevAngle (void) override;
33  bool NextAngle (void) override;
34  uint64_t GetBookmark (void) override;
35 
36  protected slots:
37  void GoToMenu (const QString& Menu);
38  void SetBookmark (bool Clear) override;
39 
40  protected:
41  void VideoStart (void) override;
42  bool VideoLoop (void) override;
43  void EventStart (void) override;
44  void DisplayPauseFrame (void) override;
45  void PreProcessNormalFrame(void) override;
46  bool JumpToFrame (uint64_t Frame) override;
47  void CreateDecoder (TestBufferVec & TestBuffer) override;
48 
49  private:
50  Q_DISABLE_COPY(MythBDPlayer)
51  void DisplayMenu(void);
52 
53  bool m_stillFrameShowing { false };
55 };
56 
57 #endif
MythBDPlayer::GetChapter
int64_t GetChapter(int Chapter) override
Definition: mythbdplayer.cpp:182
MythBDPlayer::EventStart
void EventStart(void) override
Definition: mythbdplayer.cpp:150
mythplayerui.h
MythBDPlayer::PrevAngle
bool PrevAngle(void) override
Definition: mythbdplayer.cpp:336
MythBDPlayer::SetBookmark
void SetBookmark(bool Clear) override
Definition: mythbdplayer.cpp:347
MythBDPlayer::GetNumTitles
int GetNumTitles(void) const override
Definition: mythbdplayer.cpp:197
Frame
Definition: zmdefines.h:93
MythBDPlayer::GoToMenu
void GoToMenu(const QString &Menu)
Definition: mythbdplayer.cpp:31
MythBDPlayer::DisplayPauseFrame
void DisplayPauseFrame(void) override
Definition: mythbdplayer.cpp:53
MythBDPlayer::m_stillFrameShowing
bool m_stillFrameShowing
Definition: mythbdplayer.h:53
MythBDPlayer::GetCurrentAngle
int GetCurrentAngle(void) const override
Definition: mythbdplayer.cpp:221
MythBDPlayer::NextTitle
bool NextTitle(void) override
Definition: mythbdplayer.cpp:287
PlayerFlags
PlayerFlags
Definition: mythplayer.h:65
MythBDPlayer::DisplayMenu
void DisplayMenu(void)
Definition: mythbdplayer.cpp:43
MythBDPlayer::NextAngle
bool NextAngle(void) override
Definition: mythbdplayer.cpp:325
MythBDPlayer::CreateDecoder
void CreateDecoder(TestBufferVec &TestBuffer) override
Definition: mythbdplayer.cpp:423
MythPlayerUI
Definition: mythplayerui.h:10
MythBDPlayer::VideoStart
void VideoStart(void) override
Definition: mythbdplayer.cpp:61
MythBDPlayer::PrevTitle
bool PrevTitle(void) override
Definition: mythbdplayer.cpp:300
MythBDPlayer::m_initialBDState
QString m_initialBDState
Definition: mythbdplayer.h:54
MythBDPlayer::GetNumAngles
int GetNumAngles(void) const override
Definition: mythbdplayer.cpp:207
MythBDPlayer::MythBDPlayer
MythBDPlayer(MythMainWindow *MainWindow, TV *Tv, PlayerContext *Context, PlayerFlags Flags=kNoFlags)
Definition: mythbdplayer.cpp:12
TestBufferVec
std::vector< char > TestBufferVec
Definition: decoderbase.h:23
MythBDPlayer::SwitchAngle
bool SwitchAngle(int Angle) override
Definition: mythbdplayer.cpp:313
MythBDPlayer::GetTitleDuration
std::chrono::seconds GetTitleDuration(int Title) const override
Definition: mythbdplayer.cpp:228
MythBDPlayer::SwitchTitle
bool SwitchTitle(int Title) override
Definition: mythbdplayer.cpp:257
MythBDPlayer::VideoLoop
bool VideoLoop(void) override
Definition: mythbdplayer.cpp:69
MythBDPlayer
Definition: mythbdplayer.h:10
kNoFlags
@ kNoFlags
Definition: mythplayer.h:67
MythBDPlayer::GetAngleName
QString GetAngleName(int Angle) const override
Definition: mythbdplayer.cpp:250
Clear
#define Clear(a)
Definition: audiooutputopensles.cpp:47
MythBDPlayer::GetCurrentChapter
int GetCurrentChapter(void) override
Definition: mythbdplayer.cpp:175
MythBDPlayer::HasReachedEof
bool HasReachedEof(void) const override
Definition: mythbdplayer.cpp:18
MythBDPlayer::PreProcessNormalFrame
void PreProcessNormalFrame(void) override
Definition: mythbdplayer.cpp:26
PlayerContext
Definition: playercontext.h:52
MythBDPlayer::GetCurrentTitle
int GetCurrentTitle(void) const override
Definition: mythbdplayer.cpp:214
MythBDPlayer::GetBookmark
uint64_t GetBookmark(void) override
Definition: mythbdplayer.cpp:391
MythBDPlayer::GetChapterTimes
void GetChapterTimes(QList< std::chrono::seconds > &ChapterTimes) override
Definition: mythbdplayer.cpp:190
MythBDPlayer::GetTitleName
QString GetTitleName(int Title) const override
Definition: mythbdplayer.cpp:238
MythBDPlayer::JumpToFrame
bool JumpToFrame(uint64_t Frame) override
Definition: mythbdplayer.cpp:143
MythMainWindow
Definition: mythmainwindow.h:35
MythBDPlayer::GetNumChapters
int GetNumChapters(void) override
Definition: mythbdplayer.cpp:168
TV
Control TV playback.
Definition: tv_play.h:154