diff options
author | Nico Weber <thakis@chromium.org> | 2023-01-26 07:23:59 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-27 17:26:48 +0000 |
commit | 307712b3985978854b29e6ed7ec72804be68a22f (patch) | |
tree | f742bb78829d9ac1aed71554b45fe61a483cf39b /Userland/Libraries/LibGfx/DDSLoader.cpp | |
parent | 609a89cfb0819126c61d49e0b3bf3be38b833c35 (diff) | |
download | serenity-307712b3985978854b29e6ed7ec72804be68a22f.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibGfx/DDSLoader.cpp')
-rw-r--r-- | Userland/Libraries/LibGfx/DDSLoader.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGfx/DDSLoader.cpp b/Userland/Libraries/LibGfx/DDSLoader.cpp index ca84bcb777..80233d86aa 100644 --- a/Userland/Libraries/LibGfx/DDSLoader.cpp +++ b/Userland/Libraries/LibGfx/DDSLoader.cpp @@ -1024,4 +1024,9 @@ ErrorOr<ImageFrameDescriptor> DDSImageDecoderPlugin::frame(size_t index) return ImageFrameDescriptor { m_context->bitmap, 0 }; } +ErrorOr<Optional<ReadonlyBytes>> DDSImageDecoderPlugin::icc_data() +{ + return OptionalNone {}; +} + } |