Skip to main content

normalized_eq

Function normalized_eq 

Source
pub const fn normalized_eq(left: &[u8], right: &[u8]) -> bool
Expand description

Compare every byte except the metadata-only header fields ignored by normalized_hash. No allocation, profile parsing or hashing is performed.

This establishes equality under that exact normalization, including every tag and rendering-intent byte. It does not establish that either input is a valid ICC profile or that different transforms are colorimetrically close. Matching fingerprints alone cannot establish equality; callers replacing a profile can use them as a filter and then compare the retained bytes here. Inputs of different lengths never compare equal; identical empty inputs do.

Used by zenpixels-convert::OutputSignaling::normalize_known_icc before replacing a profile with its bundled canonical bytes.