Home
last modified time | relevance | path

Searched refs:SkScalarInterp (Results 1 – 19 of 19) sorted by relevance

/external/skia/src/core/
DSkCubicClipper.cpp44 SkScalar y01 = SkScalarInterp(ycrv[0], ycrv[1], t0); in chopMonoCubicAtY()
45 SkScalar y12 = SkScalarInterp(ycrv[1], ycrv[2], t0); in chopMonoCubicAtY()
46 SkScalar y23 = SkScalarInterp(ycrv[2], ycrv[3], t0); in chopMonoCubicAtY()
47 SkScalar y012 = SkScalarInterp(y01, y12, t0); in chopMonoCubicAtY()
48 SkScalar y123 = SkScalarInterp(y12, y23, t0); in chopMonoCubicAtY()
49 SkScalar y0123 = SkScalarInterp(y012, y123, t0); in chopMonoCubicAtY()
87 SkScalar y01 = SkScalarInterp(ycrv[0], ycrv[1], tMid); in chopMonoCubicAtY()
88 SkScalar y12 = SkScalarInterp(ycrv[1], ycrv[2], tMid); in chopMonoCubicAtY()
89 SkScalar y23 = SkScalarInterp(ycrv[2], ycrv[3], tMid); in chopMonoCubicAtY()
90 SkScalar y012 = SkScalarInterp(y01, y12, tMid); in chopMonoCubicAtY()
[all …]
DSkPathMeasure.cpp76 SkScalarInterp(pts[0].fX, pts[3].fX, SK_Scalar1/3), in cubic_too_curvy()
77 SkScalarInterp(pts[0].fY, pts[3].fY, SK_Scalar1/3)) in cubic_too_curvy()
80 SkScalarInterp(pts[0].fX, pts[3].fX, SK_Scalar1*2/3), in cubic_too_curvy()
81 SkScalarInterp(pts[0].fY, pts[3].fY, SK_Scalar1*2/3)); in cubic_too_curvy()
280 pos->set(SkScalarInterp(pts[0].fX, pts[1].fX, t), in compute_pos_tan()
281 SkScalarInterp(pts[0].fY, pts[1].fY, t)); in compute_pos_tan()
327 dst->lineTo(SkScalarInterp(pts[0].fX, pts[1].fX, stopT), in seg_to()
328 SkScalarInterp(pts[0].fY, pts[1].fY, stopT)); in seg_to()
DSkGeometry.cpp127 SkScalar ab = SkScalarInterp(src[0], src[2], t); in eval_quad()
128 SkScalar bc = SkScalarInterp(src[2], src[4], t); in eval_quad()
129 return SkScalarInterp(ab, bc, t); in eval_quad()
360 SkScalar ab = SkScalarInterp(src[0], src[2], t); in eval_cubic()
361 SkScalar bc = SkScalarInterp(src[2], src[4], t); in eval_cubic()
362 SkScalar cd = SkScalarInterp(src[4], src[6], t); in eval_cubic()
363 SkScalar abc = SkScalarInterp(ab, bc, t); in eval_cubic()
364 SkScalar bcd = SkScalarInterp(bc, cd, t); in eval_cubic()
365 return SkScalarInterp(abc, bcd, t); in eval_cubic()
1214 SkScalar ab = SkScalarInterp(src[0], src[3], t); in p3d_interp()
[all …]
DSkScalar.cpp35 return SkScalarInterp(values[right-1], values[right], fract); in SkScalarInterpFunc()
/external/skia/gm/
Dgradients_2pt_conical.cpp71 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in Make2ConicalInside()
72 SkScalarInterp(pts[0].fY, pts[1].fY, SkIntToScalar(1)/4)); in Make2ConicalInside()
84 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in Make2ConicalInsideFlip()
85 SkScalarInterp(pts[0].fY, pts[1].fY, SkIntToScalar(1)/4)); in Make2ConicalInsideFlip()
97 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in Make2ConicalInsideCenter()
98 SkScalarInterp(pts[0].fY, pts[1].fY, SkIntToScalar(1)/4)); in Make2ConicalInsideCenter()
110 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in Make2ConicalZeroRad()
111 SkScalarInterp(pts[0].fY, pts[1].fY, SkIntToScalar(1)/4)); in Make2ConicalZeroRad()
123 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in Make2ConicalZeroRadFlip()
124 SkScalarInterp(pts[0].fY, pts[1].fY, SkIntToScalar(1)/4)); in Make2ConicalZeroRadFlip()
[all …]
Dblurroundrect.cpp113 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in MakeRadial()
114 SkScalarInterp(pts[0].fY, pts[1].fY, SkIntToScalar(1)/4)); in MakeRadial()
Dshadertext.cpp71 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in Make2Conical()
72 SkScalarInterp(pts[0].fY, pts[1].fY, SkIntToScalar(1)/4)); in Make2Conical()
Dgradients_no_texture.cpp52 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in Make2Radial()
53 SkScalarInterp(pts[0].fY, pts[1].fY, SkIntToScalar(1)/4)); in Make2Radial()
Dblurrect.cpp75 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in MakeRadial()
76 SkScalarInterp(pts[0].fY, pts[1].fY, SkIntToScalar(1)/4)); in MakeRadial()
Dgradients.cpp71 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in Make2Radial()
72 SkScalarInterp(pts[0].fY, pts[1].fY, SkIntToScalar(1)/4)); in Make2Radial()
/external/skia/src/utils/
DSkBoundaryPatch.cpp28 return SkMakePoint(SkScalarInterp(a.fX, b.fX, t), in SkPointInterp()
29 SkScalarInterp(a.fY, b.fY, t)); in SkPointInterp()
DSkInterpolator.cpp198 values[i] = SkScalarInterp(prevSrc[i], nextSrc[i], T); in timeToValues()
/external/skia/bench/
DGradientBench.cpp80 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in MakeConical()
81 SkScalarInterp(pts[0].fY, pts[1].fY, SkIntToScalar(1)/4)); in MakeConical()
93 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in MakeConicalZeroRad()
94 SkScalarInterp(pts[0].fY, pts[1].fY, SkIntToScalar(1)/4)); in MakeConicalZeroRad()
/external/skia/samplecode/
DSampleGradients.cpp89 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in Make2Conical()
90 SkScalarInterp(pts[0].fY, pts[1].fY, SkIntToScalar(1)/4)); in Make2Conical()
DSampleShaderText.cpp79 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in Make2Conical()
80 SkScalarInterp(pts[0].fY, pts[1].fY, SkIntToScalar(1)/4)); in Make2Conical()
DSampleSlides.cpp204 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5), in Make2Conical()
205 SkScalarInterp(pts[0].fY, pts[1].fY, SkIntToScalar(1)/4)); in Make2Conical()
/external/skia/src/animator/
DSkOperandIterpolator.cpp79 values[i].fScalar = SkScalarInterp(prevSrc[i].fScalar, nextSrc[i].fScalar, T); in timeToValues()
/external/skia/src/effects/
DSkPerlinNoiseShader.cpp363 SkScalar a = SkScalarInterp(u, v, sx); in noise2D()
368 SkScalar b = SkScalarInterp(u, v, sx); in noise2D()
369 return SkScalarInterp(a, b, sy); in noise2D()
/external/skia/include/core/
DSkScalar.h241 static inline SkScalar SkScalarInterp(SkScalar A, SkScalar B, SkScalar t) { in SkScalarInterp() function