/external/skqp/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()
|
/external/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()
|
/external/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() 1439 prev->fX + SLACK >= next->fX - SkAbs32(next->fDX); in edges_too_close()
|
D | SkScan_Antihair.cpp | 290 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/ |
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 | SkCoverageDelta.h | 179 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()
|
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 | 954 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()
|
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()
|
/external/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()
|
/external/skqp/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()
|
/external/skqp/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()
|
/external/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()
|
/external/skqp/include/private/ |
D | SkFixed.h | 88 #define SkFixedAbs(x) SkAbs32(x)
|
/external/skia/include/private/ |
D | SkFixed.h | 88 #define SkFixedAbs(x) SkAbs32(x)
|