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
8class 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
A device containing images (ie. USB stick, CD, storage group etc)
A wrapper around FreeSync/Adaptive-Sync support.
Definition: mythdrmvrr.h:9
static void ForceFreeSync(const MythDRMPtr &Device, bool Enable)
Force FreeSync on or off before the main app is started.
Definition: mythdrmvrr.cpp:9
void SetEnabled(bool Enable=true) override
Definition: mythdrmvrr.cpp:119
static MythVRRPtr CreateFreeSync(const MythDRMPtr &Device, MythVRRRange Range)
Definition: mythdrmvrr.cpp:56
MythDRMPtr m_device
Definition: mythdrmvrr.h:26
DRMProp m_vrrProp
Definition: mythdrmvrr.h:27
MythDRMVRR(MythDRMPtr Device, DRMProp VRRProp, bool Controllable, bool Enabled, MythVRRRange Range)
Definition: mythdrmvrr.cpp:98
static bool s_freeSyncDefaultValue
Definition: mythdrmvrr.h:12
static bool s_freeSyncResetOnExit
Definition: mythdrmvrr.h:11
~MythDRMVRR() override
Definition: mythdrmvrr.cpp:106
DRMProp GetVRRProperty()
Definition: mythdrmvrr.cpp:131
bool Enabled() const
Definition: mythvrr.cpp:107
std::shared_ptr< class MythDRMDevice > MythDRMPtr
Definition: mythdrmdevice.h:19
std::shared_ptr< class MythDRMProperty > DRMProp
std::tuple< int, int, bool > MythVRRRange
Definition: mythedid.h:19
std::shared_ptr< class MythVRR > MythVRRPtr
Definition: mythvrr.h:12