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.
This commit is contained in:
Nico Weber 2023-05-01 08:22:24 -04:00 committed by Sam Atkins
parent 2306219ef9
commit 103f818afc
Notes: sideshowbarker 2024-07-17 04:10:16 +09:00

View file

@ -1357,7 +1357,7 @@ Crypto::Hash::MD5::DigestType Profile::compute_id(ReadonlyBytes bytes)
return md5.digest(); 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 // ICCv4, Table 25 — Profile type/profile tag and defined rendering intents
// This function assumes a profile class of InputDevice, DisplayDevice, OutputDevice, or ColorSpace. // 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 // "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." // 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 // FIXME
return Error::from_string_literal("ICC::Profile::to_pcs: AToB0Tag handling not yet implemented"); return Error::from_string_literal("ICC::Profile::to_pcs: AToB0Tag handling not yet implemented");
} }