Home
last modified time | relevance | path

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

/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()
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()
Dskdiff.h263 return SkPackARGB32(0xFF, SkAbs32(dr), SkAbs32(dg), SkAbs32(db)); in compute_diff_pmcolor()
/external/skia/src/core/
DSkFDot6.h83 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()
DSkAnalyticEdge.h96 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()
DSkAnalyticEdge.cpp35 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()
DSkEdge.cpp150 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()
DSkUnPreMultiply.cpp83 int diff = SkAbs32(test - div); in SkUnPreMultiply_BuildTable()
DSkScan_AAAPath.cpp962 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()
DSkScan_Antihair.cpp281 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()
DSkEdge.h60 SkASSERT(SkAbs32(fWinding) == 1); in validate()
DSkScan_Hairline.cpp38 return SkAbs32(x) <= maxDot6; in canConvertFDot6ToFixed()
110 if (SkAbs32(dx) > SkAbs32(dy)) { // mostly horizontal in HairLineRgn()
DSkEdgeBuilder.cpp63 return SkAbs32(a - b) < 0x100; in approximatelyEqual()
/external/skia/tests/
DGrGetCoeffBlendKnownComponentsTest.cpp56 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()
DPathCoverageTest.cpp29 int idx = SkAbs32(SkScalarRoundToInt(dx)); in cheap_distance()
30 int idy = SkAbs32(SkScalarRoundToInt(dy)); in cheap_distance()
DWritePixelsTest.cpp179 SkAbs32(aR - bR) <= 1 && in check_pixel()
180 SkAbs32(aG - bG) <= 1 && in check_pixel()
181 SkAbs32(aB - bB) <= 1; in check_pixel()
DReadPixelsTest.cpp169 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()
DSkpSkGrTest.cpp288 int error = SkTMax(SkAbs32(dr), SkTMax(SkAbs32(dg), SkAbs32(db))); in similarBits()
DMathTest.cpp65 SkFixedDiv(SkAbs32(directAnswer - ourAnswer), SkAbs32(directAnswer)) <= 1 << 10 in test_quick_div()
/external/skia/samplecode/
DSampleColorFilter.cpp79 ae0 += SkAbs32(err0); in test_5bits()
80 ae1 += SkAbs32(err1); in test_5bits()
81 ae2 += SkAbs32(err2); in test_5bits()
/external/skia/src/effects/
DSkEmbossMask.cpp126 …SkFixed dot = (unsigned)(numer >> 4) * gInvSqrtTable[(SkAbs32(nx) >> 1 << 7) | (SkAbs32(ny) >> 1)]… in Emboss()
DSkBlurMask.cpp706 …int dx = SkAbs32(((loc << 1) + 1) - blurred_width) - sharp_width; // how far are we from the origi… in ProfileLookup()
/external/skia/gm/
Dimage_pict.cpp173 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/
DSkFixed.h82 #define SkFixedAbs(x) SkAbs32(x)
/external/skia/include/core/
DSkTypes.h344 static inline int32_t SkAbs32(int32_t value) { in SkAbs32() function
/external/skia/src/ports/
DSkFontHost_mac.cpp2206 SkASSERT(SkAbs32(value) < 0x7FFF); // check for overflow in sqr()