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 Get Outlook for Mac