gamut-icc 0.1.1

ICC color profile (ICC.1:2022) parser and serializer — header, tag table, and tag element types — for gamut image metadata.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! The parsed profile: the header plus its tag table.

use crate::header::ProfileHeader;
use crate::tags::TagEntry;

/// A parsed ICC profile.
///
/// Holds the decoded [`ProfileHeader`] and the tag table. The parsed element data for each tag
/// (curves, matrices, CLUTs, text) is materialised through the tag table in the implementation
/// phase; this scaffold models the structural skeleton only.
pub struct IccProfile {
    /// The 128-byte profile header.
    pub header: ProfileHeader,
    /// The tag table — one entry per tag, in tag order.
    pub tag_table: Vec<TagEntry>,
}