-
Notifications
You must be signed in to change notification settings - Fork 189
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
HDR support, fixes #255 #511
Conversation
The build system assumes OpenSSL 1.1. Installation of 3.0 alone won't work.
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
It seems that on HDR once in a while we get DXGI_FORMAT_R16G16B16A16_FLOAT even if we only should get regular RGB. This happens when the duplication has an update ONLY on the mouse position and not on the actual image. It seems that then the system doesn't bother to make any buffer conversions and we can use the old image we acquired before. The lack of conversion messes up the color, as we append -1 to the buffer and it effects with white flashes once in a while.
Actually now it seems to me like a bug in the OutputDuplication as it seems it doesn't do any format conversions if the only update after getting a new frame is the cursor position. I couldn't find it documented anywhere, but... Once I added the code that checks for |
Thanks for spotting this! It seems the problem is simpler than it looked :) |
I've just realized I have no idea how to mark this pull request as fixing #255 ... |
Oh my god this is huge, can anyone build a release please? |
@romkal you did associate it by mentioning the issue number in the PR description. I'll make a release today. |
WOW, thank you so much! I already had prepared solution with converting it with QT (because QT6 has finally ability to make HDR pictures). |
You might argue that this is an optimization. If nothing changed, why to even do the work of converting the buffer. |
I just found this one by chance, and it FINALLY made me realize what on earth is going wrong with ddagrab in FFmpeg, so thanks for that! I had legitimately spent months wondering what the hell is going on, and why ddagrab sometimes randomly decides to change the output format to one not even supplied to the initial list of supported formats... This whole thing makes me wonder if one isn't even supposed to use the desktop resource/texture on those instances, and the API considers it invalid. Meaning it works for 8 bit by pure chance for a whole lot of applications. |
This should fix the #255. I observed the same problem and although this is a dirty workaround, it works well enough. For sure better than the flashing.