Home
last modified time | relevance | path

Searched refs:lerp (Results 1 - 25 of 31) sorted by relevance

12

/third_party/skia/modules/skottie/src/layers/shapelayer/
H A DPuckerBloat.cpp23 static SkPoint lerp(const SkPoint& p0, const SkPoint& p1, SkScalar t) { in lerp() function
61 path.moveTo(lerp(contour_start, center, fAmount));
63 path.cubicTo(lerp(c.ctrl0, center, -fAmount),
64 lerp(c.ctrl1, center, -fAmount),
65 lerp(c.pt , center, fAmount));
89 lerp(line_start, line_end, kCtrlPosFraction),
90 lerp(line_start, line_end, 1 - kCtrlPosFraction),
110 lerp(pts[1], conic_start, kCubicCircleCoeff),
111 lerp(pts[1], conic_end , kCubicCircleCoeff),
H A DGradient.cpp148 // Compute component lerp coefficients based on the relative position of the stops
150 // as specified (lerp with t == 1), and lerp (with t < 1) the properties from the
159 auto lerp = [](float a, float b, float t) { return a + t * (b - a); }; variable
164 lerp(current_stop.fColor.fR, cs.r, t_c ),
165 lerp(current_stop.fColor.fG, cs.g, t_c ),
166 lerp(current_stop.fColor.fB, cs.b, t_c ),
167 lerp(current_stop.fColor.fA, os.a, t_o)
/third_party/skia/samplecode/
H A DSampleFitCubicToCircle.cpp79 static double lerp(double x, double y, double T) { in lerp() function
86 double ab = lerp(x[0], x[1], T); in eval_cubic()
87 double bc = lerp(x[1], x[2], T); in eval_cubic()
88 double cd = lerp(x[2], x[3], T); in eval_cubic()
89 double abc = lerp(ab, bc, T); in eval_cubic()
90 double bcd = lerp(bc, cd, T); in eval_cubic()
91 double abcd = lerp(abc, bcd, T); in eval_cubic()
H A DSamplePath.cpp536 static SkPoint lerp(SkPoint a, SkPoint b, float t) {
610 tmp[i] = lerp(prev[i], prev[i+1], fT); in showFrame()
676 p2 = lerp(p0, p1, fT); in showInnerQuads()
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/
H A Dcompatibility.hpp38 template <typename T> GLM_FUNC_QUALIFIER T lerp(T x, T y, T a){return mix(x, y, a);} //!< \brief Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility) in lerp() function
39 template <typename T, precision P> GLM_FUNC_QUALIFIER tvec2<T, P> lerp(const tvec2<T, P>& x, const tvec2<T, P>& y, T a){return mix(x, y, a);} //!< \brief Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility) in lerp() function
41 template <typename T, precision P> GLM_FUNC_QUALIFIER tvec3<T, P> lerp(const tvec3<T, P>& x, const tvec3<T, P>& y, T a){return mix(x, y, a);} //!< \brief Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility) in lerp() function
42 template <typename T, precision P> GLM_FUNC_QUALIFIER tvec4<T, P> lerp(const tvec4<T, P>& x, const tvec4<T, P>& y, T a){return mix(x, y, a);} //!< \brief Returns x * (1.0 - a) + y * a, i.e., the linear blend of x and y using the floating-point value a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility) in lerp() function
43 template <typename T, precision P> GLM_FUNC_QUALIFIER tvec2<T, P> lerp(const tvec2<T, P>& x, const tvec2<T, P>& y, const tvec2<T, P>& a){return mix(x, y, a);} //!< \brief Returns the component-wise result of x * (1.0 - a) + y * a, i.e., the linear blend of x and y using vector a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility) in lerp() function
44 template <typename T, precision P> GLM_FUNC_QUALIFIER tvec3<T, P> lerp(const tvec3<T, P>& x, const tvec3<T, P>& y, const tvec3<T, P>& a){return mix(x, y, a);} //!< \brief Returns the component-wise result of x * (1.0 - a) + y * a, i.e., the linear blend of x and y using vector a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility) in lerp() function
45 template <typename T, precision P> GLM_FUNC_QUALIFIER tvec4<T, P> lerp(const tvec4<T, P>& x, const tvec4<T, P>& y, const tvec4<T, P>& a){return mix(x, y, a);} //!< \brief Returns the component-wise result of x * (1.0 - a) + y * a, i.e., the linear blend of x and y using vector a. The value for a is not restricted to the range [0, 1]. (From GLM_GTX_compatibility) in lerp() function
H A Dsimd_quat.hpp209 detail::fquatSIMD lerp(
H A Ddual_quaternion.hpp143 GLM_FUNC_DECL tdualquat<T, P> lerp(tdualquat<T, P> const & x, tdualquat<T, P> const & y, T const & a);
/third_party/skia/src/core/
H A DSkVM.h776 F32 lerp(F32 lo, F32 hi, F32 t);
777 F32 lerp(F32 lo, F32 hi, float t) { return lerp( lo , hi , splat(t)); } in lerp() function in skvm::Builder
778 F32 lerp(F32 lo, float hi, float t) { return lerp( lo , splat(hi), splat(t)); } in lerp() function in skvm::Builder
779 F32 lerp(F32 lo, float hi, F32 t) { return lerp( lo , splat(hi), t ); } in lerp() function in skvm::Builder
780 F32 lerp(float lo, F32 hi, F32 t) { return lerp(splat(lo), hi , t ); } in lerp() function in skvm::Builder
781 F32 lerp(floa in lerp() function in skvm::Builder
782 F32 lerp(float lo, float hi, F32 t) { return lerp(splat(lo), splat(hi), t ); } lerp() function in skvm::Builder
1244 SI F32 lerp(F32 lo, F32 hi, F32 t) { return lo->lerp(lo,hi,t); } lerp() function
1245 SI F32 lerp(F32 lo, F32 hi, float t) { return lo->lerp(lo,hi,t); } lerp() function
1246 SI F32 lerp(F32 lo, float hi, F32 t) { return lo->lerp(lo,hi,t); } lerp() function
1247 SI F32 lerp(F32 lo, float hi, float t) { return lo->lerp(lo,hi,t); } lerp() function
1248 SI F32 lerp(float lo, F32 hi, F32 t) { return hi->lerp(lo,hi,t); } lerp() function
1249 SI F32 lerp(float lo, F32 hi, float t) { return hi->lerp(lo,hi,t); } lerp() function
1250 SI F32 lerp(float lo, float hi, F32 t) { return t->lerp(lo,hi,t); } lerp() function
1324 SI Color lerp(Color lo, Color hi, F32 t) { return t->lerp(lo,hi,t); } lerp() function
[all...]
H A DSkCompressedDataUtils.cpp170 static SkPMColor lerp(float t, SkPMColor col0, SkPMColor col1) { in lerp() function
204 colors[2] = lerp(2.0f/3.0f, colors[0], colors[1]); in decompress_bc1()
205 colors[3] = lerp(1.0f/3.0f, colors[0], colors[1]); in decompress_bc1()
H A DSkVMBlitter.cpp385 // simpler than the canonical post-blend lerp(). in BuildProgram()
401 src.r = lerp(dst.r, src.r, cov.r); in BuildProgram()
402 src.g = lerp(dst.g, src.g, cov.g); in BuildProgram()
403 src.b = lerp(dst.b, src.b, cov.b); in BuildProgram()
404 src.a = lerp(dst.a, src.a, cov.a); in BuildProgram()
H A DSkDraw_vertices.cpp238 auto lerp = [](SkPoint3 curr, SkPoint3 next, float t) { in fill_triangle_3() local
249 return lerp(curr, next, computeT(curr.fZ - tol, next.fZ - tol)); in fill_triangle_3()
/third_party/skia/third_party/externals/swiftshader/third_party/marl/examples/
H A Dfractal.cpp59 // lerp returns the linear interpolation between min and max using the weight x.
60 inline float lerp(float x, float min, float max) { in lerp() function
186 color += julia(lerp(dx, windowMinX, windowMaxX), in main()
187 lerp(dy, windowMinY, windowMaxY), cx, cy); in main()
/third_party/skia/experimental/lowp-basic/
H A Dlerp-study.cpp85 static Stats check_lerp(Lerp lerp) { in check_lerp() argument
92 int16_t candidate = lerp(t, a, b); in check_lerp()
/third_party/skia/gm/
H A Dtrickycubicstrokes.cpp94 static SkPoint lerp(const SkPoint& a, const SkPoint& b, float T) { in lerp() function
95 SkASSERT(1 != T); // The below does not guarantee lerp(a, b, 1) === b. in lerp()
143 SkPoint asCubic[4] = {p[0], lerp(p[0], p[1], 2/3.f), lerp(p[1], p[2], 1/3.f), p[2]}; in draw_test()
/third_party/skia/src/opts/
H A DSkBitmapProcState_opts.h86 // We'll use _mm256_maddubs_epi16() to lerp much like in the SSSE3 code. in S32_alpha_D32_filter_DX()
93 // Interlace l,r bytewise and line them up with their weights, then lerp. in S32_alpha_D32_filter_DX()
132 auto lerp = [](auto lo, auto hi, auto w) { in S32_alpha_D32_filter_DX()
135 skvx::Vec<32, uint16_t> sum = lerp(lerp(to_16x4(tl), to_16x4(bl), wy), in S32_alpha_D32_filter_DX()
136 lerp(to_16x4(tr), to_16x4(br), wy), to_16x4(wx)); in S32_alpha_D32_filter_DX()
186 // _mm_maddubs_epi16() is a little idiosyncratic, but great as the core of a lerp. in S32_alpha_D32_filter_DX()
H A DSkRasterPipeline_opts.h1775 SI F lerp(F from, F to, F t) {
1780 r = lerp(dr, r, *c);
1781 g = lerp(dg, g, *c);
1782 b = lerp(db, b, *c);
1783 a = lerp(da, a, *c);
1794 r = lerp(dr, r, c);
1795 g = lerp(dg, g, c);
1796 b = lerp(db, b, c);
1797 a = lerp(da, a, c);
1805 r = lerp(d
[all...]
/third_party/skia/third_party/externals/swiftshader/src/Renderer/
H A DVector.hpp81 static Vector lerp(const Vector &u, const Vector &v, float t);
H A DVector.cpp169 Vector lerp(const Vector &u, const Vector &v, float t) in lerp() function
/third_party/skia/tests/
H A DGeometryTest.cpp522 SkPoint lerp(const SkPoint& a, const SkPoint& b, float t) { in lerp() function
600 quad[0], lerp(quad[0], quad[1], 2/3.f), lerp(quad[1], quad[2], 1/3.f), quad[2]}; in test_chop_at_midtangent()
/third_party/python/Lib/idlelib/idle_test/
H A Dtest_sidebar.py282 def lerp(a, b, steps): function
289 map(int, lerp(start_x, end_x, steps=11)),
290 map(int, lerp(start_y, end_y, steps=11)),
/third_party/skia/src/shaders/
H A DSkImageShader.cpp883 // The fractional parts of right and bottom are our lerp factors in x and y respectively. in makeProgram()
887 return lerp(lerp(sample_texel(u, left,top ), sample_texel(u, right,top ), fx), in makeProgram()
888 lerp(sample_texel(u, left,bottom), sample_texel(u, right,bottom), fx), fy); in makeProgram()
899 c = lerp(c, in makeProgram()
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-ot-glyf-table.hh1143 optional_point_t lerp (optional_point_t p, float t) in lerp() function
1177 optional_point_t mid = first_offcurve.lerp (p, .5f); in consume_point()
1198 optional_point_t mid = last_offcurve.lerp (p, .5f); in consume_point()
1217 optional_point_t mid = last_offcurve.lerp (first_offcurve, .5f); in consume_point()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/shaders/src/third_party/ffx_spd/
H A Dffx_a.h1074 AF1 ALerpF1(AF1 x,AF1 y,AF1 a){return lerp(x,y,a);} in ALerpF1()
1075 AF2 ALerpF2(AF2 x,AF2 y,AF2 a){return lerp(x,y,a);} in ALerpF2()
1076 AF3 ALerpF3(AF3 x,AF3 y,AF3 a){return lerp(x,y,a);} in ALerpF3()
1077 AF4 ALerpF4(AF4 x,AF4 y,AF4 a){return lerp(x,y,a);} in ALerpF4()
1244 AH1 ALerpH1(AH1 x,AH1 y,AH1 a){return lerp(x,y,a);} in ALerpH1()
1245 AH2 ALerpH2(AH2 x,AH2 y,AH2 a){return lerp(x,y,a);} in ALerpH2()
1246 AH3 ALerpH3(AH3 x,AH3 y,AH3 a){return lerp(x,y,a);} in ALerpH3()
1247 AH4 ALerpH4(AH4 x,AH4 y,AH4 a){return lerp(x,y,a);} in ALerpH4()
1315 AD1 ALerpD1(AD1 x,AD1 y,AD1 a){return lerp(x,y,a);} in ALerpD1()
1316 AD2 ALerpD2(AD2 x,AD2 y,AD2 a){return lerp( in ALerpD1()
[all...]
/third_party/ffmpeg/libavfilter/
H A Dvf_lut3d.c89 static inline struct rgbvec lerp(const struct rgbvec *v0, const struct rgbvec *v1, float f) in lerp() function
130 const struct rgbvec c00 = lerp(&c000, &c100, d.r); in interp_trilinear()
131 const struct rgbvec c10 = lerp(&c010, &c110, d.r); in interp_trilinear()
132 const struct rgbvec c01 = lerp(&c001, &c101, d.r); in interp_trilinear()
133 const struct rgbvec c11 = lerp(&c011, &c111, d.r); in interp_trilinear()
134 const struct rgbvec c0 = lerp(&c00, &c10, d.g); in interp_trilinear()
135 const struct rgbvec c1 = lerp(&c01, &c11, d.g); in interp_trilinear()
136 const struct rgbvec c = lerp(&c0, &c1, d.b); in interp_trilinear()
/third_party/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_tex_sample.c73 lerp(float a, float v0, float v1) in lerp() function
91 const float temp0 = lerp(a, v00, v10); in lerp_2d()
92 const float temp1 = lerp(a, v01, v11); in lerp_2d()
93 return lerp(b, temp0, temp1); in lerp_2d()
107 return lerp(c, temp0, temp1); in lerp_3d()
1546 rgba[TGSI_NUM_CHANNELS*c] = lerp(xw, tx0[c], tx1[c]); in img_filter_1d_linear()
1578 rgba[TGSI_NUM_CHANNELS*c] = lerp(xw, tx0[c], tx1[c]); in img_filter_1d_array_linear()
2134 rgba[c][j] = lerp(levelBlend, rgbax[c][0], rgbax[c][1]); in mip_filter_linear()
2726 rgba[c][j] = lerp(levelBlend, rgbax[c][0], rgbax[c][1]); in mip_filter_linear_2d_linear_repeat_POT()

Completed in 41 milliseconds

12