mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:57:35 +00:00
LibGfx: Add a function to create an in-memory sRGB profile
This might be useful for converting data from arbitrary profiles to sRGB. For now, this only encodes the transfer function and puts in zero values for chromaticities, whitepoint, and chromatic adaptation matrix. This makes the profile unusable for now. But I've spent a very long time reading things and need to check in some code, and it's some progress. The encoded transfer function exactly matches the one in GIMP's built-in sRGB ICC profile (but not the Compact-ICC-Profiles v4 one or the RawTherapee v4 one -- I'll add a comment about why later.)
This commit is contained in:
parent
8f415e7b21
commit
0ba532e14e
3 changed files with 96 additions and 0 deletions
|
@ -32,6 +32,7 @@ set(SOURCES
|
|||
ICC/Profile.cpp
|
||||
ICC/Tags.cpp
|
||||
ICC/TagTypes.cpp
|
||||
ICC/WellKnownProfiles.cpp
|
||||
ICOLoader.cpp
|
||||
ImageDecoder.cpp
|
||||
JPEGLoader.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue