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.cpp109 float CalculateDifferencePercentage(const Image& actual, int pixels_different) { in CalculateDifferencePercentage() argument
118 return 100.0f * pixels_different / total_pixels; in CalculateDifferencePercentage()
123 int* pixels_different) { in CountImageSizeMismatchAsPixelDifference() argument
131 *pixels_different += (max_w - w) * h; in CountImageSizeMismatchAsPixelDifference()
133 *pixels_different += (max_h - h) * max_w; in CountImageSizeMismatchAsPixelDifference()
141 int pixels_different = 0; in PercentageDifferent() local
145 ++pixels_different; in PercentageDifferent()
149 CountImageSizeMismatchAsPixelDifference(baseline, actual, &pixels_different); in PercentageDifferent()
150 return CalculateDifferencePercentage(actual, pixels_different); in PercentageDifferent()
171 int pixels_different = 0; in HistogramPercentageDifferent() local
[all …]