#[derive(Clone, Copy, Debug, PartialEq, Eq, thiserror::Error)]
pub enum ZensimError {
#[error("Source and distorted images must have the same dimensions")]
DimensionMismatch,
#[error("Images must be at least 8x8 pixels")]
ImageTooSmall,
#[error("Image data length does not match width * height")]
InvalidDataLength,
#[error("Row stride is smaller than width * bytes_per_pixel")]
InvalidStride,
}
#[cfg(feature = "zenpixels")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, thiserror::Error)]
#[error("Unsupported pixel format: {0}")]
pub struct UnsupportedFormat(pub &'static str);