1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:38:13 +00:00

LibGfx+icc: ICCProfile's primary_platform() should be optional

Found by running `icc` on a jpeg file produced by a Pixel phone
after #17195.
This commit is contained in:
Nico Weber 2023-01-26 16:25:48 -05:00 committed by Linus Groh
parent 3cd04f40e1
commit 87f1a0e957
3 changed files with 8 additions and 4 deletions

View file

@ -44,7 +44,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
outln(" data color space: {}", Gfx::ICC::data_color_space_name(profile->data_color_space()));
outln(" connection space: {}", Gfx::ICC::profile_connection_space_name(profile->connection_space()));
outln("creation date and time: {}", Core::DateTime::from_timestamp(profile->creation_timestamp()));
outln(" primary platform: {}", Gfx::ICC::primary_platform_name(profile->primary_platform()));
out_optional(" primary platform", profile->primary_platform().map([](auto platform) { return primary_platform_name(platform); }));
auto flags = profile->flags();
outln(" flags: 0x{:08x}", flags.bits());