|
MythTV master
|
A wrapper around NVidia GSync support (when using X11 and a Display Port connection). More...
#include <libmythui/platforms/mythnvcontrol.h>
Public Member Functions | |
| ~MythGSync () override | |
| void | SetEnabled (bool Enable=true) override |
Public Member Functions inherited from MythVRR | |
| virtual | ~MythVRR ()=default |
| virtual void | SetEnabled (bool Enable=true)=0 |
| QString | TypeToString () const |
| bool | Enabled () const |
| MythVRRRange | GetRange () const |
| QString | RangeDescription () const |
| bool | IsControllable () const |
Static Public Member Functions | |
| static void | ForceGSync (bool Enable) |
| Enable or disable GSync before the main window is created. More... | |
| static MythVRRPtr | CreateGSync (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_gsyncResetOnExit = false |
| static bool | s_gsyncDefaultValue = false |
Protected Member Functions | |
| MythGSync (NVControl Device, VRRType Type, bool Enabled, MythVRRRange Range) | |
Protected Member Functions inherited from MythVRR | |
| MythVRR (bool Controllable, VRRType Type, bool Enabled, MythVRRRange Range) | |
Protected Attributes | |
| NVControl | m_nvControl { nullptr } |
Protected Attributes inherited from MythVRR | |
| bool | m_controllable { false } |
| VRRType | m_type { Unknown } |
| bool | m_enabled { false } |
| MythVRRRange | m_range { 0, 0, false } |
Additional Inherited Members | |
Public Types inherited from MythVRR | |
| enum | VRRType : std::uint8_t { Unknown = 0 , FreeSync , GSync , GSyncCompat } |
A wrapper around NVidia GSync support (when using X11 and a Display Port connection).
If libXNVCtrl support is available through the MythNVControl class, then we can check for GSync capabilities and state. Note however that any changes requested to the GSync state will have no effect while the current GUI is running; so if we want to enable/disable GSync it must be done before we create the main window (and we can revert that state on exit).
Definition at line 10 of file mythnvcontrol.h.
|
override |
Definition at line 140 of file mythnvcontrol.cpp.
|
protected |
Definition at line 134 of file mythnvcontrol.cpp.
Referenced by CreateGSync().
|
static |
Definition at line 84 of file mythnvcontrol.cpp.
Referenced by MythVRR::Create(), and ForceGSync().
|
static |
Enable or disable GSync before the main window is created.
If the state has been changed, s_gsyncResetOnExit will be set to true and s_gsyncDefaultValue will be set to the default/desktop value so that the MythDisplay instance can reset GSync on exit.
Definition at line 60 of file mythnvcontrol.cpp.
Referenced by MythDisplay::ConfigureQtGUI().
|
protected |
Definition at line 22 of file mythnvcontrol.h.
Referenced by SetEnabled().
Definition at line 14 of file mythnvcontrol.h.
Referenced by ForceGSync(), and ~MythGSync().
Definition at line 13 of file mythnvcontrol.h.
Referenced by MythDisplay::ConfigureQtGUI(), ForceGSync(), and ~MythGSync().