https://bugs.kde.org/show_bug.cgi?id=515194

Zamundaaa <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/kwin/-/commit/20cccbc193 |ma/kwin/-/commit/8db6fed650
                   |049acef036b98a60afb8ca06cc7 |d7c6016914ce8e8ba50faa6887f
                   |f22                         |488

--- Comment #12 from Zamundaaa <[email protected]> ---
Git commit 8db6fed650d7c6016914ce8e8ba50faa6887f488 by Xaver Hugl.
Committed on 20/02/2026 at 00:47.
Pushed by zamundaaa into branch 'Plasma/6.6'.

core/iccprofile: calculate inverse TRC ourselves

Some (incredibly) broken profiles have the TRC and VCGT merged. The "TRC" tags
of such profiles can have curves where a 100% input value does not map to 100%
of the output value. Inverting such curves with LCMS doesn't yield the desired
result, as it maps 100% input to 100% output.
This commit fixes that by just inverting the TRC in a new function, which also
checks for the maximum output value and ignores all values above it.


(cherry picked from commit 20cccbc193049acef036b98a60afb8ca06cc7f22)

Co-authored-by: Xaver Hugl <[email protected]>

M  +67   -4    src/core/iccprofile.cpp

https://invent.kde.org/plasma/kwin/-/commit/8db6fed650d7c6016914ce8e8ba50faa6887f488

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to