[−][src]Function av_metrics::video::psnr::calculate_video_psnr
pub fn calculate_video_psnr<D: Decoder>(
decoder1: &mut D,
decoder2: &mut D,
frame_limit: Option<usize>
) -> Result<PlanarMetrics, Box<dyn Error>>
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.