Skip to content

Commit 1c47de5

Browse files
authored
Update AVInput.h
1 parent 34da754 commit 1c47de5

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

AVInput/AVInput.h

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ class AVInput: public PluginHost::IPlugin, public PluginHost::JSONRPC
4747

4848
int m_primVolume;
4949
int m_inputVolume; //Player Volume
50+
51+
typedef enum {
52+
VRR_NONE, // No VRR support
53+
VRR_HDMI_VRR, // VRR (HDMI v2.1 flavour)
54+
VRR_AMD_FREESYNC, // AMD FreeSync
55+
VRR_AMD_FREESYNC_PREMIUM, // AMD FreeSync Premium
56+
VRR_AMD_FREESYNC_PREMIUM_PRO // AMD FreeSync Premium Pro
57+
}VRRType_t;
58+
5059
public:
5160
// IPlugin methods
5261
// -------------------------------------------------------------------------------------------------------
@@ -99,7 +108,7 @@ class AVInput: public PluginHost::IPlugin, public PluginHost::JSONRPC
99108
int getEdidVersion(int iPort);
100109
bool setVideoRectangle(int x, int y, int width, int height, int type);
101110
bool getALLMStatus(int iPort);
102-
bool getVRRStatus(int iPort);
111+
bool getVRRStatus(int iPort, VRRType_t vrrType);
103112

104113
void AVInputHotplug(int input , int connect, int type);
105114
static void dsAVEventHandler(const char *owner, IARM_EventId_t eventId, void *data, size_t len);
@@ -114,6 +123,9 @@ class AVInput: public PluginHost::IPlugin, public PluginHost::JSONRPC
114123
static void dsAVVideoModeEventHandler(const char *owner, IARM_EventId_t eventId, void *data, size_t len);
115124

116125
void AVInputALLMChange( int port , bool allmMode);
126+
void AVInput::AVInputHDMIVRRChange( int port , bool vrr_mode);
127+
void AVInput::AVInputAMDFreeSyncChange( int port , bool vrr_mode);
128+
117129
static void dsAVGameFeatureStatusEventHandler(const char *owner, IARM_EventId_t eventId, void *data, size_t len);
118130

119131
void hdmiInputAviContentTypeChange(int port, int content_type);

0 commit comments

Comments
 (0)