#![allow(clippy::cast_lossless)]
#![allow(clippy::needless_range_loop)]
#![allow(clippy::unreadable_literal)]
#![allow(clippy::wrong_self_convention)]
#![deny(missing_docs)]
#[macro_use]
extern crate itertools;
#[macro_use]
extern crate thiserror;
pub mod video;
#[derive(Debug, Error)]
pub enum MetricsError {
#[error("Could not read input file: {reason}")]
MalformedInput {
#[doc(hidden)]
reason: &'static str,
},
#[error("Input type not supported: {reason}")]
UnsupportedInput {
#[doc(hidden)]
reason: &'static str,
},
#[error("Input videos must have matching formats: {reason}")]
InputMismatch {
#[doc(hidden)]
reason: &'static str,
},
#[error("Could not process the two videos: {reason}")]
VideoError {
#[doc(hidden)]
reason: String,
},
#[error("Could not send two frames to be processed: {reason}")]
SendError {
#[doc(hidden)]
reason: String,
},
#[error("Could not process two frames: {reason}")]
ProcessError {
#[doc(hidden)]
reason: String,
},
#[doc(hidden)]
#[error("Unreachable")]
NonExhaustive,
}