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
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
#define Clear(a)
int GetCurrentTitle(void) const override
void DisplayPauseFrame(void) override
void CreateDecoder(TestBufferVec &TestBuffer) override
int GetNumTitles(void) const override
void GetChapterTimes(QList< std::chrono::seconds > &ChapterTimes) override
void DisplayMenu(void)
void SetBookmark(bool Clear) override
bool HasReachedEof(void) const override
bool NextTitle(void) override
bool JumpToFrame(uint64_t Frame) override
bool PrevTitle(void) override
uint64_t GetBookmark(void) override
void GoToMenu(const QString &Menu)
QString m_initialBDState
Definition: mythbdplayer.h:54
QString GetTitleName(int Title) const override
bool SwitchTitle(int Title) override
int64_t GetChapter(int Chapter) override
void EventStart(void) override
QString GetAngleName(int Angle) const override
std::chrono::seconds GetTitleDuration(int Title) const override
int GetNumChapters(void) override
bool VideoLoop(void) override
bool NextAngle(void) override
void PreProcessNormalFrame(void) override
void VideoStart(void) override
int GetCurrentChapter(void) override
bool PrevAngle(void) override
MythBDPlayer(MythMainWindow *MainWindow, TV *Tv, PlayerContext *Context, PlayerFlags Flags=kNoFlags)
int GetNumAngles(void) const override
int GetCurrentAngle(void) const override
bool m_stillFrameShowing
Definition: mythbdplayer.h:53
bool SwitchAngle(int Angle) override
Control TV playback.
Definition: tv_play.h:156
std::vector< char > TestBufferVec
Definition: decoderbase.h:23
PlayerFlags
Definition: mythplayer.h:65
@ kNoFlags
Definition: mythplayer.h:66