pub struct IccFingerprint {
pub fnv1a64: u64,
pub murmur3_32: u32,
}Expand description
Full re-export of zenpixels core types (zero module name collisions!).
Pair of normalized ICC fingerprints returned by Self::from_icc.
Combines FNV-1a64 and MurmurHash3_x86_32 (seed 3_242_157_231, explicit little-endian
words on every target) over the profile with non-colorimetric metadata header fields zeroed.
Fields§
§fnv1a64: u6464-bit FNV-1a hash of the normalized profile bytes.
murmur3_32: u3232-bit MurmurHash3_x86_32 (seed 3_242_157_231) of the normalized profile bytes.
Implementations§
Source§impl IccFingerprint
impl IccFingerprint
Sourcepub const fn new(fnv1a64: u64, murmur3_32: u32) -> IccFingerprint
pub const fn new(fnv1a64: u64, murmur3_32: u32) -> IccFingerprint
Construct a fingerprint from its (fnv1a64, murmur3_32) components.
Sourcepub const fn from_icc(data: &[u8]) -> IccFingerprint
pub const fn from_icc(data: &[u8]) -> IccFingerprint
Compute the normalized fingerprint of ICC bytes.
Both components must match for identification or known-profile normalization.
Murmur3 uses seed 3_242_157_231 and explicit little-endian words on every
target.
Zeroes metadata-only header fields before hashing so that functionally identical profiles (same colorants + TRC) produce the same hash even if they differ in creation date, CMM, platform, creator, or profile ID.
Zeroed ranges (all non-colorimetric per ICC spec v2.0–v5/iccMAX):
- bytes 4– 7: preferred CMM type (advisory hint)
- bytes 24–35: creation date/time (metadata)
- bytes 40–43: primary platform (advisory hint)
- bytes 48–55: device manufacturer + device model (identification)
- bytes 80–99: profile creator + profile ID (reserved in v2, MD5 in v4)
This is the fingerprint used by the committed identification tables and by
zenpixels-convert’s explicit known-profile normalization. It is not a
cryptographic digest, validation, or a proof of colorimetric equivalence.
Bytes outside the listed header fields (including every tag) are hashed.
Matching a table’s approximate color identification does not make profiles
interchangeable without a pixel conversion.
Trait Implementations§
Source§impl Clone for IccFingerprint
impl Clone for IccFingerprint
Source§fn clone(&self) -> IccFingerprint
fn clone(&self) -> IccFingerprint
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more