Searched refs:almost_equal (Results 1 – 5 of 5) sorted by relevance
/external/skia/tests/ |
D | ColorSpaceTest.cpp | 18 static bool almost_equal(float a, float b) { in almost_equal() function 41 REPORTER_ASSERT(r, almost_equal(ref[i][0], dst[0])); in test_space() 42 REPORTER_ASSERT(r, almost_equal(ref[i][1], dst[1])); in test_space() 43 REPORTER_ASSERT(r, almost_equal(ref[i][2], dst[2])); in test_space() 317 return almost_equal(a.get(0, 0), b.get(0, 0)) && in matrix_almost_equal() 318 almost_equal(a.get(0, 1), b.get(0, 1)) && in matrix_almost_equal() 319 almost_equal(a.get(0, 2), b.get(0, 2)) && in matrix_almost_equal() 320 almost_equal(a.get(0, 3), b.get(0, 3)) && in matrix_almost_equal() 321 almost_equal(a.get(1, 0), b.get(1, 0)) && in matrix_almost_equal() 322 almost_equal(a.get(1, 1), b.get(1, 1)) && in matrix_almost_equal() [all …]
|
D | ColorSpaceXformTest.cpp | 70 static bool almost_equal(int x, int y, int tol=1) { in almost_equal() function 93 REPORTER_ASSERT(r, almost_equal(((srcPixels[i] >> 0) & 0xFF), in test_identity_xform() 95 REPORTER_ASSERT(r, almost_equal(((srcPixels[i] >> 8) & 0xFF), in test_identity_xform() 97 REPORTER_ASSERT(r, almost_equal(((srcPixels[i] >> 16) & 0xFF), in test_identity_xform() 99 REPORTER_ASSERT(r, almost_equal(((srcPixels[i] >> 24) & 0xFF), in test_identity_xform() 129 REPORTER_ASSERT(r, almost_equal(((srcPixels[i] >> 0) & 0xFF), in test_identity_xform_A2B() 131 REPORTER_ASSERT(r, almost_equal(((srcPixels[i] >> 8) & 0xFF), in test_identity_xform_A2B() 133 REPORTER_ASSERT(r, almost_equal(((srcPixels[i] >> 16) & 0xFF), in test_identity_xform_A2B() 135 REPORTER_ASSERT(r, almost_equal(((srcPixels[i] >> 24) & 0xFF), in test_identity_xform_A2B() 323 REPORTER_ASSERT(r, almost_equal(SkColorGetR(srcPixels[i]), in DEF_TEST() [all …]
|
D | ImageTest.cpp | 1132 static inline bool almost_equal(int a, int b) { in almost_equal() function 1184 REPORTER_ASSERT(r, almost_equal(0x28, SkGetPackedR32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST() 1185 REPORTER_ASSERT(r, almost_equal(0x40, SkGetPackedG32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST() 1186 REPORTER_ASSERT(r, almost_equal(0x5E, SkGetPackedB32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST() 1193 REPORTER_ASSERT(r, almost_equal(0x21, SkGetPackedR32(*adobeBitmap.getAddr32(0, 0)))); in DEF_TEST() 1194 REPORTER_ASSERT(r, almost_equal(0x31, SkGetPackedG32(*adobeBitmap.getAddr32(0, 0)))); in DEF_TEST() 1195 REPORTER_ASSERT(r, almost_equal(0x4C, SkGetPackedB32(*adobeBitmap.getAddr32(0, 0)))); in DEF_TEST() 1201 REPORTER_ASSERT(r, almost_equal(0x8B, SkGetPackedR32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST() 1202 REPORTER_ASSERT(r, almost_equal(0x82, SkGetPackedG32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST() 1203 REPORTER_ASSERT(r, almost_equal(0x77, SkGetPackedB32(*p3Bitmap.getAddr32(0, 0)))); in DEF_TEST()
|
D | ICCTest.cpp | 19 static bool almost_equal(float a, float b) { in almost_equal() function 31 REPORTER_ASSERT(r, almost_equal(resultVals[i], reference[i])); in test_to_xyz_d50()
|
/external/skia/src/core/ |
D | SkPath.cpp | 2258 static bool almost_equal(SkScalar compA, SkScalar compB) { in almost_equal() function 2353 if (!almost_equal(largest, largest + cross)) { in directionChange()
|