2019-11-29, 21:31
(2019-11-29, 20:38)_DMU_ Wrote:(2019-11-28, 00:21)fandangos Wrote: VLC uses microsoft problematic api.
1. It forces the user to toggle hdr on and off based on each content is played.
2. It doesn't pass the correct hdr metadata.
1. I gave you a code that allows you to automatically switch the HDR mode depending on the content without user intervention.
2. This is an example of code that allows you to change hdr metadata.
I already implemented it.
Using the code directly in Kodi causes Kodi to crash so I added 3 executables:
1. To trigger HDR On.
2. To trigger HDR off.
3. The one you provided that will set hdr on or off depending on it's state. If off turn on if on turn off.
I used it for Intel, since Intel doesn't have a private API, this is behind a vendor.id if statement, this means it will only trigger this if you are using Intel iGPU.
The third one listed I mapped to CTRL+H. No matter what hardware you have you can press it to trigger windows hdr on/off.
For intel this is automatic.
But this is not useful and should not be used by AMD or NVIDIA users since those two have private APIs already implemented.
Still, even turning hdr on/off within windows settings, just like any other app that uses it, like Netflix, the hdr metadata passed to the display is incorrect, that why I suggest that anyone interested in correct hdr output should use a NVIDIA or AMD dedicated gpu.