pub fn decode( rawfile: &mut RawFile, params: RawDecodeParams, ) -> Result<RawImage>
Take a readable source and return a decoded image or an error
let mut file = match File::open(path).unwrap(); let image = match rawler::decode(&mut file) { Ok(val) => val, Err(e) => ... some appropriate action when the file is unreadable ... };