use thiserror::Error;
pub type BayerResult<T> = Result<T, BayerError>;
#[derive(Debug, Error)]
pub enum BayerError {
#[error("Invalid Color Filter Array: {0}")]
InvalidColorSpace(&'static str),
#[error("Wrong color resolution")]
WrongResolution,
#[error("Wrong color depth")]
WrongDepth,
}