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

12

/external/skia/include/core/
H A DSkShader.h209 * Compose two shaders together, using two operators: mode and lerp. The resulting colors
211 * interpolating between the dst and result colors using lerp.
213 * result = dst * (1 - lerp) + (src (mode) dst) * lerp
216 * If lerp is NaN then this returns nullptr, otherwise lerp is clamped to [0..1].
219 SkBlendMode mode, float lerp = 1);
232 * result = dst * (1 - lerp) + src * lerp
235 * If lerp i
237 MakeMixer(sk_sp<SkShader> dst, sk_sp<SkShader> src, float lerp) argument
[all...]
/external/skqp/include/core/
H A DSkShader.h206 * Compose two shaders together, using two operators: mode and lerp. The resulting colors
208 * interpolating between the dst and result colors using lerp.
210 * result = dst * (1 - lerp) + (src (mode) dst) * lerp
213 * If lerp is NaN then this returns nullptr, otherwise lerp is clamped to [0..1].
216 SkBlendMode mode, float lerp = 1);
229 * result = dst * (1 - lerp) + src * lerp
232 * If lerp i
234 MakeMixer(sk_sp<SkShader> dst, sk_sp<SkShader> src, float lerp) argument
[all...]
/external/replicaisland/src/com/replica/replicaisland/
H A DLerp.java21 public static float lerp(float start, float target, float duration, float timeSinceStart) method in class:Lerp
H A DFadeDrawableComponent.java102 opacity = Lerp.lerp(mInitialOpacity, mTargetOpacity, mDuration, elapsed);
/external/skia/src/gpu/ccpr/
H A DGrCCGeometry.cpp89 static inline Sk2f lerp(const Sk2f& a, const Sk2f& b, const Sk2f& t) { function
138 Sk2f p012 = lerp(p01, p12, t);
409 Sk2f ab1 = lerp(p0, p1, T1T1);
410 Sk2f bc1 = lerp(p1, p2, T1T1);
411 Sk2f cd1 = lerp(p2, p3, T1T1);
412 Sk2f abc1 = lerp(ab1, bc1, T1T1);
413 Sk2f bcd1 = lerp(bc1, cd1, T1T1);
414 Sk2f abcd1 = lerp(abc1, bcd1, T1T1);
429 midp1 = lerp(abcd1, bcd1, Sk2f((T2 - T1) / (1 - T1)));
439 Sk2f ab2 = lerp(p
[all...]
/external/skqp/src/gpu/ccpr/
H A DGrCCGeometry.cpp89 static inline Sk2f lerp(const Sk2f& a, const Sk2f& b, const Sk2f& t) { function
138 Sk2f p012 = lerp(p01, p12, t);
409 Sk2f ab1 = lerp(p0, p1, T1T1);
410 Sk2f bc1 = lerp(p1, p2, T1T1);
411 Sk2f cd1 = lerp(p2, p3, T1T1);
412 Sk2f abc1 = lerp(ab1, bc1, T1T1);
413 Sk2f bcd1 = lerp(bc1, cd1, T1T1);
414 Sk2f abcd1 = lerp(abc1, bcd1, T1T1);
429 midp1 = lerp(abcd1, bcd1, Sk2f((T2 - T1) / (1 - T1)));
439 Sk2f ab2 = lerp(p
[all...]
/external/vulkan-validation-layers/libs/glm/gtx/
H A Dcompatibility.hpp64 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) function in namespace:glm
65 template <typename T, precision P> GLM_FUNC_QUALIFIER detail::tvec2<T, P> lerp(const detail::tvec2<T, P>& x, const detail::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) function in namespace:glm
67 template <typename T, precision P> GLM_FUNC_QUALIFIER detail::tvec3<T, P> lerp(const detail::tvec3<T, P>& x, const detail::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) function in namespace:glm
68 template <typename T, precision P> GLM_FUNC_QUALIFIER detail::tvec4<T, P> lerp(const detail::tvec4<T, P>& x, const detail::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) function in namespace:glm
69 template <typename T, precision P> GLM_FUNC_QUALIFIER detail::tvec2<T, P> lerp(const detail::tvec2<T, P>& x, const detail::tvec2<T, P>& y, const detail::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) function in namespace:glm
70 template <typename T, precision P> GLM_FUNC_QUALIFIER detail::tvec3<T, P> lerp(const detail::tvec3<T, P>& x, const detail::tvec3<T, P>& y, const detail::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) function in namespace:glm
71 template <typename T, precision P> GLM_FUNC_QUALIFIER detail::tvec4<T, P> lerp(const detail::tvec4<T, P>& x, const detail::tvec4<T, P>& y, const detail::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) function in namespace:glm
H A Dsimd_quat.hpp239 detail::fquatSIMD lerp(
H A Ddual_quaternion.hpp152 GLM_FUNC_DECL detail::tdualquat<T, P> lerp(
/external/autotest/client/site_tests/graphics_SanAngeles/src/
H A Ddemo.c971 float lerp[5]; local
991 lerp[a] = (cam->src[a] + cam->dest[a] * trackPos) * 0.01f;
996 cX = lerp[0];
997 cY = lerp[1];
998 cZ = lerp[2];
999 eX = cX - (float)cos(lerp[3]) * dist;
1000 eY = cY - (float)sin(lerp[3]) * dist;
1001 eZ = cZ - lerp[4];
1005 eX = lerp[0];
1006 eY = lerp[
[all...]
/external/skia/experimental/skottie/
H A DSkottieAnimator.cpp31 static inline T lerp(const T&, const T&, float);
34 ScalarValue lerp(const ScalarValue& v0, const ScalarValue& v1, float t) { function in namespace:skottie::__anon20474
40 VectorValue lerp(const VectorValue& v0, const VectorValue& v1, float t) { function in namespace:skottie::__anon20474
47 v.push_back(lerp(v0[i], v1[i], t));
54 ShapeValue lerp(const ShapeValue& v0, const ShapeValue& v1, float t) { function in namespace:skottie::__anon20474
145 // default is linear lerp
267 *v = lerp(v0, v1, lt);
/external/skqp/experimental/skottie/
H A DSkottieAnimator.cpp31 static inline T lerp(const T&, const T&, float);
34 ScalarValue lerp(const ScalarValue& v0, const ScalarValue& v1, float t) { function in namespace:skottie::__anon21144
40 VectorValue lerp(const VectorValue& v0, const VectorValue& v1, float t) { function in namespace:skottie::__anon21144
47 v.push_back(lerp(v0[i], v1[i], t));
54 ShapeValue lerp(const ShapeValue& v0, const ShapeValue& v1, float t) { function in namespace:skottie::__anon21144
145 // default is linear lerp
267 *v = lerp(v0, v1, lt);
/external/tensorflow/tensorflow/core/kernels/
H A Dresize_bilinear_op.cc73 float lerp; member in struct:tensorflow::__anon26575::CachedInterpolation
86 interpolation[i].lerp = in - interpolation[i].lower;
131 const float ys_lerp = ys[y].lerp;
135 const float xs_lerp = xs[x].lerp;
176 const float ys_lerp = ys[y].lerp;
180 auto xs_lerp = xs[x].lerp;
/external/skia/src/shaders/
H A DSkComposeShader.cpp46 float lerp = buffer.readScalar(); local
52 return MakeCompose(std::move(dst), std::move(src), static_cast<SkBlendMode>(mode), lerp);
99 // We now have our logical 'dst' in r,g,b,a, but we need it in dr,dg,db,da for the mode/lerp
H A DSkPerlinNoiseShader.cpp570 static SkScalar lerp(SkScalar t, SkScalar a, SkScalar b) {
608 result += lerp(w, lerp(v, lerp(u, grad(permutations[AA ], px , py , pz ),
610 lerp(u, grad(permutations[AB ], px , py - 1, pz ),
612 lerp(v, lerp(u, grad(permutations[AA + 1], px , py , pz - 1),
614 lerp(u, grad(permutations[AB + 1], px , py - 1, pz - 1),
1290 // lerp function
1297 fragBuilder->emitFunction(kHalf_GrSLType, "lerp", SK_ARRAY_COUN
[all...]
/external/skqp/src/shaders/
H A DSkComposeShader.cpp46 float lerp = buffer.readScalar(); local
52 return MakeCompose(std::move(dst), std::move(src), static_cast<SkBlendMode>(mode), lerp);
99 // We now have our logical 'dst' in r,g,b,a, but we need it in dr,dg,db,da for the mode/lerp
H A DSkPerlinNoiseShader.cpp563 static SkScalar lerp(SkScalar t, SkScalar a, SkScalar b) {
601 result += lerp(w, lerp(v, lerp(u, grad(permutations[AA ], px , py , pz ),
603 lerp(u, grad(permutations[AB ], px , py - 1, pz ),
605 lerp(v, lerp(u, grad(permutations[AA + 1], px , py , pz - 1),
607 lerp(u, grad(permutations[AB + 1], px , py - 1, pz - 1),
1283 // lerp function
1290 fragBuilder->emitFunction(kHalf_GrSLType, "lerp", SK_ARRAY_COUN
[all...]
/external/eigen/demos/opengl/
H A Dquaternion_demo.cpp117 template<typename T> T lerp(float t, const T& a, const T& b) function
123 template<> Quaternionf lerp(float t, const Quaternionf& a, const Quaternionf& b) function
131 return Frame(lerp(alpha,a.position,b.position),
132 Quaternionf(lerp(alpha,OrientationType(a.orientation),OrientationType(b.orientation))));
189 template<> EulerAngles<float> lerp(float t, const EulerAngles<float>& a, const EulerAngles<float>& b) function
192 res.coeffs() = lerp(t, a.coeffs(), b.coeffs());
531 aux1 = aux0.lerp(duration/2,mInitFrame);
H A Dcamera.h26 Frame lerp(float alpha, const Frame& other) const function in class:Frame
/external/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) function in namespace:sw
/external/skia/src/jumper/
H A DSkJumper_stages_lowp.cpp157 SI U16 lerp(U16 from, U16 to, U16 t) { return div255( from*inv(t) + to*t ); } function
752 r = lerp(dr, r, c);
753 g = lerp(dg, g, c);
754 b = lerp(db, b, c);
755 a = lerp(da, a, c);
767 r = lerp(dr, r, c);
768 g = lerp(dg, g, c);
769 b = lerp(db, b, c);
770 a = lerp(da, a, c);
793 r = lerp(d
[all...]
H A DSkJumper_stages.cpp1430 SI F lerp(F from, F to, F t) {
1435 r = lerp(dr, r, *c);
1436 g = lerp(dg, g, *c);
1437 b = lerp(db, b, *c);
1438 a = lerp(da, a, *c);
1446 r = lerp(dr, r, c);
1447 g = lerp(dg, g, c);
1448 b = lerp(db, b, c);
1449 a = lerp(da, a, c);
1459 r = lerp(d
[all...]
/external/skqp/src/jumper/
H A DSkJumper_stages_lowp.cpp157 SI U16 lerp(U16 from, U16 to, U16 t) { return div255( from*inv(t) + to*t ); } function
752 r = lerp(dr, r, c);
753 g = lerp(dg, g, c);
754 b = lerp(db, b, c);
755 a = lerp(da, a, c);
767 r = lerp(dr, r, c);
768 g = lerp(dg, g, c);
769 b = lerp(db, b, c);
770 a = lerp(da, a, c);
793 r = lerp(d
[all...]
H A DSkJumper_stages.cpp1428 SI F lerp(F from, F to, F t) {
1433 r = lerp(dr, r, *c);
1434 g = lerp(dg, g, *c);
1435 b = lerp(db, b, *c);
1436 a = lerp(da, a, *c);
1444 r = lerp(dr, r, c);
1445 g = lerp(dg, g, c);
1446 b = lerp(db, b, c);
1447 a = lerp(da, a, c);
1457 r = lerp(d
[all...]

Completed in 1339 milliseconds

12