[Webkit-unassigned] [Bug 221193] New: Avoid unnecessary chromatic adaptation when converting between colors with the same white point

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jan 31 17:20:00 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=221193

            Bug ID: 221193
           Summary: Avoid unnecessary chromatic adaptation when converting
                    between colors with the same white point
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Platform
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sam at webkit.org

We currently always use the XYZ space with the D65 white point as our universal conversion space (the space we require each type to be able to convert to and from), but this is not ideal when converting between colors like ProPhotoRGB and Lab, which both use the D50 white point, since it requires an extra two matrix multiplications for the chromatic adaptations to and from D65.

Additionally, to support color(xyz ...), which also use D50, we will need an explicit XYZ color with a D50 white point. 

We can solve both of these problems by further generalizing XYZA<T> to support a white point parameter, XYZA<T, WhitePoint>, and annotate all the colors with which whitepoint they are defined in (or what XYZA color is their reference). Then, we can use that information to lazily (though at compile time) determine whether chromatic adaptation is needed in the generic conversion functions.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210201/bb6a5abb/attachment-0001.htm>


More information about the webkit-unassigned mailing list