1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#[macro_use] extern crate serde_derive; #[macro_use] extern crate lazy_static; #[macro_use] extern crate log; extern crate rawloader; extern crate image; mod buffer; mod hasher; mod ops; pub use ops::transform::Rotation; mod opbasics; mod pipeline; pub use self::pipeline::*; pub use self::ops::*; pub mod color_conversions; use std::path::Path; pub fn simple_decode_8bit<P: AsRef<Path>>(img: P, maxwidth: usize, maxheight: usize) -> Result<SRGBImage, String> { Pipeline::new_from_file(&img, maxwidth, maxheight, false)?.output_8bit(None) }