MythTV  master
mythdisplaydrm.h
Go to the documentation of this file.
1 #ifndef MYTHDISPLAYDRM_H
2 #define MYTHDISPLAYDRM_H
3 
4 // Qt
5 #include <QObject>
6 
7 // MythTV
9 #include "mythdisplay.h"
10 
12 {
13  Q_OBJECT
14 
15  public:
16  MythDisplayDRM(MythMainWindow* MainWindow);
17  ~MythDisplayDRM() override;
18 
19  public slots:
20  void MainWindowReady();
21  static bool DirectRenderingAvailable();
22 
23  public:
24  bool IsPlanar() override;
25  bool VideoModesAvailable() override;
26  bool UsingVideoModes() override;
27  void UpdateCurrentMode() override;
28  bool SwitchToVideoMode (QSize Size, double DesiredRate) override;
29  const MythDisplayModes& GetVideoModes() override;
30  MythDRMPtr GetDevice();
31 
32  signals:
33  void screenChanged();
34 
35  public slots:
36  void ScreenChanged(QScreen *qScreen) override;
37 
38  private:
40  QMap<uint64_t, int> m_modeMap { };
41 };
42 
43 #endif
MUI_PUBLIC
#define MUI_PUBLIC
Definition: mythuiexp.h:9
MythDisplay::IsPlanar
virtual bool IsPlanar()
Definition: mythdisplay.h:31
MythDisplayDRM::m_device
MythDRMPtr m_device
Definition: mythdisplaydrm.h:39
MythDisplay::ScreenChanged
virtual void ScreenChanged(QScreen *qScreen)
The actual screen in use has changed. We must use it.
Definition: mythdisplay.cpp:418
MythDisplayDRM
Definition: mythdisplaydrm.h:11
MythDisplayModes
std::vector< MythDisplayMode > MythDisplayModes
Definition: mythdisplaymode.h:18
MythDisplay::UpdateCurrentMode
virtual void UpdateCurrentMode()
Retrieve screen details.
Definition: mythdisplay.cpp:468
mythdisplay.h
MythDRMPtr
std::shared_ptr< class MythDRMDevice > MythDRMPtr
Definition: mythdrmdevice.h:18
MythDisplay::SwitchToVideoMode
virtual bool SwitchToVideoMode(QSize Size, double Framerate)
Definition: mythdisplay.cpp:837
MythDisplay
Definition: mythdisplay.h:22
MythDisplay::GetVideoModes
virtual const MythDisplayModes & GetVideoModes()
Definition: mythdisplay.cpp:842
mythdrmdevice.h
MythDisplay::UsingVideoModes
virtual bool UsingVideoModes()
Definition: mythdisplay.h:30
MythDisplay::VideoModesAvailable
virtual bool VideoModesAvailable()
Definition: mythdisplay.h:29
MythMainWindow
Definition: mythmainwindow.h:35