icc_profile/
lib.rs

1//! ICC profile reader crate
2//! ``` 
3//! use icc_profile::utils::decoded_print;
4//! use icc_profile::iccprofile::*;
5//! 
6//! use std::env;
7//! 
8//! pub fn main() -> std::io::Result<()> {
9//!     let mut is_fast = true;
10//!     for argument in env::args() {
11//!         if is_fast {
12//!             is_fast = false;
13//!             continue
14//!         }
15//!         println!("{}",argument);
16//!         let icc_profile = icc_profile::utils::load(argument)?;
17//!         let decoded = DecodedICCProfile::new(&icc_profile.data)?;
18//!         println!("{}",decoded_print(&decoded, 0)?);
19//!     }
20//!     Ok(())
21//! }
22//! 
23//! ```
24//! # Default Color spaces ranges
25//! - RGB        0..255,0..255,0..255 (u8)
26//! - YUV(YCbCr) 0..255,0..255,0..255 (u8)
27//! - XYZ 0.0..1.0,0.0..1.0,0.0..1.0 (f64)
28//! - L*a*b* 0.0-100.0,-127.0..127.0,-127.0..127.0 (f64)
29//! - CMYK 0..255,0..255,0..255,0..255 (u8)
30
31pub use crate::iccprofile::*;
32pub mod utils;
33pub mod iccprofile;
34pub mod cms;
35
36#[cfg(test)]
37mod tests {
38    #[test]
39    fn it_works() {
40        let result = 2 + 2;
41        assert_eq!(result, 4);
42    }
43}