MythTV  master
mythdisplayrpi.h
Go to the documentation of this file.
1 #ifndef MYTHDISPLAYRPI_H
2 #define MYTHDISPLAYRPI_H
3 
4 // Qt
5 #include <QMap>
6 #include <QWaitCondition>
7 
8 // MythTV
9 #include "mythdisplay.h"
10 
11 // Broadcom
12 extern "C" {
13 #include "interface/vmcs_host/vc_tvservice.h"
14 }
15 
17 {
18  Q_OBJECT
19 
20  public:
22  ~MythDisplayRPI() override;
23 
24  void UpdateCurrentMode (void) override;
25  bool VideoModesAvailable(void) override { return true; }
26  bool UsingVideoModes (void) override;
27  bool SwitchToVideoMode (QSize Size, double Framerate) override;
28  const vector<MythDisplayMode>& GetVideoModes(void) override;
29  void Callback(uint32_t Reason, uint32_t, uint32_t);
30 
31  private:
32  void GetEDID(void);
33 
34  QMutex m_modeChangeLock { };
35  QWaitCondition m_modeChangeWait { };
36  VCHI_INSTANCE_T m_vchiInstance { nullptr };
37  int m_deviceId { -1 };
38  QMap<uint64_t, QPair<uint32_t, uint32_t> > m_modeMap { };
39 };
40 
41 #endif // MYTHDISPLAYRPI_H
MythDisplayRPI::~MythDisplayRPI
~MythDisplayRPI() override
Definition: mythdisplayrpi.cpp:97
MythDisplayRPI::SwitchToVideoMode
bool SwitchToVideoMode(QSize Size, double Framerate) override
Definition: mythdisplayrpi.cpp:237
MythDisplayRPI::Callback
void Callback(uint32_t Reason, uint32_t, uint32_t)
Definition: mythdisplayrpi.cpp:104
MythDisplayRPI
Definition: mythdisplayrpi.h:17
MythDisplayRPI::UsingVideoModes
bool UsingVideoModes(void) override
Definition: mythdisplayrpi.cpp:164
MythDisplayRPI::m_deviceId
int m_deviceId
Definition: mythdisplayrpi.h:37
MythDisplayRPI::m_modeMap
QMap< uint64_t, QPair< uint32_t, uint32_t > > m_modeMap
Definition: mythdisplayrpi.h:38
mythdisplay.h
MythDisplayRPI::GetVideoModes
const vector< MythDisplayMode > & GetVideoModes(void) override
Definition: mythdisplayrpi.cpp:171
MythDisplayRPI::VideoModesAvailable
bool VideoModesAvailable(void) override
Definition: mythdisplayrpi.h:25
MythDisplayRPI::m_modeChangeWait
QWaitCondition m_modeChangeWait
Definition: mythdisplayrpi.h:35
MythDisplay
Definition: mythdisplay.h:19
MythDisplayRPI::UpdateCurrentMode
void UpdateCurrentMode(void) override
Retrieve screen details.
Definition: mythdisplayrpi.cpp:110
MythDisplayRPI::GetEDID
void GetEDID(void)
Definition: mythdisplayrpi.cpp:134
MythDisplayRPI::MythDisplayRPI
MythDisplayRPI()
Definition: mythdisplayrpi.cpp:53
MythDisplayRPI::m_modeChangeLock
QMutex m_modeChangeLock
Definition: mythdisplayrpi.h:34
MythDisplayRPI::m_vchiInstance
VCHI_INSTANCE_T m_vchiInstance
Definition: mythdisplayrpi.h:36