Home
last modified time | relevance | path

Searched refs:pixels_different (Results 1 – 1 of 1) sorted by relevance

/external/pdfium/testing/image_diff/
Dimage_diff.cpp119 float CalculateDifferencePercentage(const Image& actual, int pixels_different) { in CalculateDifferencePercentage() argument
128 return 100.0f * pixels_different / total_pixels; in CalculateDifferencePercentage()
133 int* pixels_different) { in CountImageSizeMismatchAsPixelDifference() argument
141 *pixels_different += (max_w - w) * h; in CountImageSizeMismatchAsPixelDifference()
143 *pixels_different += (max_h - h) * max_w; in CountImageSizeMismatchAsPixelDifference()
151 int pixels_different = 0; in PercentageDifferent() local
155 ++pixels_different; in PercentageDifferent()
159 CountImageSizeMismatchAsPixelDifference(baseline, actual, &pixels_different); in PercentageDifferent()
160 return CalculateDifferencePercentage(actual, pixels_different); in PercentageDifferent()
181 int pixels_different = 0; in HistogramPercentageDifferent() local
[all …]