mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibGfx: Expand spec comment for parse_device_attributes() in ICCProfile
This commit is contained in:
parent
fdbe501d3e
commit
8f4d2486dd
Notes:
sideshowbarker
2024-07-17 05:02:42 +09:00
Author: https://github.com/nico
Commit: 8f4d2486dd
Pull-request: https://github.com/SerenityOS/serenity/pull/16874
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 1 additions and 0 deletions
|
@ -231,6 +231,7 @@ ErrorOr<DeviceAttributes> parse_device_attributes(ICCHeader const& header)
|
|||
ErrorOr<void> parse_file_signature(ICCHeader const& header)
|
||||
{
|
||||
// ICC v4, 7.2.9 Profile file signature field
|
||||
// "The profile file signature field shall contain the value “acsp” (61637370h) as a profile file signature."
|
||||
if (header.profile_file_signature != 0x61637370)
|
||||
return Error::from_string_literal("ICC::Profile: profile file signature not 'acsp'");
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue