Home
last modified time | relevance | path

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

12

/external/skqp/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()
/external/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()
/external/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()
1439 prev->fX + SLACK >= next->fX - SkAbs32(next->fDX); in edges_too_close()
DSkScan_Antihair.cpp290 return SkAbs32(x) <= maxDot6; in canConvertFDot6ToFixed()
329 if (SkAbs32(x1 - x0) > SkIntToFDot6(511) || SkAbs32(y1 - y0) > SkIntToFDot6(511)) { in do_anti_hairline()
353 if (SkAbs32(x1 - x0) > SkAbs32(y1 - y0)) { // mostly horizontal in do_anti_hairline()
/external/skqp/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()
DSkCoverageDelta.h179 result = SkTPin(SkAbs32((mod16 << 1) - mod17) >> 8, 0, 255); in CoverageToAlpha()
181 result = SkTPin(SkAbs32(coverage) >> 8, 0, 255); in CoverageToAlpha()
236 int result = SkAbs32(coverage) >> 8; in ConvexCoverageToAlpha()
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.cpp954 return SkAbs32(cEdge.fCDx) >> 1 >= SkAbs32(cEdge.fCDDx) >> ddshift && in isSmoothEnough()
955 SkAbs32(cEdge.fCDy) >> 1 >= SkAbs32(cEdge.fCDDy) >> ddshift && in isSmoothEnough()
960 return SkAbs32(qEdge.fQDx) >> 1 >= SkAbs32(qEdge.fQDDx) && in isSmoothEnough()
961 SkAbs32(qEdge.fQDy) >> 1 >= SkAbs32(qEdge.fQDDy) && in isSmoothEnough()
966 return SkAbs32(nextEdge->fDX - thisEdge->fDX) <= SK_Fixed1 && // DDx should be small in isSmoothEnough()
1310 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()
/external/skia/samplecode/
DSampleColorFilter.cpp78 ae0 += SkAbs32(err0); in test_5bits()
79 ae1 += SkAbs32(err1); in test_5bits()
80 ae2 += SkAbs32(err2); in test_5bits()
/external/skqp/samplecode/
DSampleColorFilter.cpp78 ae0 += SkAbs32(err0); in test_5bits()
79 ae1 += SkAbs32(err1); in test_5bits()
80 ae2 += SkAbs32(err2); in test_5bits()
/external/skqp/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()
/external/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()
/external/skqp/include/private/
DSkFixed.h88 #define SkFixedAbs(x) SkAbs32(x)
/external/skia/include/private/
DSkFixed.h88 #define SkFixedAbs(x) SkAbs32(x)

12