Home
last modified time | relevance | path

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

/external/skia/include/core/
DSkFixed.h23 #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)
DSkAutoKern.h38 return -SK_Fixed1; in adjust()
40 return +SK_Fixed1; in adjust()
DSkScalar.h213 #define SK_Scalar1 SK_Fixed1
250 #define SkScalarMulCeil(a, b) SkFixedMulCommon(a, b, SK_Fixed1 - 1)
/external/skia/tests/
DMathTest.cpp388 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 …]
DSk64Test.cpp186 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/
DSkMath.cpp214 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()
DSkScan_Antihair.cpp53 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 …]
DSkBitmapProcState_matrixProcs.cpp508 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()
DSkPoint.cpp261 if (length != SK_Fixed1) { in setLength()
345 int err = len - SK_Fixed1; in setLength()
370 if (length != SK_Fixed1) { in setLength()
DSkColor.cpp99 unsigned t = SkAlphaMul(255 - (s * (SK_Fixed1 - f) >> 16), v_scale); in SkHSVToColor()
DSkCordic.cpp106 if (z >= SK_Fixed1) in SkCordicASin()
DSkScan_Hairline.cpp210 const SkScalar dt = SkFixedToScalar(SK_Fixed1 >> level); in hairquad()
DSkBitmapProcState.cpp381 SkScalar scale = SkFixedToScalar(SK_Fixed1 >> shift); in chooseProcs()
DSkGeometry.cpp424 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()
DSkMatrix.cpp850 if (SkAbs32(inv->fMat[kMPersp2]) > SK_Fixed1) { in invert()
1353 SkFixed x = SK_Fixed1, y = SK_Fixed1; in poly_to_point()
DSkBitmap.cpp1214 if (sx < SK_Fixed1) { in ComputeMipLevel()
DSkDraw.cpp440 fRadius = SK_Fixed1 >> 1; in init()
/external/skia/include/gpu/
DGrScalar.h20 #define GR_Fixed1 SK_Fixed1
/external/skia/src/utils/
DSkInterpolator.cpp154 #define SK_Fixed1Third (SK_Fixed1/3)
155 #define SK_Fixed2Third (SK_Fixed1*2/3)
/external/skia/src/effects/
DSkGradientShader.cpp318 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()
DSkColorMatrixFilter.cpp147 int32_t one = SK_Fixed1; in setup()
/external/skia/src/ports/
DSkFontHost_mac_atsui.cpp150 Fixed fixedSize = SK_Fixed1; in SkScalerContext_Mac()
DSkFontHost_FreeType.cpp773 fMatrix22.xx = fMatrix22.yy = SK_Fixed1; in SkScalerContext_FreeType()
1145 identityMatrix.xx = identityMatrix.yy = SK_Fixed1; in generateMetrics()
DSkFontHost_win.cpp516 fMat22Identity.eM11 = fMat22Identity.eM22 = SkFixedToFIXED(SK_Fixed1); in SkScalerContext_Windows()
DSkFontHost_mac_coretext.cpp1788 offsetTable->fVersion = SkEndian_SwapBE32(SK_Fixed1); in OpenStream()