[PATCH] avfilter: add inverse tone mapping filter
Sarthak Indurkhya
sindurkhya at adobe.com
Mon Jun 30 12:44:54 EEST 2025
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.
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>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 419 bytes
Desc: image001.png
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250630/dbda8b81/attachment.png>
More information about the ffmpeg-devel
mailing list