icc: Print TextTagData contents

This commit is contained in:
Nico Weber 2023-01-21 21:40:36 -05:00 committed by Linus Groh
parent ec7a2058a2
commit 3bc70d7aa5
Notes: sideshowbarker 2024-07-18 03:20:18 +09:00

View file

@ -93,6 +93,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
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());
if (tag_data->type() == Gfx::ICC::TextTagData::Type) {
outln(" text: \"{}\"", static_cast<Gfx::ICC::TextTagData&>(*tag_data).text());
}
});
return 0;