Function decode_file

Source
pub fn decode_file<P: AsRef<Path>>(path: P) -> Result<RawImage>
Expand description

Take a path to a raw file and return a decoded image or an error

§Example

let image = match rawler::decode_file("path/to/your/file.RAW") {
  Ok(val) => val,
  Err(e) => ... some appropriate action when the file is unreadable ...
};