summaryrefslogtreecommitdiff
path: root/Userland/Utilities
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2023-01-20 14:37:25 -0500
committerLinus Groh <mail@linusgroh.de>2023-01-20 21:44:36 +0000
commitf28b052590ddc4590855e60e820a56639a23b6ac (patch)
tree2466cc5f8fe3335536016de6a74c2acfa8d5f592 /Userland/Utilities
parent5017d8fdcb30fe4f0af542b96b130e663b7acedd (diff)
downloadserenity-f28b052590ddc4590855e60e820a56639a23b6ac.zip
LibGfx: Add scaffolding for reading ICC tag table
The idea is that we'll have one type for each tag type. For now, this treats all tag types as unknown, but it puts most of the infrastructure for reading tags in place.
Diffstat (limited to 'Userland/Utilities')
-rw-r--r--Userland/Utilities/icc.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Utilities/icc.cpp b/Userland/Utilities/icc.cpp
index 5e22e04e60..1543c746a9 100644
--- a/Userland/Utilities/icc.cpp
+++ b/Userland/Utilities/icc.cpp
@@ -73,5 +73,12 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
outln("{} trailing bytes after profile data", profile_disk_size - profile->on_disk_size());
}
+ outln("");
+
+ outln("tags:");
+ profile->for_each_tag([](auto tag_signature, auto tag_data) {
+ outln("{}: {}, offset {}, size {}", tag_signature, tag_data->type(), tag_data->offset(), tag_data->size());
+ });
+
return 0;
}