[FFmpeg-devel] [PATCH] avfilter: add inverse tone mapping filter
Kacper Michajlow
kasper93 at gmail.com
Mon Jun 30 17:05:00 EEST 2025
On Mon, 30 Jun 2025 at 11:45, Sarthak Indurkhya via ffmpeg-devel
<ffmpeg-devel at ffmpeg.org> wrote:
>
>
>
>
> ---------- Forwarded message ----------
> From: Sarthak Indurkhya <sindurkhya at adobe.com>
> To: "ffmpeg-devel at ffmpeg.org" <ffmpeg-devel at ffmpeg.org>
> Cc:
> Bcc:
> Date: Mon, 30 Jun 2025 09:44:54 +0000
> Subject: [PATCH] avfilter: add inverse tone mapping filter
> 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.
>
> Patch summary:
>
> * Implements local adaptation and inverse tone mapping for SDR-to-HDR conversion
> * Performs gamma correction, color space transformation, and PQ encoding
> * Supports configurable parameters: spatial sigma, range sigma, sensitivity exponent, HDR peak luminance
> * Outputs 10-bit YUV420P10LE BT.2020 PQ with HDR metadata
> * Includes local adaptation code, PQ transfer function, error diffusion dithering, and chroma recomputation
>
> Commit message:
> avfilter: add inversetonemap filter
> This filter converts SDR BT.709 video to HDR BT.2020 PQ using local adaptation and inverse tone mapping. It supports user-configurable parameters for spatial/range sigma, tone mapping exponent, and HDR peak luminance.
> The filter performs gamma correction, color conversion, PQ encoding, and outputs YUV420P10LE with HDR metadata.
>
> The patch file is attached to this email.
It is not. It's on the sharepoint and we don't have access to this
file. Please attach patches as an attachment or plain text.
- Kacper
> Best regards,
> Sarthak
> [?patch icon] 0002-avfilter-add-myfilter-filter.patch<https://adobe-my.sharepoint.com/:u:/p/sindurkhya/EbrQbZzcik9Eg7ywwTfQDN4BVRP4SavI-n_NXHBVs3ehog>
>
> Get Outlook for Mac <https://aka.ms/GetOutlookForMac>
>
>
>
> ---------- Forwarded message ----------
> From: Sarthak Indurkhya via ffmpeg-devel <ffmpeg-devel at ffmpeg.org>
> To: "ffmpeg-devel at ffmpeg.org" <ffmpeg-devel at ffmpeg.org>
> Cc: Sarthak Indurkhya <sindurkhya at adobe.com>
> Bcc:
> Date: Mon, 30 Jun 2025 09:44:54 +0000
> Subject: [FFmpeg-devel] [PATCH] avfilter: add inverse tone mapping filter
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-devel
mailing list