[][src]Function av_metrics::video::psnr::calculate_video_apsnr

pub fn calculate_video_apsnr<D: Decoder>(
    decoder1: &mut D,
    decoder2: &mut D,
    frame_limit: Option<usize>
) -> Result<PlanarMetrics, Box<dyn Error>>

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.