summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/DDSLoader.cpp
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2023-01-26 07:23:59 -0500
committerLinus Groh <mail@linusgroh.de>2023-01-27 17:26:48 +0000
commit307712b3985978854b29e6ed7ec72804be68a22f (patch)
treef742bb78829d9ac1aed71554b45fe61a483cf39b /Userland/Libraries/LibGfx/DDSLoader.cpp
parent609a89cfb0819126c61d49e0b3bf3be38b833c35 (diff)
downloadserenity-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.cpp5
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 {};
+}
+
}