pub unsafe extern "C" fn WebPPictureDistortion(
src: *const WebPPicture,
ref_: *const WebPPicture,
metric_type: c_int,
result: *mut c_float,
) -> c_int
Expand description
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.