/external/skia/include/core/ |
D | SkFixed.h | 23 #define SK_Fixed1 (1 << 16) macro 36 #define SkFloatToFixed(x) ((SkFixed)((x) * SK_Fixed1)) 40 int64_t n = x * SK_Fixed1; in SkFloatToFixed() 46 #define SkDoubleToFixed(x) ((SkFixed)((x) * SK_Fixed1)) 101 #define SkFixedCeilToInt(x) (((x) + SK_Fixed1 - 1) >> 16) 105 #define SkFixedCeilToFixed(x) (((x) + SK_Fixed1 - 1) & 0xFFFF0000) 133 #define SkFixedInvert(n) SkDivBits(SK_Fixed1, n, 16) 157 #define SK_FixedNearlyZero (SK_Fixed1 >> 12)
|
D | SkAutoKern.h | 38 return -SK_Fixed1; in adjust() 40 return +SK_Fixed1; in adjust()
|
D | SkScalar.h | 213 #define SK_Scalar1 SK_Fixed1 250 #define SkScalarMulCeil(a, b) SkFixedMulCommon(a, b, SK_Fixed1 - 1)
|
/external/skia/tests/ |
D | MathTest.cpp | 388 x = SkFixedSqrt(SK_Fixed1); in TestMath() 389 REPORTER_ASSERT(reporter, x == SK_Fixed1); in TestMath() 390 x = SkFixedSqrt(SK_Fixed1/4); in TestMath() 391 REPORTER_ASSERT(reporter, x == SK_Fixed1/2); in TestMath() 392 x = SkFixedSqrt(SK_Fixed1*4); in TestMath() 393 REPORTER_ASSERT(reporter, x == SK_Fixed1*2); in TestMath() 403 x = SkFixedSqrt(SK_Fixed1 * i * i); in TestMath() 404 REPORTER_ASSERT(reporter, x == SK_Fixed1 * i); in TestMath() 427 REPORTER_ASSERT(reporter, result == SK_Fixed1); in TestMath() 428 result = SkFixedDiv(1, SK_Fixed1); in TestMath() [all …]
|
D | Sk64Test.cpp | 186 if (ddiv >= (double)SK_MaxS32 / (double)SK_Fixed1) in TestSk64() 188 else if (ddiv <= -(double)SK_MaxS32 / (double)SK_Fixed1) in TestSk64()
|
/external/skia/src/core/ |
D | SkMath.cpp | 214 if (x == SK_Fixed1) { in SkFixedFastInvert() 215 return SK_Fixed1; in SkFixedFastInvert() 227 uint32_t slow = SkFixedDiv(SK_Fixed1, a); in SkFixedFastInvert() 429 int ival = (int)(val * SK_Fixed1); in build_sintable() 445 SkFixed upper = (index == kTableSize - 1) ? SK_Fixed1 : table[index + 1]; in interp_table() 449 SkASSERT(upper <= SK_Fixed1); in interp_table() 493 cosValue = SK_Fixed1; in SkFixedSinCos() 519 int diff = cos2 + sin2 - SK_Fixed1; in SkFixedSinCos()
|
D | SkScan_Antihair.cpp | 53 SkASSERT(n >= 0 && n <= SK_Fixed1); in build_gamma_table() 93 fy += SK_Fixed1/2; in hline() 110 return fy - SK_Fixed1/2; in hline() 126 fy += SK_Fixed1/2; in horish() 149 return fy - SK_Fixed1/2; in horish() 155 fx += SK_Fixed1/2; in vline() 169 return fx - SK_Fixed1/2; in vline() 184 fx += SK_Fixed1/2; in vertish() 200 return fx - SK_Fixed1/2; in vertish() 250 SkASSERT(slope >= -SK_Fixed1 && slope <= SK_Fixed1); in do_anti_hairline() [all …]
|
D | SkBitmapProcState_matrixProcs.cpp | 508 fFilterOneX = SK_Fixed1; in chooseMatrixProc() 509 fFilterOneY = SK_Fixed1; in chooseMatrixProc() 514 fFilterOneX = SK_Fixed1 / fBitmap->width(); in chooseMatrixProc() 515 fFilterOneY = SK_Fixed1 / fBitmap->height(); in chooseMatrixProc()
|
D | SkPoint.cpp | 261 if (length != SK_Fixed1) { in setLength() 345 int err = len - SK_Fixed1; in setLength() 370 if (length != SK_Fixed1) { in setLength()
|
D | SkColor.cpp | 99 unsigned t = SkAlphaMul(255 - (s * (SK_Fixed1 - f) >> 16), v_scale); in SkHSVToColor()
|
D | SkCordic.cpp | 106 if (z >= SK_Fixed1) in SkCordicASin()
|
D | SkScan_Hairline.cpp | 210 const SkScalar dt = SkFixedToScalar(SK_Fixed1 >> level); in hairquad()
|
D | SkBitmapProcState.cpp | 381 SkScalar scale = SkFixedToScalar(SK_Fixed1 >> shift); in chooseProcs()
|
D | SkGeometry.cpp | 424 SkASSERT(t >= 0 && t <= SK_Fixed1); // assert that we're numerically stable (ha!) in SkChopQuadAtMaxCurvature() 425 if ((unsigned)t >= SK_Fixed1) // runtime check for numerical stability in SkChopQuadAtMaxCurvature()
|
D | SkMatrix.cpp | 850 if (SkAbs32(inv->fMat[kMPersp2]) > SK_Fixed1) { in invert() 1353 SkFixed x = SK_Fixed1, y = SK_Fixed1; in poly_to_point()
|
D | SkBitmap.cpp | 1214 if (sx < SK_Fixed1) { in ComputeMipLevel()
|
D | SkDraw.cpp | 440 fRadius = SK_Fixed1 >> 1; in init()
|
/external/skia/include/gpu/ |
D | GrScalar.h | 20 #define GR_Fixed1 SK_Fixed1
|
/external/skia/src/utils/ |
D | SkInterpolator.cpp | 154 #define SK_Fixed1Third (SK_Fixed1/3) 155 #define SK_Fixed2Third (SK_Fixed1*2/3)
|
/external/skia/src/effects/ |
D | SkGradientShader.cpp | 318 curr = SK_Fixed1; in Gradient_Shader() 325 } else if (curr > SK_Fixed1) { in Gradient_Shader() 326 curr = SK_Fixed1; in Gradient_Shader() 339 SkFixed dp = SK_Fixed1 / (colorCount - 1); in Gradient_Shader() 602 SkASSERT((unsigned)x <= SK_Fixed1); in SkFixedToFFFF() 1051 if (SkFixedNearlyZero(dx, (SK_Fixed1 >> 14))) { in shadeSpan() 1294 uint8_t value = SkToU8(SkFixedSqrt(i * SK_Fixed1 / kSQRT_TABLE_SIZE) >> 8); in SkRadialGradient_BuildTable()
|
D | SkColorMatrixFilter.cpp | 147 int32_t one = SK_Fixed1; in setup()
|
/external/skia/src/ports/ |
D | SkFontHost_mac_atsui.cpp | 150 Fixed fixedSize = SK_Fixed1; in SkScalerContext_Mac()
|
D | SkFontHost_FreeType.cpp | 773 fMatrix22.xx = fMatrix22.yy = SK_Fixed1; in SkScalerContext_FreeType() 1145 identityMatrix.xx = identityMatrix.yy = SK_Fixed1; in generateMetrics()
|
D | SkFontHost_win.cpp | 516 fMat22Identity.eM11 = fMat22Identity.eM22 = SkFixedToFIXED(SK_Fixed1); in SkScalerContext_Windows()
|
D | SkFontHost_mac_coretext.cpp | 1788 offsetTable->fVersion = SkEndian_SwapBE32(SK_Fixed1); in OpenStream()
|