Home
last modified time | relevance | path

Searched refs:SkAbs32 (Results 1 – 25 of 38) sorted by relevance

12

/third_party/skia/tools/skdiff/
Dskdiff.cpp149 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()
Dskdiff.h263 return SkPackARGB32(0xFF, SkAbs32(dr), SkAbs32(dg), SkAbs32(db)); in compute_diff_pmcolor()
/third_party/flutter/skia/tools/skdiff/
Dskdiff.cpp149 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()
Dskdiff.h263 return SkPackARGB32(0xFF, SkAbs32(dr), SkAbs32(dg), SkAbs32(db)); in compute_diff_pmcolor()
/third_party/flutter/skia/src/core/
DSkAnalyticEdge.cpp17 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()
DSkAnalyticEdge.h102 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()
DSkEdge.cpp154 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()
DSkUnPreMultiply.cpp74 int diff = SkAbs32(test - div); in SkUnPreMultiply_BuildTable()
DSkScan_AAAPath.cpp1056 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()
DSkScan_Antihair.cpp284 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()
DSkEdge.h62 SkASSERT(SkAbs32(fWinding) == 1); in validate()
/third_party/skia/src/core/
DSkAnalyticEdge.cpp17 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()
DSkAnalyticEdge.h102 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()
DSkEdge.cpp154 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()
DSkUnPreMultiply.cpp74 int diff = SkAbs32(test - div); in SkUnPreMultiply_BuildTable()
DSkScan_AAAPath.cpp1055 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()
DSkScan_Antihair.cpp289 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/
DSampleColorFilter.cpp78 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/
DPathCoverageTest.cpp29 int idx = SkAbs32(SkScalarRoundToInt(dx)); in cheap_distance()
30 int idy = SkAbs32(SkScalarRoundToInt(dy)); in cheap_distance()
DWritePixelsTest.cpp174 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/
DPathCoverageTest.cpp29 int idx = SkAbs32(SkScalarRoundToInt(dx)); in cheap_distance()
30 int idy = SkAbs32(SkScalarRoundToInt(dy)); in cheap_distance()
DReadPixelsTest.cpp156 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()
DWritePixelsTest.cpp174 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/
DSkFixed.h88 #define SkFixedAbs(x) SkAbs32(x)
/third_party/skia/include/private/
DSkFixed.h89 #define SkFixedAbs(x) SkAbs32(x)

12