libobs-d3d11,win-capture: Add Force SDR for DXGI duplicator
Description
Same function as the checkbox in window capture for forcing SDR capture when HDR is enabled on a display in Windows settings.
Also plumb support for wide SDR although DXGI chooses narrow anyway?
Stacks on top of #7974.
FIxes #7970.
Motivation and Context
Users don't want to disable HDR in their Windows settings to capture SDR, and that's reasonable.
How Has This Been Tested?
Checked display capture of SDR and HDR monitor with and without checkbox enabled.
Checked log output for display capture DXGI/WGC, force on/off, and window capture BitBlt/WGC, force on/off.
Types of changes
- Tweak (non-breaking change to improve existing functionality)
Checklist:
- [x] My code has been run through clang-format.
- [x] I have read the contributing document.
- [x] My code is not on the master branch.
- [x] The code has been tested.
- [x] All commit messages are properly formatted and commits squashed where appropriate.
- [x] I have included updates to all appropriate documentation.
PR is ready, but holding in draft until the other PR is merged.
jpark37 Hello. I don't know how to write to you personally. I'll ask here. Here is a solution to remove stuttering frames will be under the new versions of the obs? https://github.com/obsproject/obs-studio/actions/runs/1244236413
This can be undrafted now that #7974 has been merged.