mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:07:35 +00:00
LibGfx+icc: Print profile flags
These flags are always 0 in practice in all profiles I've seen so far, but hey, probably nice to dump them anyways.
This commit is contained in:
parent
88d5fd4b73
commit
0b46e572b5
3 changed files with 47 additions and 0 deletions
|
@ -284,6 +284,12 @@ StringView rendering_intent_name(RenderingIntent rendering_intent)
|
|||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
Flags::Flags() = default;
|
||||
Flags::Flags(u32 bits)
|
||||
: m_bits(bits)
|
||||
{
|
||||
}
|
||||
|
||||
ErrorOr<NonnullRefPtr<Profile>> Profile::try_load_from_externally_owned_memory(ReadonlyBytes bytes)
|
||||
{
|
||||
auto profile = adopt_ref(*new Profile());
|
||||
|
@ -298,6 +304,7 @@ ErrorOr<NonnullRefPtr<Profile>> Profile::try_load_from_externally_owned_memory(R
|
|||
profile->m_device_class = TRY(parse_device_class(header));
|
||||
profile->m_data_color_space = TRY(parse_data_color_space(header));
|
||||
profile->m_creation_timestamp = TRY(parse_creation_date_time(header));
|
||||
profile->m_flags = Flags { header.profile_flags };
|
||||
profile->m_rendering_intent = TRY(parse_rendering_intent(header));
|
||||
|
||||
return profile;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue