From a572681737864ce38d091745fc42618e5f0ca012 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 22 May 2024 23:28:14 -0700 Subject: [PATCH] Add --hdr and --no-hdr command-line arguments Fixes #1287 --- app/cli/commandlineparser.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/cli/commandlineparser.cpp b/app/cli/commandlineparser.cpp index eca103ba..ab5ecbdb 100644 --- a/app/cli/commandlineparser.cpp +++ b/app/cli/commandlineparser.cpp @@ -372,6 +372,7 @@ void StreamCommandLineParser::parse(const QStringList &args, StreamingPreference parser.addToggleOption("swap-gamepad-buttons", "swap A/B and X/Y gamepad buttons (Nintendo-style)"); parser.addToggleOption("keep-awake", "prevent display sleep while streaming"); parser.addToggleOption("performance-overlay", "show performance overlay"); + parser.addToggleOption("hdr", "HDR streaming"); parser.addChoiceOption("capture-system-keys", "capture system key combos", m_CaptureSysKeysModeMap.keys()); parser.addChoiceOption("video-codec", "video codec", m_VideoCodecMap.keys()); parser.addChoiceOption("video-decoder", "video decoder", m_VideoDecoderMap.keys()); @@ -486,8 +487,11 @@ void StreamCommandLineParser::parse(const QStringList &args, StreamingPreference // Resolve --keep-awake and --no-keep-awake options preferences->keepAwake = parser.getToggleOptionValue("keep-awake", preferences->keepAwake); - // Resolve --performance-overlay option + // Resolve --performance-overlay and --no-performance-overlay options preferences->showPerformanceOverlay = parser.getToggleOptionValue("performance-overlay", preferences->showPerformanceOverlay); + + // Resolve --hdr and --no-hdr options + preferences->enableHdr = parser.getToggleOptionValue("hdr", preferences->enableHdr); // Resolve --capture-system-keys option if (parser.isSet("capture-system-keys")) {