diff options
author | Nico Weber <thakis@chromium.org> | 2023-05-01 08:22:24 -0400 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2023-05-02 17:15:48 +0100 |
commit | 103f818afc1f3e07d16bc187facb51a15c70d28b (patch) | |
tree | 0b8487dbe49eb2c9a11a1f14862126655c6dcd4c /Userland/Libraries/LibGfx | |
parent | 2306219ef9151229974c03ecf52e84f3d84a254d (diff) | |
download | serenity-103f818afc1f3e07d16bc187facb51a15c70d28b.zip |
ICC: Rename tag_for_rendering_intent()
To make clear it's for forward transforms, it's now called
forward_transform_tag_for_rendering_intent().
No behavior change.
Diffstat (limited to 'Userland/Libraries/LibGfx')
-rw-r--r-- | Userland/Libraries/LibGfx/ICC/Profile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGfx/ICC/Profile.cpp b/Userland/Libraries/LibGfx/ICC/Profile.cpp index a05a2ad30e..44fdb31c69 100644 --- a/Userland/Libraries/LibGfx/ICC/Profile.cpp +++ b/Userland/Libraries/LibGfx/ICC/Profile.cpp @@ -1357,7 +1357,7 @@ Crypto::Hash::MD5::DigestType Profile::compute_id(ReadonlyBytes bytes) return md5.digest(); } -static TagSignature tag_for_rendering_intent(RenderingIntent rendering_intent) +static TagSignature forward_transform_tag_for_rendering_intent(RenderingIntent rendering_intent) { // ICCv4, Table 25 — Profile type/profile tag and defined rendering intents // This function assumes a profile class of InputDevice, DisplayDevice, OutputDevice, or ColorSpace. @@ -1399,7 +1399,7 @@ ErrorOr<FloatVector3> Profile::to_pcs(ReadonlyBytes color) const // "b) Use the BToA0Tag, BToA1Tag, BToA2Tag, AToB0Tag, AToB1Tag, or AToB2Tag designated for the // rendering intent if present, when the tag in a) is not used." - if (has_tag(tag_for_rendering_intent(rendering_intent()))) { + if (has_tag(forward_transform_tag_for_rendering_intent(rendering_intent()))) { // FIXME return Error::from_string_literal("ICC::Profile::to_pcs: AToB0Tag handling not yet implemented"); } |