Kodi Windows HDR 3.7.1
Updated at 17-06-2020 (forked from Kodi 19 alpha master).
New advancedsettings option 'disableDXVAdiscretedecoder' for some Nvidia systems who still need it.
Updated with latest master branch commits.
To use HDR features enable 'Settings > Player > Use HDR display capabilities' or toggle HDR ON using 'F11' keymap (manual mode).
If video has HDR metadata enables HDR passthrough.
Can also play SDR content with Windows HDR switch ON and it is displayed correctly.
And HDR content played with Windows HDR switch OFF is displayed correctly too (with no HDR).
Uses Microsoft Windows standard API to HDR passthrough.
In systems without HDR display uses tone mapping (DXVA or pixel shaders) for HDR to SDR conversion.
Tested on Intel NUC 8i3BEK + Denon AVX-1600H + Sony TV KD-55AG9 OLED.
Also works on Nvidia, AMD and Ryzen hardware.