fn new()

in src/lib.rs [83:106]


    fn new(
        in_profile: &[u8],
        in_type: DataType,
        intent: Intent,
    ) -> Option<Self> {
        let mut out_profile = Profile::new_sRGB();
        out_profile.precache_output_transform();
        let in_profile = Profile::new_from_slice(in_profile, false)?;
        let transform = Transform::new_to(
            &in_profile,
            &out_profile,
            to_datatype(&in_type),
            qcms::DataType::RGB8,
            to_intent(intent),
        )?;
        Some(Self {
            src1: [0; 1],
            src3: [0; 3],
            src4: [0; 4],
            dest: [0; 3],
            transform,
            in_type,
        })
    }