mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-25 13:31:41 +00:00
Add colorspace and color range override options
This commit is contained in:
1 parent
36db791516
commit
ef037e18d0
1 file changed
+24
-1
@@ -400,7 +400,30 @@ bool Session::populateDecoderProperties(SDL_Window* window)
|
||||
m_VideoCallbacks.submitDecodeUnit = drSubmitDecodeUnit;
|
||||
}
|
||||
|
||||
m_StreamConfig.colorSpace = decoder->getDecoderColorspace();
|
||||
{
|
||||
bool ok;
|
||||
|
||||
m_StreamConfig.colorSpace = qEnvironmentVariableIntValue("COLOR_SPACE_OVERRIDE", &ok);
|
||||
if (ok) {
|
||||
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"Using colorspace override: %d",
|
||||
m_StreamConfig.colorSpace);
|
||||
}
|
||||
else {
|
||||
m_StreamConfig.colorSpace = decoder->getDecoderColorspace();
|
||||
}
|
||||
|
||||
m_StreamConfig.colorRange = qEnvironmentVariableIntValue("COLOR_RANGE_OVERRIDE", &ok);
|
||||
if (ok) {
|
||||
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"Using color range override: %d",
|
||||
m_StreamConfig.colorRange);
|
||||
}
|
||||
else {
|
||||
// Limited is the default for GFE
|
||||
m_StreamConfig.colorRange = COLOR_RANGE_LIMITED;
|
||||
}
|
||||
}
|
||||
|
||||
if (decoder->isAlwaysFullScreen()) {
|
||||
m_IsFullScreen = true;
|
||||
|
||||
Reference in new issue
Block a user