1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 17:44:56 +09:00

LibGfx: Add a method to ImageDecoderPlugin for reading ICC data

This probably won't be the final API for getting color spaces
from images, since some formats just store an "is sRGB?" flag
instead of a full profile. Instead, once everything works,
we probably want to give every Bitmap a pointer to some
color space abstraction.

But we can always change this later, once things are further along
and better understood.
This commit is contained in:
Nico Weber 2023-01-26 07:23:59 -05:00 committed by Linus Groh
parent 609a89cfb0
commit 307712b398
Notes: sideshowbarker 2024-07-17 18:08:55 +09:00
18 changed files with 60 additions and 0 deletions

View file

@ -278,4 +278,9 @@ ErrorOr<ImageFrameDescriptor> ICOImageDecoderPlugin::frame(size_t index)
return ImageFrameDescriptor { m_context->images[m_context->largest_index].bitmap, 0 };
}
ErrorOr<Optional<ReadonlyBytes>> ICOImageDecoderPlugin::icc_data()
{
return OptionalNone {};
}
}