mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-15 15:42:52 +00:00
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:
parent
2306219ef9
commit
103f818afc
Notes:
sideshowbarker
2024-07-17 04:10:16 +09:00
Author: https://github.com/nico
Commit: 103f818afc
Pull-request: https://github.com/SerenityOS/serenity/pull/18596
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/gmta
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue