[−][src]Function webp_dev::sys::webp::webp_picture_distortion
pub unsafe fn webp_picture_distortion(
src: *const WebPPicture,
ref_: *const WebPPicture,
metric_type: c_int,
result: *mut f32
) -> c_int
Compute PSNR, SSIM or LSIM distortion metric between two pictures.
Results are in dB, stored in result[] in the B/G/R/A/All order. The distortion is always performed using ARGB samples. Hence if the input is YUV(A), the picture will be internally converted to ARGB (just for the measurement). Warning: this function is rather CPU-intensive.