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 void UpdateCurrentMode () override;
19 bool VideoModesAvailable() override { return true; }
20 bool UsingVideoModes () override;
21 bool SwitchToVideoMode (QSize Size, double DesiredRate) override;
22 const MythDisplayModes& GetVideoModes() override;
23
24 private:
25 void GetEDID(MythXDisplay* mDisplay);
26
27 QMap<uint64_t, unsigned long> m_modeMap;
28 unsigned long m_crtc { 0 };
29};
30
31#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