Darktable WCG & HDR Support

Hi! It has been a really long-standing problem for darktable to not being able to output wide-gamut and HDR content. The following design & overhaul aims to fix it once and for all, and on every platform, by explicitly manage pipeline output encoding and offering abstraction for different backends:

Also check out macOS WCG/HDR that builds on top of it (which I cannot verify)

For complete changes I recommend reading the top comment in the PR. This is still experimental and under review. And yes unfortunately you need to build it yourself. I’ve tested on KWin 6.8.2 with a wide-gamut/HDR display and in a VM of X11/Cinnamon, but more setups would be very helpful, especially GNOME/Mutter (see discussion, it’s a PIA), and whether any regressions are there on macOS and Windows.

The rule of thumb now is that preview (more specifically, proofing) should match export, assuming the preview application for your export is rendering WCG/HDR correctly. I find wkjarosz/hdrview looking quite promising as a ground truth, but personally I’ve only tried mpv on my setup.