[FFmpeg-devel] [PATCH 2/2] lavfi/vf_colorspace: Add SMPTE ST 2084 support

Tomas Härdin git at haerdin.se
Mon Feb 6 11:35:34 EET 2023


fre 2023-02-03 klockan 08:29 -0800 skrev Pierre-Anthony Lemieux:
> On Fri, Feb 3, 2023 at 7:54 AM Tomas Härdin <git at haerdin.se> wrote:
> > 
> > We need something better for proper tonemap support, but this is at
> > least useful for getting the HDR discussion going.
> 
> Below is a demonstration of two tonemap methods:
> 
> https://www.sandflow.com/public/tone-mapping/index.html

Does not work in Firefox. But it does work in Chromium. Looks like it
could be static images only.

Anyway what I feel bears discussion is whether we should add a field to
AVCodecContext like "nits" that says how many nits the max values of
integer pixel formats correspond to, and similarly for float formats
what 1.0 corresponds to. The latter is usually 203 cd/m² but is it
always? The link you posted appears to use 100 cd/m²:

> l_sdr = 100;

/Tomas



More information about the ffmpeg-devel mailing list