1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:14:58 +00:00

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.
This commit is contained in:
Nico Weber 2023-01-20 14:37:25 -05:00 committed by Linus Groh
parent 5017d8fdcb
commit f28b052590
3 changed files with 146 additions and 3 deletions

View file

@ -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;
}