Use Rec 2020 colorspace for WCG support even if HDR is off on the host
This commit is contained in:
parent
c55af7fff3
commit
472e8ee92e
15 changed files with 21 additions and 17 deletions
|
|
@ -415,8 +415,12 @@ bool Session::populateDecoderProperties(SDL_Window* window)
|
|||
"Using colorspace override: %d",
|
||||
m_StreamConfig.colorSpace);
|
||||
}
|
||||
else if (!m_StreamConfig.enableHdr) {
|
||||
m_StreamConfig.colorSpace = decoder->getDecoderSdrColorspace();
|
||||
}
|
||||
else {
|
||||
m_StreamConfig.colorSpace = decoder->getDecoderColorspace();
|
||||
// In HDR mode, we opt for Rec 2020 for WCG displays
|
||||
m_StreamConfig.colorSpace = COLORSPACE_REC_2020;
|
||||
}
|
||||
|
||||
m_StreamConfig.colorRange = qEnvironmentVariableIntValue("COLOR_RANGE_OVERRIDE", &ok);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue