MythTV  master
mythdrmvrr.h
Go to the documentation of this file.
1 #ifndef MYTHDRMVRR_H
2 #define MYTHDRMVRR_H
3 
4 // MythTV
5 #include "mythvrr.h"
7 
8 class MythDRMVRR : public MythVRR
9 {
10  public:
11  static inline bool s_freeSyncResetOnExit = false;
12  static inline bool s_freeSyncDefaultValue = false;
13 
14  static void ForceFreeSync (const MythDRMPtr& Device, bool Enable);
16  ~MythDRMVRR() override;
17 
18  void SetEnabled(bool Enable = true) override;
20 
21  protected:
22  MythDRMVRR(MythDRMPtr Device, DRMProp VRRProp, bool Controllable,
23  bool Enabled, MythVRRRange Range);
24 
25  private:
26  MythDRMPtr m_device { nullptr };
27  DRMProp m_vrrProp { nullptr };
28 };
29 
30 #endif
MythDRMVRR::ForceFreeSync
static void ForceFreeSync(const MythDRMPtr &Device, bool Enable)
Force FreeSync on or off before the main app is started.
Definition: mythdrmvrr.cpp:9
MythDRMVRR::CreateFreeSync
static MythVRRPtr CreateFreeSync(const MythDRMPtr &Device, MythVRRRange Range)
Definition: mythdrmvrr.cpp:56
MythDRMVRR
A wrapper around FreeSync/Adaptive-Sync support.
Definition: mythdrmvrr.h:8
mythvrr.h
Device
A device containing images (ie. USB stick, CD, storage group etc)
Definition: imagemanager.cpp:33
MythDRMVRR::m_vrrProp
DRMProp m_vrrProp
Definition: mythdrmvrr.h:27
MythDRMVRR::GetVRRProperty
DRMProp GetVRRProperty()
Definition: mythdrmvrr.cpp:131
MythVRR
Definition: mythvrr.h:14
MythDRMVRR::s_freeSyncResetOnExit
static bool s_freeSyncResetOnExit
Definition: mythdrmvrr.h:11
MythDRMVRR::~MythDRMVRR
~MythDRMVRR() override
Definition: mythdrmvrr.cpp:106
MythDRMPtr
std::shared_ptr< class MythDRMDevice > MythDRMPtr
Definition: mythdrmdevice.h:18
DRMProp
std::shared_ptr< class MythDRMProperty > DRMProp
Definition: mythdrmproperty.h:7
MythDRMVRR::m_device
MythDRMPtr m_device
Definition: mythdrmvrr.h:26
MythVRRRange
std::tuple< int, int, bool > MythVRRRange
Definition: mythedid.h:19
MythDRMVRR::SetEnabled
void SetEnabled(bool Enable=true) override
Definition: mythdrmvrr.cpp:119
MythDRMVRR::MythDRMVRR
MythDRMVRR(MythDRMPtr Device, DRMProp VRRProp, bool Controllable, bool Enabled, MythVRRRange Range)
Definition: mythdrmvrr.cpp:98
MythVRR::Enabled
bool Enabled() const
Definition: mythvrr.cpp:104
MythDRMVRR::s_freeSyncDefaultValue
static bool s_freeSyncDefaultValue
Definition: mythdrmvrr.h:12
mythdrmdevice.h
MythVRRPtr
std::shared_ptr< class MythVRR > MythVRRPtr
Definition: mythvrr.h:11