Use Little CMS's alpha premultiplication feature

And do a little cleanup.
This commit is contained in:
2023-06-06 11:08:56 +02:00
parent 1c25cb411f
commit 6cc4ca1f44
2 changed files with 74 additions and 47 deletions

View File

@@ -24,9 +24,7 @@
// --- Colour management -------------------------------------------------------
// TODO(p): Make it possible to use Skia's skcms,
// which also supports premultiplied alpha.
// NOTE: Little CMS 2.13 already supports premultiplied alpha, too.
// TODO(p): Make it also possible to use Skia's skcms.
typedef void *FivIoProfile;
FivIoProfile fiv_io_profile_new(const void *data, size_t len);
FivIoProfile fiv_io_profile_new_sRGB(void);