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"
9class MythXDisplay;
10
12{
13 public:
15 ~MythDisplayX11() override = default;
16
17 static bool IsAvailable ();
18 bool VideoModesAvailable() override { return true; }
19 bool UsingVideoModes () override;
20 const MythDisplayModes& GetVideoModes() override;
21
22 protected:
23 void UpdateCurrentMode () override;
24 bool SwitchToVideoMode (QSize Size, double DesiredRate) override;
25
26 private:
27 void GetEDID(MythXDisplay* mDisplay);
28
29 QMap<uint64_t, unsigned long> m_modeMap;
30 unsigned long m_crtc { 0 };
31};
32
33#endif
~MythDisplayX11() override=default
static bool IsAvailable()
bool SwitchToVideoMode(QSize Size, double DesiredRate) override
bool VideoModesAvailable() override
bool UsingVideoModes() override
const MythDisplayModes & GetVideoModes() override
QMap< uint64_t, unsigned long > m_modeMap
unsigned long m_crtc
void UpdateCurrentMode() override
Retrieve details for the current video mode.
MythEDID & GetEDID()
std::vector< MythDisplayMode > MythDisplayModes