Searched refs:SK_Fixed1 (Results 1 – 9 of 9) sorted by relevance
25 #define SK_Fixed1 (1 << 16) macro41 #define SkFloatToFixed(x) sk_float_saturate2int((x) * SK_Fixed1)45 int64_t n64 = (int64_t)(x * SK_Fixed1); in SkFloatToFixed_Check()55 #define SkDoubleToFixed(x) ((SkFixed)((x) * SK_Fixed1))76 #define SkFixedCeilToInt(x) (((x) + SK_Fixed1 - 1) >> 16)83 return (SkFixed)( (uint32_t)(x + SK_Fixed1 - 1) & 0xFFFF0000 ); in SkFixedCeilToFixed()
54 return ((unsigned)y + (SK_Fixed1 >> (accuracy + 1))) >> (16 - accuracy) << (16 - accuracy); in SnapY()59 if (y == fY + SK_Fixed1) { in goY()72 SkASSERT(fDX == 0 || y - fY == SK_Fixed1 >> yShift); in goY()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()
55 SkASSERT(n >= 0 && n <= SK_Fixed1); in build_gamma_table()118 fy += SK_Fixed1/2; in drawCap()135 return fy - SK_Fixed1/2; in drawCap()141 fy += SK_Fixed1/2; in drawLine()157 return fy - SK_Fixed1/2; in drawLine()164 fy += SK_Fixed1/2; in drawCap()172 return fy + dy - SK_Fixed1/2; in drawCap()178 fy += SK_Fixed1/2; in drawLine()187 return fy - SK_Fixed1/2; in drawLine()195 fx += SK_Fixed1/2; in drawCap()[all …]
549 SkASSERT(a <= SK_Fixed1); in partial_triangle_to_alpha()552 SkASSERT(b <= SK_Fixed1); in partial_triangle_to_alpha()579 SkASSERT(f <= SK_Fixed1); in fixed_to_alpha()609 SkFixed first = SK_Fixed1 - l; // horizontal edge length of the left-most triangle in compute_alpha_above_line()636 SkFixed first = SK_Fixed1 - l; // horizontal edge length of the left-most triangle in compute_alpha_below_line()782 SkFixed first = SkIntToFixed(uL) + SK_Fixed1 - ul; in blit_aaa_trapezoid_row()803 SkFixed first = SkIntToFixed(uR) + SK_Fixed1 - ur; in blit_aaa_trapezoid_row()900 SkFixed first = joinLeft - SK_Fixed1 - ul; in blit_trapezoid_row()957 SkFixed first = joinRite + SK_Fixed1 - ur; in blit_trapezoid_row()1058 (cEdge.fCDy - (cEdge.fCDDy >> ddshift)) >> cEdge.fCubicDShift >= SK_Fixed1; in is_smooth_enough()[all …]
32 if (dx <= SK_Fixed1 / 256) { in can_truncate_to_fixed_for_decal()494 fFilterOneX = SK_Fixed1; in chooseMatrixProc()495 fFilterOneY = SK_Fixed1; in chooseMatrixProc()500 fFilterOneX = SK_Fixed1 / fPixmap.width(); in chooseMatrixProc()501 fFilterOneY = SK_Fixed1 / fPixmap.height(); in chooseMatrixProc()
172 return sk_float_saturate2int((float)floor((double)x * SK_Fixed1 + 0.5)); in float_round_to_fixed()
382 if (SkAbs32(dy >> shift) >= SK_Fixed1 * 2) { // only snap when dy is large enough in updateQuadratic()
468 REPORTER_ASSERT(reporter, result == SK_Fixed1); in DEF_TEST()469 result = SkFixedDiv(1, SK_Fixed1); in DEF_TEST()471 result = SkFixedDiv(10 - 1, SK_Fixed1 * 3); in DEF_TEST()476 REPORTER_ASSERT(reporter, (SkFixedRoundToFixed(-SK_Fixed1 * 10) >> 1) == -SK_Fixed1 * 5); in DEF_TEST()477 REPORTER_ASSERT(reporter, (SkFixedFloorToFixed(-SK_Fixed1 * 10) >> 1) == -SK_Fixed1 * 5); in DEF_TEST()478 REPORTER_ASSERT(reporter, (SkFixedCeilToFixed(-SK_Fixed1 * 10) >> 1) == -SK_Fixed1 * 5); in DEF_TEST()
300 int x = SkFixedRoundToInt((SK_Fixed1 * 1000 / 255) * value); in ColorToDecimal()