Function av_metrics::video::psnr::calculate_video_psnr
source · pub fn calculate_video_psnr<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 PSNR for two videos. Higher is better.
PSNR is capped at 100 in order to avoid skewed statistics from e.g. all black frames, which would otherwise show a PSNR of infinity.