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

Michael Niedermayer michael at niedermayer.cc
Tue Jul 8 04:06:00 EEST 2025


On Sat, Jul 05, 2025 at 06:20:50PM +0000, Sarthak Indurkhya via ffmpeg-devel wrote:
> Date: Sat, 5 Jul 2025 18:20:50 +0000
> From: Sarthak Indurkhya <sindurkhya at adobe.com>
> To: "ffmpeg-devel at ffmpeg.org" <ffmpeg-devel at ffmpeg.org>
> Subject: [PATCH] avfilter: add inverse tone mapping 
> 
> 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
> 
> --
> 
> From f563ee1ad93511dfe7dd252578d7801e0cbbe968 Mon Sep 17 00:00:00 2001
> From: Sarthak Indurkhya sarthak at Sarthaks-MacBook-Pro.local<mailto:sarthak at Sarthaks-MacBook-Pro.local>
> Date: Sat, 5 Jul 2025 22:33:46 +0530
> Subject: [PATCH] avfilter: add inversetonemap filter
> 
> This filter performs inverse tone mapping from SDR to HDR using local adaptation and PQ mapping.
> 
> - Added inversetonemap video filter for SDR to HDR conversion.
> ---
> Changelog                       |  1 +
> libavfilter/Makefile            |  1 +
> libavfilter/allfilters.c        |  1 +
> libavfilter/vf_inversetonemap.c | 98 ++++++++++++++++-----------------
> 4 files changed, 51 insertions(+), 50 deletions(-)
> 

> diff --git a/Changelog b/Changelog
> index 81e2cc813f..0aecf6dbf1 100644
> --- a/Changelog
> +++ b/Changelog
> @@ -2,6 +2,7 @@ Entries are sorted chronologically from oldest to youngest within each release,
> releases are sorted from youngest to oldest.
>  version <next>:

This patch is corrupted by line breaks

please make sure your MUA doesnt break long lines or attach the patch
or use git send-email

thx

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Old school: Use the lowest level language in which you can solve the problem
            conveniently.
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250708/644d0ccc/attachment.sig>


More information about the ffmpeg-devel mailing list