use thiserror::Error;
use crate::ColorSpace;
pub type BayerResult<T> = Result<T, BayerError>;
#[derive(Debug, Error)]
pub enum BayerError {
#[error("{0:?} is not a Bayer color space")]
InvalidColorSpace(ColorSpace),
#[error("Wrong color resolution")]
WrongResolution,
#[error("Wrong color depth")]
WrongDepth,
}