Improve AV1 support
This commit is contained in:
parent
a589e8e3de
commit
abc391f32a
7 changed files with 194 additions and 51 deletions
|
|
@ -20,6 +20,7 @@
|
|||
#define SER_MULTICONT "multicontroller"
|
||||
#define SER_AUDIOCFG "audiocfg"
|
||||
#define SER_VIDEOCFG "videocfg"
|
||||
#define SER_HDR "hdr"
|
||||
#define SER_VIDEODEC "videodec"
|
||||
#define SER_WINDOWMODE "windowmode"
|
||||
#define SER_UNSUPPORTEDFPS "unsupportedfps"
|
||||
|
|
@ -104,6 +105,7 @@ void StreamingPreferences::reload()
|
|||
reverseScrollDirection = settings.value(SER_REVERSESCROLL, false).toBool();
|
||||
swapFaceButtons = settings.value(SER_SWAPFACEBUTTONS, false).toBool();
|
||||
keepAwake = settings.value(SER_KEEPAWAKE, true).toBool();
|
||||
enableHdr = settings.value(SER_HDR, false).toBool();
|
||||
captureSysKeysMode = static_cast<CaptureSysKeysMode>(settings.value(SER_CAPTURESYSKEYS,
|
||||
static_cast<int>(CaptureSysKeysMode::CSK_OFF)).toInt());
|
||||
audioConfig = static_cast<AudioConfig>(settings.value(SER_AUDIOCFG,
|
||||
|
|
@ -137,6 +139,12 @@ void StreamingPreferences::reload()
|
|||
windowMode = WindowMode::WM_FULLSCREEN_DESKTOP;
|
||||
}
|
||||
}
|
||||
|
||||
// Fixup VCC value to the new settings format with codec and HDR separate
|
||||
if (videoCodecConfig == VCC_FORCE_HEVC_HDR_DEPRECATED) {
|
||||
videoCodecConfig = VCC_AUTO;
|
||||
enableHdr = true;
|
||||
}
|
||||
}
|
||||
|
||||
bool StreamingPreferences::retranslate()
|
||||
|
|
@ -273,6 +281,7 @@ void StreamingPreferences::save()
|
|||
settings.setValue(SER_PACKETSIZE, packetSize);
|
||||
settings.setValue(SER_DETECTNETBLOCKING, detectNetworkBlocking);
|
||||
settings.setValue(SER_AUDIOCFG, static_cast<int>(audioConfig));
|
||||
settings.setValue(SER_HDR, enableHdr);
|
||||
settings.setValue(SER_VIDEOCFG, static_cast<int>(videoCodecConfig));
|
||||
settings.setValue(SER_VIDEODEC, static_cast<int>(videoDecoderSelection));
|
||||
settings.setValue(SER_WINDOWMODE, static_cast<int>(windowMode));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue