MythTV master
Classes | Macros | Typedefs | Enumerations | Variables
mythnvcontrol.cpp File Reference
#include "mythnvcontrol.h"
#include <QLibrary>
#include <QString>
#include <QStringList>
#include "libmythbase/mythlogging.h"
#include "platforms/mythxdisplay.h"
#include <X11/Xlib.h>
Include dependency graph for mythnvcontrol.cpp:

Go to the source code of this file.

Classes

class  MythNVControl
 A simple wrapper around libXNVCtrl - which is dynamically loaded on demand. More...
 

Macros

#define LOC   QString("NVCtrl: ")
 

Typedefs

using QueryTargetBinary = bool(*)(Display *, int, int, unsigned int, unsigned int, unsigned char **, int *)
 
using QueryScreenAttrib = bool(*)(Display *, int, unsigned int, unsigned int, int *)
 
using QueryTargetAttrib = bool(*)(Display *, int, int, unsigned int, unsigned int, int *)
 
using SetAttribute = void(*)(Display *, int, unsigned int, unsigned int, int)
 

Enumerations

enum  NV_CTRL_DISPLAY_VRR_MODES : std::uint8_t { NV_CTRL_DISPLAY_VRR_MODE_NONE = 0 , NV_CTRL_DISPLAY_VRR_MODE_GSYNC = 1 , NV_CTRL_DISPLAY_VRR_MODE_GSYNC_COMPATIBLE = 2 , NV_CTRL_DISPLAY_VRR_MODE_GSYNC_COMPATIBLE_UNVALIDATED = 3 }
 

Variables

static constexpr int NV_CTRL_TARGET_TYPE_X_SCREEN { 0 }
 
static constexpr int NV_CTRL_TARGET_TYPE_DISPLAY { 8 }
 
static constexpr uint NV_CTRL_BINARY_DATA_DISPLAYS_ENABLED_ON_XSCREEN { 17 }
 
static constexpr uint NV_CTRL_VRR_ALLOWED { 408 }
 
static constexpr uint NV_CTRL_DISPLAY_VRR_MODE { 429 }
 
static constexpr uint NV_CTRL_DISPLAY_VRR_ENABLED { 431 }
 
static constexpr uint NV_CTRL_DISPLAY_VRR_MIN_REFRESH_RATE { 430 }
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("NVCtrl: ")

Definition at line 13 of file mythnvcontrol.cpp.

Typedef Documentation

◆ QueryScreenAttrib

using QueryScreenAttrib = bool(*)(Display*,int,unsigned int,unsigned int,int*)

Definition at line 30 of file mythnvcontrol.cpp.

◆ QueryTargetAttrib

using QueryTargetAttrib = bool(*)(Display*,int,int,unsigned int,unsigned int,int*)

Definition at line 31 of file mythnvcontrol.cpp.

◆ QueryTargetBinary

using QueryTargetBinary = bool(*)(Display*,int,int,unsigned int,unsigned int, unsigned char**,int*)

Definition at line 29 of file mythnvcontrol.cpp.

◆ SetAttribute

using SetAttribute = void(*)(Display*,int,unsigned int,unsigned int,int)

Definition at line 32 of file mythnvcontrol.cpp.

Enumeration Type Documentation

◆ NV_CTRL_DISPLAY_VRR_MODES

enum NV_CTRL_DISPLAY_VRR_MODES : std::uint8_t
Enumerator
NV_CTRL_DISPLAY_VRR_MODE_NONE 
NV_CTRL_DISPLAY_VRR_MODE_GSYNC 
NV_CTRL_DISPLAY_VRR_MODE_GSYNC_COMPATIBLE 
NV_CTRL_DISPLAY_VRR_MODE_GSYNC_COMPATIBLE_UNVALIDATED 

Definition at line 20 of file mythnvcontrol.cpp.

Variable Documentation

◆ NV_CTRL_BINARY_DATA_DISPLAYS_ENABLED_ON_XSCREEN

constexpr uint NV_CTRL_BINARY_DATA_DISPLAYS_ENABLED_ON_XSCREEN { 17 }
staticconstexpr

Definition at line 17 of file mythnvcontrol.cpp.

Referenced by MythNVControl::GetDisplayID().

◆ NV_CTRL_DISPLAY_VRR_ENABLED

constexpr uint NV_CTRL_DISPLAY_VRR_ENABLED { 431 }
staticconstexpr

Definition at line 26 of file mythnvcontrol.cpp.

Referenced by MythGSync::CreateGSync().

◆ NV_CTRL_DISPLAY_VRR_MIN_REFRESH_RATE

constexpr uint NV_CTRL_DISPLAY_VRR_MIN_REFRESH_RATE { 430 }
staticconstexpr

Definition at line 27 of file mythnvcontrol.cpp.

Referenced by MythGSync::CreateGSync().

◆ NV_CTRL_DISPLAY_VRR_MODE

constexpr uint NV_CTRL_DISPLAY_VRR_MODE { 429 }
staticconstexpr

Definition at line 19 of file mythnvcontrol.cpp.

Referenced by MythGSync::CreateGSync().

◆ NV_CTRL_TARGET_TYPE_DISPLAY

constexpr int NV_CTRL_TARGET_TYPE_DISPLAY { 8 }
staticconstexpr

Definition at line 16 of file mythnvcontrol.cpp.

Referenced by MythGSync::CreateGSync().

◆ NV_CTRL_TARGET_TYPE_X_SCREEN

constexpr int NV_CTRL_TARGET_TYPE_X_SCREEN { 0 }
staticconstexpr

Definition at line 15 of file mythnvcontrol.cpp.

Referenced by MythNVControl::GetDisplayID().

◆ NV_CTRL_VRR_ALLOWED

constexpr uint NV_CTRL_VRR_ALLOWED { 408 }
staticconstexpr

Definition at line 18 of file mythnvcontrol.cpp.

Referenced by MythGSync::CreateGSync(), and MythGSync::SetEnabled().