Opened 4 years ago

#2369 new enhancement

Add support for HDR to SDR tone mapping - BT.2020, BT.2100 (HDR) >> BT.709 (SDR)

Reported by: bug Owned by: beastd
Priority: normal Component: undetermined
Version: unspecified Severity: major
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

Add support for Tone mapping

  • Enable auto color space translation of HDR content for SDR displays

Various implementations and algorithms exist. VLC and Kodi use Reinhard, which enables decent color reproduction. Tone mapping can be implemented via Direct3d or Opengl (through libplacebo or use of gpu pixel shaders) with auto-detection of HDR monitor support.

MadVR (custom dshow filters) developed by madshi, is considered to produce the best results.

More HDR content is being produced and will eventually overtake SDR content.

Without tone mapping, users with SDR monitors and displays see washed out colors during playback of HDR content and will not be able to watch HDR videos with accurate (or even semi-accurate) color reproduction.

Tone mapping examples - (No tone mapping vs. VLC vs. PotPlayer + MadVR)

https://www.youtube.com/watch?v=duUGjcIznBc
https://www.youtube.com/watch?v=toZ1NbAJUjg

MadVR

http://madshi.net/
https://forum.doom9.org/showthread.php?t=146228

VLC (as of 3.0.0)

VLC implementations (Windows = d3d, linux = opengl with lilibplacebo)

https://code.videolan.org/videolan/vlc/-/commits/master?utf8=%E2%9C%93&search=tone+mapping

libplacebo
https://github.com/haasn/libplacebo

SPMC

Bug ticket 759

  • HDR to SD conversion for 4k "NON" HDR screens to avoid the washed out look.

https://github.com/koying/SPMC/issues/759

Additional info

tone mapping algorithms
https://64.github.io/tonemapping/

Color space:
https://en.wikipedia.org/wiki/Rec._709
https://en.wikipedia.org/wiki/Rec._2020
https://en.wikipedia.org/wiki/Rec._2100

Change History (0)

Note: See TracTickets for help on using tickets.