MythTV  master
mythdrmcrtc.h
Go to the documentation of this file.
1 #ifndef MYTHDRMCRTC_H
2 #define MYTHDRMCRTC_H
3 
4 // MythTV
7 
8 using DRMCrtc = std::shared_ptr<class MythDRMCrtc>;
9 using DRMCrtcs = std::vector<DRMCrtc>;
10 
12 {
13  public:
14  static DRMCrtc Create(int FD, uint32_t Id, int Index = -1);
15  static DRMCrtc GetCrtc(const DRMCrtcs& Crtcs, uint32_t Id);
16  static DRMCrtcs GetCrtcs(int FD);
17 
18  int m_index { -1 };
19  uint32_t m_id { 0 };
20  uint32_t m_fbId { 0 };
21  DRMMode m_mode { nullptr };
22  uint32_t m_x { 0 };
23  uint32_t m_y { 0 };
24  uint32_t m_width { 0 };
25  uint32_t m_height { 0 };
27 
28  protected:
29  MythDRMCrtc(int FD, uint32_t Id, int Index);
30  static int RetrieveCRTCIndex(int FD, uint32_t Id);
31 
32  private:
33  Q_DISABLE_COPY(MythDRMCrtc)
34 };
35 
36 #endif
mythdrmproperty.h
DRMProps
std::vector< DRMProp > DRMProps
Definition: mythdrmproperty.h:8
MUI_PUBLIC
#define MUI_PUBLIC
Definition: mythuiexp.h:9
DRMCrtc
std::shared_ptr< class MythDRMCrtc > DRMCrtc
Definition: mythdrmcrtc.h:8
MythDRMCrtc::m_properties
DRMProps m_properties
Definition: mythdrmcrtc.h:26
DRMCrtcs
std::vector< DRMCrtc > DRMCrtcs
Definition: mythdrmcrtc.h:9
DRMMode
std::shared_ptr< class MythDRMMode > DRMMode
Definition: mythdrmmode.h:7
MythDRMCrtc
A simple wrapper around a DRM CRTC object.
Definition: mythdrmcrtc.h:11
mythdrmmode.h