Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bright colors are clipped when windows 10 HDR color is enabled. #343

Open
jespertheend opened this issue May 24, 2020 · 4 comments
Open

Comments

@jespertheend
Copy link

When enabling HDR color in the windows 10 settings, bright colors get clipped.
It appears like Teamviewer is having similar issues. You can see an image of what a color picker looks like in teamviewer bewow.

It seems like Prismatik is showing the same behaviour. As soon as a color becomes brighter than about rgb 127,127,127 it shows up as completely white in the device tab in prismatik.

I'm not sure if there is a way to fix this, or if it's an issue with the Desktop Duplication API with no workaround.

image

@jespertheend
Copy link
Author

It seems like you need to make use of IDXGIOutput6 to make this work.
https://stackoverflow.com/questions/56797583/how-to-capture-hdr-framebuffer-in-windows

@zomfg
Copy link

zomfg commented May 24, 2020

I think this is just how the API handles HDR source right now, see here:

DXGI provides a surface that contains a current desktop image through the new IDXGIOutputDuplication::AcquireNextFrame method. The format of the desktop image is always DXGI_FORMAT_B8G8R8A8_UNORM no matter what the current display mode is.

try with WinAPI grabber just to see what happens, it could be same (if they do the same conversion), or even more broken (if they give the raw 2,10,10,10 bit components), or working I guess

@goooroooX
Copy link

goooroooX commented Feb 24, 2021

Just found out that desktop grabbing does not work properly with "Win8 Desktop Duplication" mode and HDR enabled in Windows 10 (heavy colors flickering). Is this limitation/issue by design or can be fixed?
BTW, "WinAPI" mode is working fine, but it makes a heavy load on Desktop Windows Manager process.
Tnx.

Found related issue: #255

@dormancygrace
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants