MythTV
master
|
A wrapper around FreeSync/Adaptive-Sync support. More...
#include <libmythui/platforms/drm/mythdrmvrr.h>
Public Member Functions | |
~MythDRMVRR () override | |
void | SetEnabled (bool Enable=true) override |
DRMProp | GetVRRProperty () |
Public Member Functions inherited from MythVRR | |
virtual | ~MythVRR ()=default |
QString | TypeToString () const |
bool | Enabled () const |
MythVRRRange | GetRange () const |
QString | RangeDescription () const |
bool | IsControllable () const |
Static Public Member Functions | |
static void | ForceFreeSync (const MythDRMPtr &Device, bool Enable) |
Force FreeSync on or off before the main app is started. More... | |
static MythVRRPtr | CreateFreeSync (const MythDRMPtr &Device, MythVRRRange Range) |
Static Public Member Functions inherited from MythVRR | |
static MythVRRPtr | Create (class MythDisplay *MDisplay) |
Create a concrete implementation of MythVRR suitable for the given Display. More... | |
Static Public Attributes | |
static bool | s_freeSyncResetOnExit = false |
static bool | s_freeSyncDefaultValue = false |
Protected Member Functions | |
MythDRMVRR (MythDRMPtr Device, DRMProp VRRProp, bool Controllable, bool Enabled, MythVRRRange Range) | |
Protected Member Functions inherited from MythVRR | |
MythVRR (bool Controllable, VRRType Type, bool Enabled, MythVRRRange Range) | |
Private Attributes | |
MythDRMPtr | m_device { nullptr } |
DRMProp | m_vrrProp { nullptr } |
Additional Inherited Members | |
Public Types inherited from MythVRR | |
enum | VRRType : std::uint8_t { Unknown = 0, FreeSync, GSync, GSyncCompat } |
Protected Attributes inherited from MythVRR | |
bool | m_controllable { false } |
VRRType | m_type { Unknown } |
bool | m_enabled { false } |
MythVRRRange | m_range { 0, 0, false } |
A wrapper around FreeSync/Adaptive-Sync support.
FreeSync support on linux is currently limited to AMD when using a Display Port connection. FreeSync must be either enabled before starting MythTV (e.g xorg.conf) or the command line option -/–vrr can be used to try and force it on or off at startup. Note however that if running under X11 or Wayland, MythTV will not have the correct permissions to set FreeSync; it will only work via DRM (and typically using the eglfs QPA plugin) - although its current state can still be detected (and hence unnecessary mode switches avoided etc).
Definition at line 8 of file mythdrmvrr.h.
|
override |
Definition at line 106 of file mythdrmvrr.cpp.
|
protected |
Definition at line 98 of file mythdrmvrr.cpp.
Referenced by CreateFreeSync().
|
static |
Force FreeSync on or off before the main app is started.
Definition at line 9 of file mythdrmvrr.cpp.
|
static |
Definition at line 56 of file mythdrmvrr.cpp.
Referenced by MythVRR::Create(), and ForceFreeSync().
DRMProp MythDRMVRR::GetVRRProperty | ( | ) |
Definition at line 131 of file mythdrmvrr.cpp.
Definition at line 11 of file mythdrmvrr.h.
Referenced by MythDisplay::ConfigureQtGUI(), ForceFreeSync(), and ~MythDRMVRR().
Definition at line 12 of file mythdrmvrr.h.
Referenced by ForceFreeSync(), and ~MythDRMVRR().
|
private |
Definition at line 26 of file mythdrmvrr.h.
Referenced by SetEnabled().
|
private |
Definition at line 27 of file mythdrmvrr.h.
Referenced by GetVRRProperty(), and SetEnabled().