bayer 0.1.5

Algorithms for demosaicing Bayer images.
Documentation
//! Bayer error codes.

use std::io;

pub type BayerResult<T> = Result<T, BayerError>;

quick_error! {

#[derive(Debug)]
pub enum BayerError {
    // Generic failure.  Please try to make something more meaningful.
    NoGood {
        description("No good")
    }

    WrongResolution {
        description("Wrong resolution")
    }
    WrongDepth {
        description("Wrong depth")
    }

    Io(err: io::Error) {
        from()
        description(err.description())
        display("IO error: {}", err)
        cause(err)
    }
}

}