Function decode

Source
pub fn decode(
    rawfile: &mut RawFile,
    params: RawDecodeParams,
) -> Result<RawImage>
Expand description

Take a readable source and return a decoded image or an error

§Example

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 ...
};