[FFmpeg-devel] [PATCH] avfilter: add inverse tone mapping

Kacper Michajlow kasper93 at gmail.com
Sat Jul 19 17:47:28 EEST 2025


On Sat, 19 Jul 2025 at 16:13, Sarthak Indurkhya via ffmpeg-devel <
ffmpeg-devel at ffmpeg.org> wrote:

> Hello FFmpeg developers,
> This patch introduces a new video filter called inversetonemap for FFmpeg.
> The filter performs SDR to HDR conversion by mapping SDR BT.709 video to
> HDR BT.2020 PQ, using local adaptation and inverse tone mapping. The goal
> is to provide a simple, flexible tool for upconverting SDR content for HDR
> displays, with local adaptation, tone curve sensitivity, and chroma
> processing.
>
> Please review.
> Thanks,
> Sarthak
>
>
>
Interesting. Could you describe what are the advantages of the new filter,
compared to existing solutions like vf_libplacebo inverse tone mapping?
Additionally if there is a big gap in libplacebo's inverse tone mapping
quality would you be interested in improving the libplacebo implementation
in addition to this filter? I think there would be a gain in having real
time gpu implementation too.

- Kacper


More information about the ffmpeg-devel mailing list