Skip to content

d3d11screencapturesrc: Fix wrong color with HDR enabled

Seungha Yang requested to merge seungha.yang/gstreamer:d3d11capture-hdr into main

Even if IDXGIOutput6 says current display colorspace is HDR, captured texture via IDXGIOutputDuplication::AcquireNextFrame() is converted frame by OS unless we use IDXGIOutput5::DuplicateOutput1() with DXGI_FORMAT_R16G16B16A16_FLOAT format, in order for captured frame to be scRGB color space. Then application should perform tonemap operation based on reported display white level, color primaries, etc.

Since we don't have any tonemapping implementation, ignores colorimetry reported by IDXGIOutput6.

Fixes: #3128 (closed)

Merge request reports