/third_party/skia/tools/skdiff/ |
D | skdiff.cpp | 149 return ((SkAbs32(da) <= threshold) && in colors_match_thresholded() 150 (SkAbs32(dr) <= threshold) && in colors_match_thresholded() 151 (SkAbs32(dg) <= threshold) && in colors_match_thresholded() 152 (SkAbs32(db) <= threshold)); in colors_match_thresholded() 180 uint32_t thisA = SkAbs32(SkGetPackedA32(c0) - SkGetPackedA32(c1)); in compute_diff() 181 uint32_t thisR = SkAbs32(SkGetPackedR32(c0) - SkGetPackedR32(c1)); in compute_diff() 182 uint32_t thisG = SkAbs32(SkGetPackedG32(c0) - SkGetPackedG32(c1)); in compute_diff() 183 uint32_t thisB = SkAbs32(SkGetPackedB32(c0) - SkGetPackedB32(c1)); in compute_diff()
|
D | skdiff.h | 263 return SkPackARGB32(0xFF, SkAbs32(dr), SkAbs32(dg), SkAbs32(db)); in compute_diff_pmcolor()
|
/third_party/flutter/skia/tools/skdiff/ |
D | skdiff.cpp | 149 return ((SkAbs32(da) <= threshold) && in colors_match_thresholded() 150 (SkAbs32(dr) <= threshold) && in colors_match_thresholded() 151 (SkAbs32(dg) <= threshold) && in colors_match_thresholded() 152 (SkAbs32(db) <= threshold)); in colors_match_thresholded() 180 uint32_t thisA = SkAbs32(SkGetPackedA32(c0) - SkGetPackedA32(c1)); in compute_diff() 181 uint32_t thisR = SkAbs32(SkGetPackedR32(c0) - SkGetPackedR32(c1)); in compute_diff() 182 uint32_t thisG = SkAbs32(SkGetPackedG32(c0) - SkGetPackedG32(c1)); in compute_diff() 183 uint32_t thisB = SkAbs32(SkGetPackedB32(c0) - SkGetPackedB32(c1)); in compute_diff()
|
D | skdiff.h | 263 return SkPackARGB32(0xFF, SkAbs32(dr), SkAbs32(dg), SkAbs32(db)); in compute_diff_pmcolor()
|
/third_party/flutter/skia/src/core/ |
D | SkAnalyticEdge.cpp | 17 SkASSERT(SkAbs32(x) < kInverseTableSize); in quick_inverse() 212 SkFDot6 abs_a = SkAbs32(a); in quick_div() 213 SkFDot6 abs_b = SkAbs32(b); in quick_div() 220 SkFixedDiv(SkAbs32(SkFDot6Div(a,b) - ourAnswer), SkAbs32(SkFDot6Div(a,b))) <= 1 << 10 in quick_div() 262 SkFixed absSlope = SkAbs32(slope); in setLine() 272 : SkAbs32(quick_div(dy, dx)); in setLine() 311 SkFDot6 absSlope = SkAbs32(SkFixedToFDot6(slope)); in updateLine() 322 : SkAbs32(quick_div(dy, dx)); in updateLine() 382 if (SkAbs32(dy >> shift) >= SK_Fixed1 * 2) { // only snap when dy is large enough in updateQuadratic()
|
D | SkAnalyticEdge.h | 102 SkASSERT(SkAbs32(fWinding) == 1); in validate() 118 SkASSERT(SkAbs32(fX - SkFixedMul(fY - fSnappedY, fDX) - fSnappedX) < SK_Fixed1); in keepContinuous() 119 SkASSERT(SkAbs32(fY - fSnappedY) < SK_Fixed1); // This may differ due to smooth jump in keepContinuous() 133 SkASSERT(SkAbs32(fX - SkFixedMul(fDX, fY - SnapY(fCEdge.fCy)) - fCEdge.fCx) < SK_Fixed1); in keepContinuous()
|
D | SkEdge.cpp | 154 dx = SkAbs32(dx); in cheap_distance() 155 dy = SkAbs32(dy); in cheap_distance() 348 return SkMax32(SkAbs32(oneThird), SkAbs32(twoThird)); in cubic_delta_from_line()
|
D | SkUnPreMultiply.cpp | 74 int diff = SkAbs32(test - div); in SkUnPreMultiply_BuildTable()
|
D | SkScan_AAAPath.cpp | 1056 return SkAbs32(cEdge.fCDx) >> 1 >= SkAbs32(cEdge.fCDDx) >> ddshift && in is_smooth_enough() 1057 SkAbs32(cEdge.fCDy) >> 1 >= SkAbs32(cEdge.fCDDy) >> ddshift && in is_smooth_enough() 1062 return SkAbs32(qEdge.fQDx) >> 1 >= SkAbs32(qEdge.fQDDx) && in is_smooth_enough() 1063 SkAbs32(qEdge.fQDy) >> 1 >= SkAbs32(qEdge.fQDDy) && in is_smooth_enough() 1067 return SkAbs32(nextEdge->fDX - thisEdge->fDX) <= SK_Fixed1 && // DDx should be small in is_smooth_enough() 1440 prev->fX + SLACK >= next->fX - SkAbs32(next->fDX); in edges_too_close()
|
D | SkScan_Antihair.cpp | 284 return SkAbs32(x) <= maxDot6; in canConvertFDot6ToFixed() 323 if (SkAbs32(x1 - x0) > SkIntToFDot6(511) || SkAbs32(y1 - y0) > SkIntToFDot6(511)) { in do_anti_hairline() 347 if (SkAbs32(x1 - x0) > SkAbs32(y1 - y0)) { // mostly horizontal in do_anti_hairline()
|
D | SkEdge.h | 62 SkASSERT(SkAbs32(fWinding) == 1); in validate()
|
/third_party/skia/src/core/ |
D | SkAnalyticEdge.cpp | 17 SkASSERT(SkAbs32(x) < kInverseTableSize); in quick_inverse() 212 SkFDot6 abs_a = SkAbs32(a); in quick_div() 213 SkFDot6 abs_b = SkAbs32(b); in quick_div() 220 SkFixedDiv(SkAbs32(SkFDot6Div(a,b) - ourAnswer), SkAbs32(SkFDot6Div(a,b))) <= 1 << 10 in quick_div() 262 SkFixed absSlope = SkAbs32(slope); in setLine() 272 : SkAbs32(quick_div(dy, dx)); in setLine() 311 SkFDot6 absSlope = SkAbs32(SkFixedToFDot6(slope)); in updateLine() 322 : SkAbs32(quick_div(dy, dx)); in updateLine() 382 if (SkAbs32(dy >> shift) >= SK_Fixed1 * 2) { // only snap when dy is large enough in updateQuadratic()
|
D | SkAnalyticEdge.h | 102 SkASSERT(SkAbs32(fWinding) == 1); in validate() 118 SkASSERT(SkAbs32(fX - SkFixedMul(fY - fSnappedY, fDX) - fSnappedX) < SK_Fixed1); in keepContinuous() 119 SkASSERT(SkAbs32(fY - fSnappedY) < SK_Fixed1); // This may differ due to smooth jump in keepContinuous() 133 SkASSERT(SkAbs32(fX - SkFixedMul(fDX, fY - SnapY(fCEdge.fCy)) - fCEdge.fCx) < SK_Fixed1); in keepContinuous()
|
D | SkEdge.cpp | 154 dx = SkAbs32(dx); in cheap_distance() 155 dy = SkAbs32(dy); in cheap_distance() 348 return std::max(SkAbs32(oneThird), SkAbs32(twoThird)); in cubic_delta_from_line()
|
D | SkUnPreMultiply.cpp | 74 int diff = SkAbs32(test - div); in SkUnPreMultiply_BuildTable()
|
D | SkScan_AAAPath.cpp | 1055 return SkAbs32(cEdge.fCDx) >> 1 >= SkAbs32(cEdge.fCDDx) >> ddshift && in is_smooth_enough() 1056 SkAbs32(cEdge.fCDy) >> 1 >= SkAbs32(cEdge.fCDDy) >> ddshift && in is_smooth_enough() 1061 return SkAbs32(qEdge.fQDx) >> 1 >= SkAbs32(qEdge.fQDDx) && in is_smooth_enough() 1062 SkAbs32(qEdge.fQDy) >> 1 >= SkAbs32(qEdge.fQDDy) && in is_smooth_enough() 1066 return SkAbs32(nextEdge->fDX - thisEdge->fDX) <= SK_Fixed1 && // DDx should be small in is_smooth_enough() 1446 prev->fX + SLACK >= next->fX - SkAbs32(next->fDX); in edges_too_close()
|
D | SkScan_Antihair.cpp | 289 return SkAbs32(x) <= maxDot6; in canConvertFDot6ToFixed() 328 if (SkAbs32(x1 - x0) > SkIntToFDot6(511) || SkAbs32(y1 - y0) > SkIntToFDot6(511)) { in do_anti_hairline() 352 if (SkAbs32(x1 - x0) > SkAbs32(y1 - y0)) { // mostly horizontal in do_anti_hairline()
|
/third_party/flutter/skia/samplecode/ |
D | SampleColorFilter.cpp | 78 ae0 += SkAbs32(err0); in test_5bits() 79 ae1 += SkAbs32(err1); in test_5bits() 80 ae2 += SkAbs32(err2); in test_5bits()
|
/third_party/flutter/skia/tests/ |
D | PathCoverageTest.cpp | 29 int idx = SkAbs32(SkScalarRoundToInt(dx)); in cheap_distance() 30 int idy = SkAbs32(SkScalarRoundToInt(dy)); in cheap_distance()
|
D | WritePixelsTest.cpp | 174 SkAbs32(aR - bR) <= 1 && in check_pixel() 175 SkAbs32(aG - bG) <= 1 && in check_pixel() 176 SkAbs32(aB - bB) <= 1; in check_pixel()
|
/third_party/skia/tests/ |
D | PathCoverageTest.cpp | 29 int idx = SkAbs32(SkScalarRoundToInt(dx)); in cheap_distance() 30 int idy = SkAbs32(SkScalarRoundToInt(dy)); in cheap_distance()
|
D | ReadPixelsTest.cpp | 156 SkAbs32(aR - bR) <= 1 && in check_read_pixel() 157 SkAbs32(aG - bG) <= 1 && in check_read_pixel() 158 SkAbs32(aB - bB) <= 1; in check_read_pixel()
|
D | WritePixelsTest.cpp | 174 SkAbs32(aR - bR) <= 1 && in check_pixel() 175 SkAbs32(aG - bG) <= 1 && in check_pixel() 176 SkAbs32(aB - bB) <= 1; in check_pixel()
|
/third_party/flutter/skia/include/private/ |
D | SkFixed.h | 88 #define SkFixedAbs(x) SkAbs32(x)
|
/third_party/skia/include/private/ |
D | SkFixed.h | 89 #define SkFixedAbs(x) SkAbs32(x)
|