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
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:184
MythBDPlayer::EventStart
void EventStart(void) override
Definition: mythbdplayer.cpp:152
mythplayerui.h
MythBDPlayer::PrevAngle
bool PrevAngle(void) override
Definition: mythbdplayer.cpp:338
MythBDPlayer::SetBookmark
void SetBookmark(bool Clear) override
Definition: mythbdplayer.cpp:349
MythBDPlayer::GetNumTitles
int GetNumTitles(void) const override
Definition: mythbdplayer.cpp:199
Frame
Definition: zmdefines.h:93
MythBDPlayer::GoToMenu
void GoToMenu(const QString &Menu)
Definition: mythbdplayer.cpp:33
MythBDPlayer::DisplayPauseFrame
void DisplayPauseFrame(void) override
Definition: mythbdplayer.cpp:55
MythBDPlayer::m_stillFrameShowing
bool m_stillFrameShowing
Definition: mythbdplayer.h:53
MythBDPlayer::GetCurrentAngle
int GetCurrentAngle(void) const override
Definition: mythbdplayer.cpp:223
MythBDPlayer::NextTitle
bool NextTitle(void) override
Definition: mythbdplayer.cpp:289
PlayerFlags
PlayerFlags
Definition: mythplayer.h:64
MythBDPlayer::DisplayMenu
void DisplayMenu(void)
Definition: mythbdplayer.cpp:45
MythBDPlayer::NextAngle
bool NextAngle(void) override
Definition: mythbdplayer.cpp:327
MythBDPlayer::CreateDecoder
void CreateDecoder(TestBufferVec &TestBuffer) override
Definition: mythbdplayer.cpp:425
MythPlayerUI
Definition: mythplayerui.h:12
MythBDPlayer::VideoStart
void VideoStart(void) override
Definition: mythbdplayer.cpp:63
MythBDPlayer::PrevTitle
bool PrevTitle(void) override
Definition: mythbdplayer.cpp:302
MythBDPlayer::m_initialBDState
QString m_initialBDState
Definition: mythbdplayer.h:54
MythBDPlayer::GetNumAngles
int GetNumAngles(void) const override
Definition: mythbdplayer.cpp:209
MythBDPlayer::MythBDPlayer
MythBDPlayer(MythMainWindow *MainWindow, TV *Tv, PlayerContext *Context, PlayerFlags Flags=kNoFlags)
Definition: mythbdplayer.cpp:14
TestBufferVec
std::vector< char > TestBufferVec
Definition: decoderbase.h:23
MythBDPlayer::SwitchAngle
bool SwitchAngle(int Angle) override
Definition: mythbdplayer.cpp:315
MythBDPlayer::GetTitleDuration
std::chrono::seconds GetTitleDuration(int Title) const override
Definition: mythbdplayer.cpp:230
MythBDPlayer::SwitchTitle
bool SwitchTitle(int Title) override
Definition: mythbdplayer.cpp:259
MythBDPlayer::VideoLoop
bool VideoLoop(void) override
Definition: mythbdplayer.cpp:71
MythBDPlayer
Definition: mythbdplayer.h:10
kNoFlags
@ kNoFlags
Definition: mythplayer.h:66
MythBDPlayer::GetAngleName
QString GetAngleName(int Angle) const override
Definition: mythbdplayer.cpp:252
Clear
#define Clear(a)
Definition: audiooutputopensles.cpp:54
MythBDPlayer::GetCurrentChapter
int GetCurrentChapter(void) override
Definition: mythbdplayer.cpp:177
MythBDPlayer::HasReachedEof
bool HasReachedEof(void) const override
Definition: mythbdplayer.cpp:20
MythBDPlayer::PreProcessNormalFrame
void PreProcessNormalFrame(void) override
Definition: mythbdplayer.cpp:28
PlayerContext
Definition: playercontext.h:49
MythBDPlayer::GetCurrentTitle
int GetCurrentTitle(void) const override
Definition: mythbdplayer.cpp:216
MythBDPlayer::GetBookmark
uint64_t GetBookmark(void) override
Definition: mythbdplayer.cpp:393
MythBDPlayer::GetChapterTimes
void GetChapterTimes(QList< std::chrono::seconds > &ChapterTimes) override
Definition: mythbdplayer.cpp:192
MythBDPlayer::GetTitleName
QString GetTitleName(int Title) const override
Definition: mythbdplayer.cpp:240
MythBDPlayer::JumpToFrame
bool JumpToFrame(uint64_t Frame) override
Definition: mythbdplayer.cpp:145
MythMainWindow
Definition: mythmainwindow.h:28
MythBDPlayer::GetNumChapters
int GetNumChapters(void) override
Definition: mythbdplayer.cpp:170
TV
Control TV playback.
Definition: tv_play.h:152