Lines Matching refs:difference
107 …ateDifferenceImage(cairo_surface_t* baselineImage, cairo_surface_t* actualImage, float& difference) in createDifferenceImage() argument
147 difference = 100.0f * sum / (height * width); in createDifferenceImage()
149 difference = 0; in createDifferenceImage()
151 if (!difference) { in createDifferenceImage()
221 float difference = 100.0; in main() local
226 …diffImage = createDifferenceImage(actualImage, baselineImage, difference); // difference is passed… in main()
227 if (difference <= tolerance) in main()
228 difference = 0; in main()
230 difference = roundf(difference * 100.0) / 100.0; in main()
231 difference = max<float>(difference, 0.01); // round to 2 decimal places in main()
236 if (difference > 0.0) { in main()
246 fprintf(stdout, "diff: %01.2f%% failed\n", difference); in main()
248 fprintf(stdout, "diff: %01.2f%% passed\n", difference); in main()