/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() 182 uint32_t thisA = SkAbs32(SkGetPackedA32(c0) - SkGetPackedA32(c1)); in compute_diff() 183 uint32_t thisR = SkAbs32(SkGetPackedR32(c0) - SkGetPackedR32(c1)); in compute_diff() 184 uint32_t thisG = SkAbs32(SkGetPackedG32(c0) - SkGetPackedG32(c1)); in compute_diff() 185 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 | SkFDot6.h | 83 SkASSERT(SkAbs32(x) < kInverseTableSize); in Lookup() 94 SkFDot6 abs_a = SkAbs32(a); in QuickSkFDot6Div() 95 SkFDot6 abs_b = SkAbs32(b); in QuickSkFDot6Div() 104 SkFixedDiv(SkAbs32(directAnswer - ourAnswer), SkAbs32(directAnswer)) <= 1 << 10 in QuickSkFDot6Div()
|
D | SkAnalyticEdge.h | 96 SkASSERT(SkAbs32(fWinding) == 1); in validate() 112 SkASSERT(SkAbs32(fX - SkFixedMul(fY - fSnappedY, fDX) - fSnappedX) < SK_Fixed1); in keepContinuous() 113 SkASSERT(SkAbs32(fY - fSnappedY) < SK_Fixed1); // This may differ due to smooth jump in keepContinuous() 127 SkASSERT(SkAbs32(fX - SkFixedMul(fDX, fY - SnapY(fCEdge.fCy)) - fCEdge.fCx) < SK_Fixed1); in keepContinuous() 160 SkFixed absSlope = SkAbs32(slope); in setLine() 170 : SkAbs32(QuickSkFDot6Div(dy, dx)); in setLine()
|
D | SkAnalyticEdge.cpp | 35 SkFDot6 absSlope = SkAbs32(SkFixedToFDot6(slope)); in updateLine() 46 : SkAbs32(QuickSkFDot6Div(dy, dx)); in updateLine() 96 if (SkAbs32(dy >> shift) >= SK_Fixed1 * 2) { // only snap when dy is large enough in updateQuadratic()
|
D | SkEdge.cpp | 150 dx = SkAbs32(dx); in cheap_distance() 151 dy = SkAbs32(dy); in cheap_distance() 347 return SkMax32(SkAbs32(oneThird), SkAbs32(twoThird)); in cubic_delta_from_line()
|
D | SkUnPreMultiply.cpp | 83 int diff = SkAbs32(test - div); in SkUnPreMultiply_BuildTable()
|
D | SkScan_AAAPath.cpp | 962 return SkAbs32(cEdge.fCDx) >> 1 >= SkAbs32(cEdge.fCDDx) >> ddshift && in isSmoothEnough() 963 SkAbs32(cEdge.fCDy) >> 1 >= SkAbs32(cEdge.fCDDy) >> ddshift && in isSmoothEnough() 968 return SkAbs32(qEdge.fQDx) >> 1 >= SkAbs32(qEdge.fQDDx) && in isSmoothEnough() 969 SkAbs32(qEdge.fQDy) >> 1 >= SkAbs32(qEdge.fQDDy) && in isSmoothEnough() 974 return SkAbs32(nextEdge->fDX - thisEdge->fDX) <= SK_Fixed1 && // DDx should be small in isSmoothEnough() 1308 return next && prev && next->fUpperY < lowerY && prev->fX >= next->fX - SkAbs32(next->fDX); in edges_too_close()
|
D | SkScan_Antihair.cpp | 281 return SkAbs32(x) <= maxDot6; in canConvertFDot6ToFixed() 320 if (SkAbs32(x1 - x0) > SkIntToFDot6(511) || SkAbs32(y1 - y0) > SkIntToFDot6(511)) { in do_anti_hairline() 344 if (SkAbs32(x1 - x0) > SkAbs32(y1 - y0)) { // mostly horizontal in do_anti_hairline()
|
D | SkEdge.h | 60 SkASSERT(SkAbs32(fWinding) == 1); in validate()
|
D | SkScan_Hairline.cpp | 38 return SkAbs32(x) <= maxDot6; in canConvertFDot6ToFixed() 110 if (SkAbs32(dx) > SkAbs32(dy)) { // mostly horizontal in HairLineRgn()
|
D | SkEdgeBuilder.cpp | 63 return SkAbs32(a - b) < 0x100; in approximatelyEqual()
|
/external/skia/tests/ |
D | GrGetCoeffBlendKnownComponentsTest.cpp | 56 if (SkAbs32(GrColorUnpackA(baselineColor) - GrColorUnpackA(outColor)) > 1 || in DEF_TEST() 57 SkAbs32(GrColorUnpackR(baselineColor) - GrColorUnpackR(outColor)) > 1 || in DEF_TEST() 58 SkAbs32(GrColorUnpackG(baselineColor) - GrColorUnpackG(outColor)) > 1 || in DEF_TEST() 59 SkAbs32(GrColorUnpackB(baselineColor) - GrColorUnpackB(outColor)) > 1) { in DEF_TEST()
|
D | PathCoverageTest.cpp | 29 int idx = SkAbs32(SkScalarRoundToInt(dx)); in cheap_distance() 30 int idy = SkAbs32(SkScalarRoundToInt(dy)); in cheap_distance()
|
D | WritePixelsTest.cpp | 179 SkAbs32(aR - bR) <= 1 && in check_pixel() 180 SkAbs32(aG - bG) <= 1 && in check_pixel() 181 SkAbs32(aB - bB) <= 1; in check_pixel()
|
D | ReadPixelsTest.cpp | 169 SkAbs32(aR - bR) <= 1 && in check_read_pixel() 170 SkAbs32(aG - bG) <= 1 && in check_read_pixel() 171 SkAbs32(aB - bB) <= 1; in check_read_pixel()
|
D | SkpSkGrTest.cpp | 288 int error = SkTMax(SkAbs32(dr), SkTMax(SkAbs32(dg), SkAbs32(db))); in similarBits()
|
D | MathTest.cpp | 65 SkFixedDiv(SkAbs32(directAnswer - ourAnswer), SkAbs32(directAnswer)) <= 1 << 10 in test_quick_div()
|
/external/skia/samplecode/ |
D | SampleColorFilter.cpp | 79 ae0 += SkAbs32(err0); in test_5bits() 80 ae1 += SkAbs32(err1); in test_5bits() 81 ae2 += SkAbs32(err2); in test_5bits()
|
/external/skia/src/effects/ |
D | SkEmbossMask.cpp | 126 …SkFixed dot = (unsigned)(numer >> 4) * gInvSqrtTable[(SkAbs32(nx) >> 1 << 7) | (SkAbs32(ny) >> 1)]… in Emboss()
|
D | SkBlurMask.cpp | 706 …int dx = SkAbs32(((loc << 1) + 1) - blurred_width) - sharp_width; // how far are we from the origi… in ProfileLookup()
|
/external/skia/gm/ |
D | image_pict.cpp | 173 int dr = SkAbs32((int)SkGetPackedR32(table[i]) - cr); in find_closest() 174 int dg = SkAbs32((int)SkGetPackedG32(table[i]) - cg); in find_closest() 175 int db = SkAbs32((int)SkGetPackedB32(table[i]) - cb); in find_closest()
|
/external/skia/include/private/ |
D | SkFixed.h | 82 #define SkFixedAbs(x) SkAbs32(x)
|
/external/skia/include/core/ |
D | SkTypes.h | 344 static inline int32_t SkAbs32(int32_t value) { in SkAbs32() function
|
/external/skia/src/ports/ |
D | SkFontHost_mac.cpp | 2206 SkASSERT(SkAbs32(value) < 0x7FFF); // check for overflow in sqr()
|