Lines Matching refs:max_diff
139 int max_diff = 0; in TestAttenuateI() local
143 if (abs_diff > max_diff) { in TestAttenuateI()
144 max_diff = abs_diff; in TestAttenuateI()
150 return max_diff; in TestAttenuateI()
154 int max_diff = TestAttenuateI(benchmark_width_ - 1, benchmark_height_, in TEST_F() local
157 EXPECT_LE(max_diff, 2); in TEST_F()
161 int max_diff = in TEST_F() local
164 EXPECT_LE(max_diff, 2); in TEST_F()
168 int max_diff = in TEST_F() local
171 EXPECT_LE(max_diff, 2); in TEST_F()
175 int max_diff = in TEST_F() local
178 EXPECT_LE(max_diff, 2); in TEST_F()
212 int max_diff = 0; in TestUnattenuateI() local
216 if (abs_diff > max_diff) { in TestUnattenuateI()
217 max_diff = abs_diff; in TestUnattenuateI()
223 return max_diff; in TestUnattenuateI()
227 int max_diff = TestUnattenuateI(benchmark_width_ - 1, benchmark_height_, in TEST_F() local
230 EXPECT_LE(max_diff, 2); in TEST_F()
234 int max_diff = TestUnattenuateI(benchmark_width_, benchmark_height_, in TEST_F() local
237 EXPECT_LE(max_diff, 2); in TEST_F()
241 int max_diff = TestUnattenuateI(benchmark_width_, benchmark_height_, in TEST_F() local
244 EXPECT_LE(max_diff, 2); in TEST_F()
248 int max_diff = TestUnattenuateI(benchmark_width_, benchmark_height_, in TEST_F() local
251 EXPECT_LE(max_diff, 2); in TEST_F()
1090 int max_diff = 0; in TestBlend() local
1094 if (abs_diff > max_diff) { in TestBlend()
1095 max_diff = abs_diff; in TestBlend()
1102 return max_diff; in TestBlend()
1106 int max_diff = in TEST_F() local
1109 EXPECT_LE(max_diff, 1); in TEST_F()
1113 int max_diff = in TEST_F() local
1116 EXPECT_LE(max_diff, 1); in TEST_F()
1120 int max_diff = in TEST_F() local
1123 EXPECT_LE(max_diff, 1); in TEST_F()
1127 int max_diff = in TEST_F() local
1130 EXPECT_LE(max_diff, 1); in TEST_F()
1434 int max_diff = 0; in TestMultiply() local
1438 if (abs_diff > max_diff) { in TestMultiply()
1439 max_diff = abs_diff; in TestMultiply()
1446 return max_diff; in TestMultiply()
1450 int max_diff = TestMultiply(benchmark_width_ - 1, benchmark_height_, in TEST_F() local
1453 EXPECT_LE(max_diff, 1); in TEST_F()
1457 int max_diff = in TEST_F() local
1460 EXPECT_LE(max_diff, 1); in TEST_F()
1464 int max_diff = in TEST_F() local
1467 EXPECT_LE(max_diff, 1); in TEST_F()
1471 int max_diff = in TEST_F() local
1474 EXPECT_LE(max_diff, 1); in TEST_F()
1508 int max_diff = 0; in TestAdd() local
1512 if (abs_diff > max_diff) { in TestAdd()
1513 max_diff = abs_diff; in TestAdd()
1520 return max_diff; in TestAdd()
1524 int max_diff = in TEST_F() local
1527 EXPECT_LE(max_diff, 1); in TEST_F()
1531 int max_diff = in TEST_F() local
1534 EXPECT_LE(max_diff, 1); in TEST_F()
1538 int max_diff = in TEST_F() local
1541 EXPECT_LE(max_diff, 1); in TEST_F()
1545 int max_diff = in TEST_F() local
1548 EXPECT_LE(max_diff, 1); in TEST_F()
1582 int max_diff = 0; in TestSubtract() local
1586 if (abs_diff > max_diff) { in TestSubtract()
1587 max_diff = abs_diff; in TestSubtract()
1594 return max_diff; in TestSubtract()
1598 int max_diff = TestSubtract(benchmark_width_ - 1, benchmark_height_, in TEST_F() local
1601 EXPECT_LE(max_diff, 1); in TEST_F()
1605 int max_diff = in TEST_F() local
1608 EXPECT_LE(max_diff, 1); in TEST_F()
1612 int max_diff = in TEST_F() local
1615 EXPECT_LE(max_diff, 1); in TEST_F()
1619 int max_diff = in TEST_F() local
1622 EXPECT_LE(max_diff, 1); in TEST_F()
1655 int max_diff = 0; in TestSobel() local
1659 if (abs_diff > max_diff) { in TestSobel()
1660 max_diff = abs_diff; in TestSobel()
1666 return max_diff; in TestSobel()
1670 int max_diff = in TEST_F() local
1673 EXPECT_EQ(0, max_diff); in TEST_F()
1677 int max_diff = in TEST_F() local
1680 EXPECT_EQ(0, max_diff); in TEST_F()
1684 int max_diff = in TEST_F() local
1687 EXPECT_EQ(0, max_diff); in TEST_F()
1691 int max_diff = in TEST_F() local
1694 EXPECT_EQ(0, max_diff); in TEST_F()
1729 int max_diff = 0; in TestSobelToPlane() local
1733 if (abs_diff > max_diff) { in TestSobelToPlane()
1734 max_diff = abs_diff; in TestSobelToPlane()
1740 return max_diff; in TestSobelToPlane()
1744 int max_diff = TestSobelToPlane(benchmark_width_ - 1, benchmark_height_, in TEST_F() local
1747 EXPECT_EQ(0, max_diff); in TEST_F()
1751 int max_diff = TestSobelToPlane(benchmark_width_, benchmark_height_, in TEST_F() local
1754 EXPECT_EQ(0, max_diff); in TEST_F()
1758 int max_diff = TestSobelToPlane(benchmark_width_, benchmark_height_, in TEST_F() local
1761 EXPECT_EQ(0, max_diff); in TEST_F()
1765 int max_diff = TestSobelToPlane(benchmark_width_, benchmark_height_, in TEST_F() local
1768 EXPECT_EQ(0, max_diff); in TEST_F()
1801 int max_diff = 0; in TestSobelXY() local
1805 if (abs_diff > max_diff) { in TestSobelXY()
1806 max_diff = abs_diff; in TestSobelXY()
1812 return max_diff; in TestSobelXY()
1816 int max_diff = TestSobelXY(benchmark_width_ - 1, benchmark_height_, in TEST_F() local
1819 EXPECT_EQ(0, max_diff); in TEST_F()
1823 int max_diff = in TEST_F() local
1826 EXPECT_EQ(0, max_diff); in TEST_F()
1830 int max_diff = in TEST_F() local
1833 EXPECT_EQ(0, max_diff); in TEST_F()
1837 int max_diff = in TEST_F() local
1840 EXPECT_EQ(0, max_diff); in TEST_F()
1877 int max_diff = 0; in TestBlur() local
1881 if (abs_diff > max_diff) { in TestBlur()
1882 max_diff = abs_diff; in TestBlur()
1889 return max_diff; in TestBlur()
1894 int max_diff = in TEST_F() local
1897 EXPECT_LE(max_diff, 1); in TEST_F()
1901 int max_diff = in TEST_F() local
1904 EXPECT_LE(max_diff, 1); in TEST_F()
1908 int max_diff = in TEST_F() local
1911 EXPECT_LE(max_diff, 1); in TEST_F()
1915 int max_diff = in TEST_F() local
1918 EXPECT_LE(max_diff, 1); in TEST_F()
1923 int max_diff = in TEST_F() local
1926 EXPECT_LE(max_diff, 1); in TEST_F()
1930 int max_diff = in TEST_F() local
1933 EXPECT_LE(max_diff, 1); in TEST_F()
1937 int max_diff = in TEST_F() local
1940 EXPECT_LE(max_diff, 1); in TEST_F()
1944 int max_diff = in TEST_F() local
1947 EXPECT_LE(max_diff, 1); in TEST_F()
2075 int max_diff = 0; in TestHalfFloatPlane() local
2080 if (abs_diff > max_diff) { in TestHalfFloatPlane()
2081 max_diff = abs_diff; in TestHalfFloatPlane()
2086 return max_diff; in TestHalfFloatPlane()
2198 float max_diff = 0; in TestByteToFloat() local
2201 if (abs_diff > max_diff) { in TestByteToFloat()
2202 max_diff = abs_diff; in TestByteToFloat()
2207 return max_diff; in TestByteToFloat()
2415 int max_diff = 0; in TestARGBRect() local
2419 if (abs_diff > max_diff) { in TestARGBRect()
2420 max_diff = abs_diff; in TestARGBRect()
2425 return max_diff; in TestARGBRect()
2429 int max_diff = TestARGBRect(benchmark_width_ - 1, benchmark_height_, in TEST_F() local
2432 EXPECT_EQ(0, max_diff); in TEST_F()
2436 int max_diff = in TEST_F() local
2439 EXPECT_EQ(0, max_diff); in TEST_F()
2443 int max_diff = in TEST_F() local
2446 EXPECT_EQ(0, max_diff); in TEST_F()
2450 int max_diff = in TEST_F() local
2453 EXPECT_EQ(0, max_diff); in TEST_F()
2457 int max_diff = TestARGBRect(benchmark_width_ - 1, benchmark_height_, in TEST_F() local
2460 EXPECT_EQ(0, max_diff); in TEST_F()
2464 int max_diff = in TEST_F() local
2467 EXPECT_EQ(0, max_diff); in TEST_F()
2471 int max_diff = in TEST_F() local
2474 EXPECT_EQ(0, max_diff); in TEST_F()
2478 int max_diff = in TEST_F() local
2481 EXPECT_EQ(0, max_diff); in TEST_F()
2944 float max_diff = FAbs(max_opt - max_c); in TestScaleMaxSamples() local
2948 if (abs_diff > max_diff) { in TestScaleMaxSamples()
2949 max_diff = abs_diff; in TestScaleMaxSamples()
2954 return max_diff; in TestScaleMaxSamples()
3019 float max_diff = 0.f; in TestScaleSumSamples() local
3021 max_diff = mse_error; in TestScaleSumSamples()
3027 if (abs_diff > max_diff) { in TestScaleSumSamples()
3028 max_diff = abs_diff; in TestScaleSumSamples()
3033 return max_diff; in TestScaleSumSamples()
3087 float max_diff = 0.f; in TestScaleSamples() local
3091 if (abs_diff > max_diff) { in TestScaleSamples()
3092 max_diff = abs_diff; in TestScaleSamples()
3097 return max_diff; in TestScaleSamples()
3147 float max_diff = 0.f; in TestCopySamples() local
3151 if (abs_diff > max_diff) { in TestCopySamples()
3152 max_diff = abs_diff; in TestCopySamples()
3157 return max_diff; in TestCopySamples()
3322 uint8_t max_diff = 0; in TestFloatDivToByte() local
3326 if (abs_diff > max_diff) { in TestFloatDivToByte()
3327 max_diff = abs_diff; in TestFloatDivToByte()
3338 return max_diff; in TestFloatDivToByte()