use quick_error::quick_error;
#[derive(Debug)]
#[doc(hidden)]
pub struct EncodingErrorDetail; quick_error! {
#[derive(Debug)]
#[non_exhaustive]
pub enum Error {
TooFewPixels {
display("Provided buffer is smaller than width * height")
}
Unsupported(msg: &'static str) {
display("Not supported: {}", msg)
}
EncodingError(e: EncodingErrorDetail) {
display("Encoding error reported by rav1e")
from(_e: rav1e::InvalidConfig) -> (EncodingErrorDetail)
from(_e: rav1e::EncoderStatus) -> (EncodingErrorDetail)
}
}
}