MythTV  master
mythdisplayx11.h
Go to the documentation of this file.
1 #ifndef MYTHDISPLAYX11_H
2 #define MYTHDISPLAYX11_H
3 
4 // Qt
5 #include <QMap>
6 
7 // MythTV
8 #include "mythdisplay.h"
9 #include "mythxdisplay.h"
10 
11 // X11
12 #include <X11/extensions/Xrandr.h> // always last
13 
15 {
16  public:
18  ~MythDisplayX11() override = default;
19  static bool IsAvailable(void);
20  void UpdateCurrentMode(void) override;
21  bool VideoModesAvailable(void) override { return true; }
22  bool UsingVideoModes(void) override;
23  const std::vector<MythDisplayMode>& GetVideoModes(void) override;
24  bool SwitchToVideoMode(QSize Size, double DesiredRate) override;
25 
26  private:
27  static XRROutputInfo* GetOutput(XRRScreenResources* Resources, MythXDisplay* mDisplay,
28  QScreen* qScreen, RROutput* Output = nullptr);
29 
30  private:
31  void GetEDID(MythXDisplay* mDisplay);
32 
33  QMap<uint64_t, unsigned long> m_modeMap { };
34  unsigned long m_crtc { 0 };
35 };
36 
37 #endif // MYTHDISPLAYX11_H
MythDisplayX11::GetVideoModes
const std::vector< MythDisplayMode > & GetVideoModes(void) override
Definition: mythdisplayx11.cpp:101
MythDisplayX11::m_modeMap
QMap< uint64_t, unsigned long > m_modeMap
Definition: mythdisplayx11.h:33
MythDisplayX11::GetOutput
static XRROutputInfo * GetOutput(XRRScreenResources *Resources, MythXDisplay *mDisplay, QScreen *qScreen, RROutput *Output=nullptr)
Definition: mythdisplayx11.cpp:235
MythDisplayX11::SwitchToVideoMode
bool SwitchToVideoMode(QSize Size, double DesiredRate) override
Definition: mythdisplayx11.cpp:181
MythDisplayX11::UpdateCurrentMode
void UpdateCurrentMode(void) override
Retrieve details for the current video mode.
Definition: mythdisplayx11.cpp:43
MythDisplayX11::UsingVideoModes
bool UsingVideoModes(void) override
Definition: mythdisplayx11.cpp:94
MythDisplayX11::MythDisplayX11
MythDisplayX11()
Definition: mythdisplayx11.cpp:12
mythdisplay.h
MythDisplayX11::VideoModesAvailable
bool VideoModesAvailable(void) override
Definition: mythdisplayx11.h:21
MythDisplayX11
Definition: mythdisplayx11.h:15
MythDisplayX11::m_crtc
unsigned long m_crtc
Definition: mythdisplayx11.h:34
MythDisplayX11::~MythDisplayX11
~MythDisplayX11() override=default
MythDisplay
Definition: mythdisplay.h:19
mythxdisplay.h
MythDisplayX11::IsAvailable
static bool IsAvailable(void)
Definition: mythdisplayx11.cpp:17
MythXDisplay
Definition: mythxdisplay.h:22
MythDisplay::GetEDID
MythEDID & GetEDID(void)
Definition: mythdisplay.cpp:847
Resources
QList< Resource * > Resources
Definition: upnpcdsobjects.h:127