Home
last modified time | relevance | path

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

1234

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/
H A Drs_value_estimator.cpp26 const Quaternion& startValue, const Quaternion& endValue) in Estimate() argument
29 return value.Slerp(endValue, fraction); in Estimate()
33 …t fraction, const std::shared_ptr<RSFilter>& startValue, const std::shared_ptr<RSFilter>& endValue) in Estimate() argument
35 …if ((startValue == nullptr || !startValue->IsValid()) && (endValue == nullptr || !endValue->IsVali… in Estimate()
36 return endValue; in Estimate()
40 if (endValue->GetFilterType() == RSFilter::MATERIAL) { in Estimate()
44 return endValue * fraction; in Estimate()
47 if (endValue == nullptr || !endValue->IsValid()) { in Estimate()
56 if (startValue->GetFilterType() == endValue->GetFilterType()) { in Estimate()
57 return startValue * (1.0f - fraction) + endValue * fraction; in Estimate()
[all …]
H A Drs_render_transition_effect.cpp166 float endValue(alpha_); in UpdateFraction() local
167 auto value = startValue * (1.0f - fraction) + endValue * fraction; in UpdateFraction()
184 Vector2f endValue(scaleX_, scaleY_); in UpdateFraction() local
185 auto value = startValue * (1.0f - fraction) + endValue * fraction; in UpdateFraction()
202 Vector2f endValue(translateX_, translateY_); in UpdateFraction() local
203 auto value = startValue * (1.0f - fraction) + endValue * fraction; in UpdateFraction()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/animation/
H A Drs_implicit_animation_param.cpp145 const std::shared_ptr<RSPropertyBase>& endValue) const in CreateEmptyAnimation()
147 auto curveAnimation = std::make_shared<RSCurveAnimation>(property, endValue - startValue); in CreateEmptyAnimation()
160 auto curveAnimation = std::make_shared<RSCurveAnimation>(property, endValue - startValue); in CreateAnimation()
183 keyFrameAnimation->AddKeyFrame(fraction_, endValue, timingCurve_); in CreateAnimation()
200 keyframeAnimation->AddKeyFrame(fraction_, endValue, timingCurve_); in AddKeyframe()
232 … std::make_shared<RSPathAnimation>(property, motionPathOption_->GetPath(), startValue, endValue); in CreateAnimation()
250 auto springAnimation = std::make_shared<RSSpringAnimation>(property, startValue, endValue); in CreateAnimation()
265 const std::shared_ptr<RSPropertyBase>& endValue) const in CreateAnimation()
268 std::make_shared<RSInterpolatingSpringAnimation>(property, startValue, endValue); in CreateAnimation()
293 …const std::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) in CreateAnimation() argument
[all …]
H A Drs_path_animation.cpp42 endValue_ = endValue; in RSPathAnimation()
320 const std::shared_ptr<RSPropertyBase>& endValue) const in PreProcessPath()
342 const std::shared_ptr<RSPropertyBase>& endValue) in InitNeedPath() argument
344 if (startValue == nullptr || endValue == nullptr) { in InitNeedPath()
365 const std::shared_ptr<RSPropertyBase>& endValue) in InitInterpolationVector2f() argument
378 byValue_ = endValue - startValue; in InitInterpolationVector2f()
386 const std::shared_ptr<RSPropertyBase>& endValue) in InitInterpolationVector4f() argument
399 byValue_ = endValue - startValue; in InitInterpolationVector4f()
409 endValue += deltaValue; in UpdateVector2fValueAddOrigin()
416 endValue[0] += deltaValue[0]; in UpdateVector4fValueAddOrigin()
[all …]
H A Drs_path_animation.h38 const std::shared_ptr<RSPropertyBase>& endValue);
89 const std::shared_ptr<RSPropertyBase>& endValue) const;
92 const std::shared_ptr<RSPropertyBase>& endValue);
95 const std::shared_ptr<RSPropertyBase>& endValue);
98 const std::shared_ptr<RSPropertyBase>& endValue);
100 … void UpdateVector2fValueAddOrigin(Vector2f& startValue, Vector2f& endValue, Vector2f& deltaValue);
102 … void UpdateVector4fValueAddOrigin(Vector4f& startValue, Vector4f& endValue, Vector4f& deltaValue);
H A Drs_implicit_animation_param.h69 …td::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) const;
85 …td::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) const;
101 …td::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) const;
104 const std::shared_ptr<RSPropertyBase>& endValue) const;
107 …td::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) const;
123 …td::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) const;
137 …td::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) const;
150 …td::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) const;
166 …onst std::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue);
H A Drs_implicit_animator.cpp506 const std::shared_ptr<RSPropertyBase>& endValue) in CreateImplicitAnimation() argument
513 if (target == nullptr || property == nullptr || startValue == nullptr || endValue == nullptr) { in CreateImplicitAnimation()
529 animation = curveImplicitParam->CreateAnimation(property, startValue, endValue); in CreateImplicitAnimation()
537 SetPropertyValue(property, endValue); in CreateImplicitAnimation()
540 startValue, endValue); in CreateImplicitAnimation()
553 animation = springImplicitParam->CreateAnimation(property, startValue, endValue); in CreateImplicitAnimation()
574 animation = pathImplicitParam->CreateAnimation(property, startValue, endValue); in CreateImplicitAnimation()
579 animation = implicitTransitionParam->CreateAnimation(property, startValue, endValue); in CreateImplicitAnimation()
598 property->SetValue(endValue); // update set ui value in CreateImplicitAnimation()
603 property->SetValue(endValue); // update set ui value in CreateImplicitAnimation()
[all …]
H A Drs_property_animation.cpp107 auto endValue = endValue_; in OnUpdateStagingValue() local
109 std::swap(startValue, endValue); in OnUpdateStagingValue()
111 auto byValue = endValue - startValue; in OnUpdateStagingValue()
112 auto targetValue = endValue; in OnUpdateStagingValue()
117 targetValue = endValue; in OnUpdateStagingValue()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/unittest/animation/
H A Drs_render_animation_debug_trace_test.cpp56 auto endValue = std::make_shared<RSRenderAnimatableProperty<float>>(100.0f); variable
58 NODE_ID, NODE_NAME, PROPERTY_ID, ANIMATION_ID, 0, 0, startValue, endValue, 0, 0, 1);
63 …tils::GetInstance().addSpringInitialVelocityTrace(PROPERTY_ID, ANIMATION_ID, startValue, endValue);
81 auto endValue = std::make_shared<RSRenderAnimatableProperty<float>>(100.0f); variable
83 NODE_ID, NODE_NAME, PROPERTY_ID, ANIMATION_ID, 0, 0, startValue, endValue, 0, 0, 1);
88 …tils::GetInstance().addSpringInitialVelocityTrace(PROPERTY_ID, ANIMATION_ID, startValue, endValue);
H A Drs_value_estimator_test.cpp49 auto endValue = RSFilter::CreateBlurFilter(10.f, 10.f); variable
52 auto filter1 = curveValueEstimator->Estimate(0.0f, nullptr, endValue);
58 auto filter3 = curveValueEstimator->Estimate(0.1f, startValue, endValue);
85 auto endValue = std::make_shared<RSRenderAnimatableProperty<float>>(1.0f); variable
88 curveValueEstimator->InitCurveAnimationValue(property, startValue, endValue, lastValue);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/animation/
H A Dsimple_spring_node.cpp56 void SimpleSpringNode::NotifyNext(double endValue, double initVelocity) in NotifyNext() argument
67 currentNode->EndToValue(endValue, initVelocity); in NotifyNext()
72 void SimpleSpringNode::EndToValue(double endValue, double velocity) in EndToValue() argument
83 SpringNode::EndToValue(endValue, velocity); in EndToValue()
96 spring_->Reset(value_, endValue, velocity_, springProperty_); in EndToValue()
101 spring_->Reset(value_, endValue, velocity_, springProperty_); in EndToValue()
104 NotifyNext(endValue, velocity); in EndToValue()
H A Danimatable_base.h34 virtual void MoveTo(const T& endValue) = 0;
36 void AnimateTo(const T& beginValue, const T& endValue) in AnimateTo() argument
38 if (endValue == endValue_) { in AnimateTo()
41 endValue_ = endValue; in AnimateTo()
43 MoveTo(endValue); in AnimateTo()
51 const auto& animation = CreateAnimation(beginValue, endValue); in AnimateTo()
H A Dsvg_animate.cpp157 T endValue = GetEndValue(startValue); in CreateDiscreteAnimate() local
158 if (!DiscreteAnimate(animation, originalValue, startValue, endValue)) { in CreateDiscreteAnimate()
181 …r<KeyframeAnimation<T>>& animation, const T& originalValue, const T& startValue, const T& endValue) in DiscreteAnimate() argument
183 if (startValue == endValue && startValue == originalValue) { in DiscreteAnimate()
189 CreateKeyframe(animation, endValue, 1.0f, GetCurve()); in DiscreteAnimate()
309 T endValue = GetEndValue(startValue); in LinearAnimateFromTo() local
310 if (startValue == endValue) { in LinearAnimateFromTo()
318 auto animation = AceType::MakeRefPtr<CurveAnimation<T>>(startValue, endValue, GetCurve()); in LinearAnimateFromTo()
475 T endValue = GetEndValue(startValue); in SplineAnimate() local
476 if (startValue == endValue) { in SplineAnimate()
[all …]
H A Dbilateral_spring_node.cpp25 void BilateralSpringNode::NotifyNext(double endValue, double initVelocity) in NotifyNext() argument
41 node->EndToValue(endValue, initVelocity); in NotifyNext()
47 node->EndToValue(endValue, initVelocity); in NotifyNext()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/unittest/animation/
H A Drs_path_animation_test.cpp213 auto endValue = std::make_shared<RSPropertyBase>(); in HWTEST_F() local
218 rsPathAnimation.PreProcessPath(path, startValue, endValue); in HWTEST_F()
232 auto endValue = std::make_shared<RSPropertyBase>(); in HWTEST_F() local
237 rsPathAnimation.InitNeedPath(startValue, endValue); in HWTEST_F()
251 auto endValue = std::make_shared<RSPropertyBase>(); in HWTEST_F() local
256 bool res = rsPathAnimation.InitInterpolationVector2f(startValue, endValue); in HWTEST_F()
271 auto endValue = std::make_shared<RSPropertyBase>(); in HWTEST_F() local
276 bool res = rsPathAnimation.InitInterpolationVector4f(startValue, endValue); in HWTEST_F()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Danimatable_path.cpp46 void AnimatablePath::AnimateTo(std::string endValue) in AnimateTo() argument
50 SetValue(endValue); in AnimateTo()
53 if (path_ == endValue) { in AnimateTo()
57 pathTo_ = FormatPathString(endValue); in AnimateTo()
70 SetValue(endValue); in AnimateTo()
H A Danimatable_color.h87 void AnimateTo(uint32_t endValue) in AnimateTo() argument
91 SetValue(endValue); in AnimateTo()
94 if (GetValue() == endValue) { in AnimateTo()
103 …AceType::MakeRefPtr<CurveAnimation<Color>>(Color(GetValue()), Color(endValue), animationOption_.Ge… in AnimateTo()
H A Danimatable_double.h114 void AnimateTo(double endValue) in AnimateTo() argument
118 SetValue(endValue); in AnimateTo()
121 if (NearEqual(value_, endValue)) { in AnimateTo()
129 … AceType::MakeRefPtr<CurveAnimation<double>>(value_, endValue, animationOption_.GetCurve()); in AnimateTo()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/unittest/animation/
H A Drs_animation_supplement_test.cpp341 const std::shared_ptr<RSPropertyBase>& endValue) in RSPathAnimationMock() argument
342 : RSPathAnimation(property, path, startValue, endValue) {} in RSPathAnimationMock()
425 auto endValue = std::make_shared<RSAnimatableProperty<Vector4f>>(endData); variable
513 auto endValue = std::make_shared<RSAnimatableProperty<Vector4f>>(endData); variable
514 keyframeParam->AddKeyframe(animation, startValue, endValue);
516 keyframeParam->AddKeyframe(animation, startValue, endValue);
541 auto endValue = std::make_shared<RSAnimatableProperty<Vector4f>>(endData); variable
795 auto endValue = std::make_shared<RSAnimatableProperty<Vector4f>>(endData); variable
837 auto endValue = std::make_shared<RSAnimatableProperty<Vector2f>>(endData); variable
911 const std::shared_ptr<RSPropertyBase>& endValue) in RSSpringAnimationMock() argument
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Danimatable_dimension.cpp67 void AnimatableDimension::AnimateTo(double endValue) in AnimateTo() argument
71 SetValue(endValue); in AnimateTo()
74 if (NearEqual(Value(), endValue) && !evaluator_) { in AnimateTo()
82 AceType::MakeRefPtr<CurveAnimation<double>>(Value(), endValue, animationOption_.GetCurve()); in AnimateTo()
H A Danimatable_matrix4.cpp61 void AnimatableMatrix4::AnimateTo(const Matrix4& endValue) in AnimateTo() argument
66 matrix4 = endValue; in AnimateTo()
70 if (*this == endValue && !evaluator_) { in AnimateTo()
83 operationEnd.matrix4_ = endValue; in AnimateTo()
H A Danimatable_float.h106 void AnimateTo(float endValue) in AnimateTo() argument
108 animateToEndValue_ = endValue; in AnimateTo()
114 GetValue(), endValue, animationOption_.GetCurve()); in AnimateTo()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/
H A Drs_value_estimator.h42 T Estimate(float fraction, const T& startValue, const T& endValue) in Estimate() argument
44 return startValue * (1.0f - fraction) + endValue * fraction; in Estimate()
47 Quaternion Estimate(float fraction, const Quaternion& startValue, const Quaternion& endValue);
50 … fraction, const std::shared_ptr<RSFilter>& startValue, const std::shared_ptr<RSFilter>& endValue);
65 const std::shared_ptr<RSRenderPropertyBase>& endValue, in InitCurveAnimationValue() argument
89 const std::shared_ptr<RSRenderPropertyBase>& endValue, in InitCurveAnimationValue() argument
94 auto animatableEndValue = std::static_pointer_cast<RSRenderAnimatableProperty<T>>(endValue); in InitCurveAnimationValue()
323 …hared_ptr<RSRenderPropertyBase>& startValue, const std::shared_ptr<RSRenderPropertyBase>& endValue, in InitRSSpringValueEstimator() argument
401 …hared_ptr<RSRenderPropertyBase>& startValue, const std::shared_ptr<RSRenderPropertyBase>& endValue, in InitRSSpringValueEstimator() argument
406 auto animatableEndValue = std::static_pointer_cast<RSRenderAnimatableProperty<T>>(endValue); in InitRSSpringValueEstimator()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/base/
H A Danimatable_matrix4_test.cpp77 Matrix4 endValue = Matrix4::CreateIdentity(); variable
83 animatableMatrix4Obj1.AnimateTo(endValue);
97 animatableMatrix4Obj1.AnimateTo(endValue);
/ohos5.0/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_picker_unit_test.cpp159 const int16_t endValue = 100; variable
162 picker_->SetValues(startValue, endValue);
167 picker_->SetValues(startValue, endValue);

1234