Lines Matching full:actual
117 float PercentageDifferent(const Image& baseline, const Image& actual) {
118 int w = std::min(baseline.w(), actual.w());
119 int h = std::min(baseline.h(), actual.h());
125 if (baseline.pixel_at(x, y) != actual.pixel_at(x, y))
131 int max_w = std::max(baseline.w(), actual.w());
132 int max_h = std::max(baseline.h(), actual.h());
139 // of the size of the 'actual' bitmap.
140 float total_pixels = static_cast<float>(actual.w()) *
141 static_cast<float>(actual.h());
152 float HistogramPercentageDifferent(const Image& baseline, const Image& actual) {
157 int w = std::min(baseline.w(), actual.w());
158 int h = std::min(baseline.h(), actual.h());
173 uint32_t actual_rgba = actual.pixel_at(x, y);
183 int max_w = std::max(baseline.w(), actual.w());
184 int max_h = std::max(baseline.h(), actual.h());
191 // of the size of the 'actual' bitmap.
192 float total_pixels = static_cast<float>(actual.w()) *
193 static_cast<float>(actual.h());