Hi all,
I’m doing a bit of translation tonight, and one of the new strings is “follow output peak”. I can’t find it anywhere in the darktable UI, but it seems to be in the suorce files “build/lib/darktable/plugins/introspection_agx.c” and “build/lib/darktable/plugins/introspection_sigmoid.c”.
I could always translate it literally word by word, but it would be better to know what it actually means. What is the context?
Can anybody shed some light on this for me?
@hpbirkeland I don’t fully understand what the option is for, and it only gets displayed under some specific conditions, which I also don’t understand.
SDR output is unchanged in both modules (H = 1 gives bit-identical output). Following the output is a hidden param, on for new instances, the auto-applied defaults and the built-in presets. Existing edits are migrated with it off and render exactly as before (option (a) in the design discussion). For those, a “follow output peak” toggle is shown, and only while it is off, so a user can opt an old edit in. Params versions go to AgX 8 and sigmoid 4.
It seems like the option should show up if you use current master branch, and open an edit made with any build older than a month ago, that has AgX or Sigmoid active. Either in the module, or in the export module?
I added some text for future release in the docs. Perhaps some of this verbiage helps? The final sentence in this section specifically calls out the behavior.
“Edits made before darktable supported HDR output do not follow the output peak, and keep their white at 203 nits. Use the [_follow output peak_](#advanced-curve-parameters) checkbox to opt such an edit in.”
“Output peak” is the brightest white the exported file can show. For a normal SDR export that’s just ordinary white. For an HDR export it’s much brighter: HLG goes to 1000 nits, and PQ uses the new “PQ peak” slider in the export module. With the option on, AgX or sigmoid stretches its white up to that peak, so the highlights use the extra brightness of an HDR screen. SDR exports look exactly the same either way.
@gwbarn, you have it right. The checkbox is in the AgX module (curve section) and in sigmoid, not in export. It’s on for every new edit, and the checkbox is hidden while it’s on. Older edits are loaded with it off so they don’t change, and that’s the only time you see it. Ticking it opts the old edit in, and the checkbox goes away again.
For the translation, “follow” means “adapt to” or “match”, so something like “match output peak brightness” reads better than a literal “follow”. “Peak” is maximum brightness, not a peak in a graph.
Related new strings, in case they come up:
“PQ peak” (export): the maximum brightness of a PQ (HDR) export, in nits. A nit is a unit of brightness and is often left untranslated.
“HDR purity” (AgX): stretching the highlights for HDR also adds saturation and hue shift. This sets how much of that is kept. “Purity” means saturation, as in the existing AgX “purity boost” sliders.
“203 nit reference white”: 203 nits is the standard brightness of normal white in HDR. Anything brighter is highlight headroom.
@Donatzsky, mostly because filmic needs more work to do it right, so I left it out of the first PR to keep that one reviewable.
Two things got in the way when I tried it. Filmic v3 to v5 clip at 1.0 before the output power, so with those color science versions the white can’t go above normal SDR white whatever you set. And with v6/v7, raising the white makes filmic’s spline steepen the midtone contrast to reach it, so the image looks harsher, not just brighter in the highlights. AgX and sigmoid don’t have that problem, and they’re what most people pick for new edits, so they went first.
Filmic can still make HDR exports by hand today: set target white luminance above 100% (it goes up to 1600%). It just doesn’t follow the export’s peak automatically. Doing that for v6/v7 is planned as a separate change. Older color science versions would stay SDR.
To get around the midtone contrast problem, it does it the way AgX does. Filmic’s normal curve stays as it is, its white becomes the HDR peak, and middle gray and the shadows keep their SDR brightness while the highlights stretch up to the peak. It works the same way as AgX and sigmoid: on for new edits, older edits unchanged until you tick “follow output peak”, and SDR exports unchanged. As mentioned, it’s color science v6 and v7 only.
It’s a draft, so feedback and test exports are welcome, especially on GPUs and on macOS or Windows.