Function av_metrics::video::psnr::calculate_video_apsnr
source · pub fn calculate_video_apsnr<D: Decoder, F: Fn(usize) + Send>(
decoder1: &mut D,
decoder2: &mut D,
frame_limit: Option<usize>,
progress_callback: F
) -> Result<PlanarMetrics, Box<dyn Error>>
Expand description
Calculates the APSNR for two videos. Higher is better.
APSNR is capped at 100 in order to avoid skewed statistics from e.g. all black frames, which would otherwise show a APSNR of infinity.