Home
last modified time | relevance | path

Searched refs:endValue (Results 1 - 25 of 88) sorted by relevance

1234

/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()
29 return value.Slerp(endValue, fraction); in Estimate()
33 float fraction, const std::shared_ptr<RSFilter>& startValue, const std::shared_ptr<RSFilter>& endValue) in Estimate()
35 if ((startValue == nullptr || !startValue->IsValid()) && (endValue == nullptr || !endValue->IsValid())) { in Estimate()
36 return endValue; in Estimate()
40 if (endValue->GetFilterType() == RSFilter::MATERIAL) { in Estimate()
41 auto material = std::static_pointer_cast<RSMaterialFilter>(endValue)->TransformFilter(fraction); in Estimate()
44 return endValue * fraction; in Estimate()
47 if (endValue in Estimate()
25 Estimate(float fraction, const Quaternion& startValue, const Quaternion& endValue) Estimate() argument
32 Estimate( float fraction, const std::shared_ptr<RSFilter>& startValue, const std::shared_ptr<RSFilter>& endValue) Estimate() argument
[all...]
H A Drs_render_transition_effect.cpp166 float endValue(alpha_); in UpdateFraction()
167 auto value = startValue * (1.0f - fraction) + endValue * fraction; in UpdateFraction()
184 Vector2f endValue(scaleX_, scaleY_); in UpdateFraction()
185 auto value = startValue * (1.0f - fraction) + endValue * fraction; in UpdateFraction()
202 Vector2f endValue(translateX_, translateY_); in UpdateFraction()
203 auto value = startValue * (1.0f - fraction) + endValue * fraction; in UpdateFraction()
/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 Dsimple_spring_node.h33 void EndToValue(double endValue, double velocity) override;
70 virtual void NotifyNext(double endValue, double initVelocity);
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()
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/animation/
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_path_animation.cpp38 const std::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) in RSPathAnimation()
39 : RSPathAnimation(property, PreProcessPath(path, startValue, endValue)) in RSPathAnimation()
42 endValue_ = endValue; in RSPathAnimation()
319 const std::shared_ptr<RSPropertyBase>& endValue) const in PreProcessPath()
322 auto endVector2f = std::static_pointer_cast<RSProperty<Vector2f>>(endValue); in PreProcessPath()
330 auto endVector4f = std::static_pointer_cast<RSProperty<Vector4f>>(endValue); in PreProcessPath()
341 const std::shared_ptr<RSPropertyBase>& endValue) in InitNeedPath()
343 if (startValue == nullptr || endValue == nullptr) { in InitNeedPath()
348 auto endVector4f = std::static_pointer_cast<RSProperty<Vector4f>>(endValue); in InitNeedPath()
364 const std::shared_ptr<RSPropertyBase>& endValue) in InitInterpolationVector2f()
37 RSPathAnimation(std::shared_ptr<RSPropertyBase> property, const std::string& path, const std::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) RSPathAnimation() argument
340 InitNeedPath(const std::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) InitNeedPath() argument
363 InitInterpolationVector2f(const std::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) InitInterpolationVector2f() argument
384 InitInterpolationVector4f(const std::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) InitInterpolationVector4f() argument
405 UpdateVector2fValueAddOrigin(Vector2f& startValue, Vector2f& endValue, Vector2f& deltaValue) UpdateVector2fValueAddOrigin() argument
411 UpdateVector4fValueAddOrigin(Vector4f& startValue, Vector4f& endValue, Vector4f& deltaValue) UpdateVector4fValueAddOrigin() argument
[all...]
H A Drs_implicit_animation_param.cpp146 const std::shared_ptr<RSPropertyBase>& endValue) const in CreateEmptyAnimation()
148 auto curveAnimation = std::make_shared<RSCurveAnimation>(property, endValue - startValue); in CreateEmptyAnimation()
159 const std::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) const in CreateAnimation()
161 auto curveAnimation = std::make_shared<RSCurveAnimation>(property, endValue - startValue); in CreateAnimation()
177 const std::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) const in CreateAnimation()
182 keyFrameAnimation->AddKeyFrame(startDuration, startDuration + duration_, endValue, timingCurve_); in CreateAnimation()
184 keyFrameAnimation->AddKeyFrame(fraction_, endValue, timingCurve_); in CreateAnimation()
193 const std::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) const in AddKeyframe()
201 keyframeAnimation->AddKeyFrame(fraction_, endValue, timingCurve_); in AddKeyframe()
206 const std::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) cons in AddKeyframe()
293 CreateAnimation(const std::shared_ptr<RSPropertyBase>& property, const std::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) CreateAnimation() argument
[all...]
H A Drs_implicit_animation_param.h69 const std::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) const;
85 const std::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) const;
101 const std::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) const;
104 const std::shared_ptr<RSPropertyBase>& endValue) const;
107 const std::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) const;
123 const std::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) const;
137 const std::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) const;
150 const std::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) const;
166 const std::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue);
H A Drs_property_animation.cpp108 auto endValue = endValue_; in OnUpdateStagingValue() local
110 std::swap(startValue, endValue); in OnUpdateStagingValue()
112 auto byValue = endValue - startValue; in OnUpdateStagingValue()
113 auto targetValue = endValue; in OnUpdateStagingValue()
118 targetValue = endValue; in OnUpdateStagingValue()
H A Drs_implicit_animator.cpp506 const std::shared_ptr<RSPropertyBase>& endValue) in CreateImplicitAnimation()
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()
544 keyframeImplicitParam->AddKeyframe(keyframeIter->second, totalDuration, startValue, endValue); in CreateImplicitAnimation()
546 keyframeImplicitParam->AddKeyframe(keyframeIter->second, startValue, endValue); in CreateImplicitAnimation()
553 animation = springImplicitParam->CreateAnimation(property, startValue, endValue); in CreateImplicitAnimation()
564 animation = interpolatingSpringImplicitParam->CreateAnimation(property, startValue, endValue); in CreateImplicitAnimation()
574 animation = pathImplicitParam->CreateAnimation(property, startValue, endValue); in CreateImplicitAnimation()
504 CreateImplicitAnimation(const std::shared_ptr<RSNode>& target, std::shared_ptr<RSPropertyBase> property, const std::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue) CreateImplicitAnimation() argument
652 CreateImplicitAnimationWithInitialVelocity(const std::shared_ptr<RSNode>& target, const std::shared_ptr<RSPropertyBase>& property, const std::shared_ptr<RSPropertyBase>& startValue, const std::shared_ptr<RSPropertyBase>& endValue, const std::shared_ptr<RSPropertyBase>& velocity) CreateImplicitAnimationWithInitialVelocity() argument
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/unittest/animation/
H A Drs_value_estimator_test.cpp49 auto endValue = RSFilter::CreateBlurFilter(10.f, 10.f); in HWTEST_F() local
52 auto filter1 = curveValueEstimator->Estimate(0.0f, nullptr, endValue); in HWTEST_F()
58 auto filter3 = curveValueEstimator->Estimate(0.1f, startValue, endValue); in HWTEST_F()
85 auto endValue = std::make_shared<RSRenderAnimatableProperty<float>>(1.0f); in HWTEST_F() local
88 curveValueEstimator->InitCurveAnimationValue(property, startValue, endValue, lastValue); in HWTEST_F()
H A Drs_render_animation_debug_trace_test.cpp56 auto endValue = std::make_shared<RSRenderAnimatableProperty<float>>(100.0f); in HWTEST_F() local
58 NODE_ID, NODE_NAME, PROPERTY_ID, ANIMATION_ID, 0, 0, startValue, endValue, 0, 0, 1); in HWTEST_F()
63 RSAnimationTraceUtils::GetInstance().addSpringInitialVelocityTrace(PROPERTY_ID, ANIMATION_ID, startValue, endValue); in HWTEST_F()
81 auto endValue = std::make_shared<RSRenderAnimatableProperty<float>>(100.0f); in HWTEST_F() local
83 NODE_ID, NODE_NAME, PROPERTY_ID, ANIMATION_ID, 0, 0, startValue, endValue, 0, 0, 1); in HWTEST_F()
88 RSAnimationTraceUtils::GetInstance().addSpringInitialVelocityTrace(PROPERTY_ID, ANIMATION_ID, startValue, endValue); in HWTEST_F()
107 auto endValue = std::make_shared<RSRenderAnimatableProperty<float>>(100.0f); in HWTEST_F() local
109 NODE_ID, NODE_NAME, PROPERTY_ID, ANIMATION_ID, 0, 0, startValue, endValue, 0, 0, 1); in HWTEST_F()
114 RSAnimationTraceUtils::GetInstance().addSpringInitialVelocityTrace(PROPERTY_ID, ANIMATION_ID, startValue, endValue); in HWTEST_F()
/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_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()
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_.GetCurve()); in AnimateTo()
/foundation/arkui/ace_engine/frameworks/base/geometry/
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_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_float.h106 void AnimateTo(float endValue) in AnimateTo() argument
108 animateToEndValue_ = endValue; in AnimateTo()
114 GetValue(), endValue, animationOption_.GetCurve()); in AnimateTo()
/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()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/fuzztest/rsanimationbase_fuzzer/
H A Drsanimationbase_fuzzer.cpp213 auto endValue = std::make_shared<RSRenderAnimatableProperty<float>>(GetData<float>()); in RSAnimationTraceUtilsFuzzerTest() local
223 nodeId, nodeName, propertyId, animationId, animationType, propertyType, startValue, endValue, in RSAnimationTraceUtilsFuzzerTest()
314 auto endValue = std::make_shared<RSRenderAnimatableProperty<float>>(GetData<float>()); in RSRenderCurveAnimationFuzzerTest() local
319 animationId, propertyId, property, startValue, endValue); in RSRenderCurveAnimationFuzzerTest()
362 auto endValue = std::make_shared<RSRenderAnimatableProperty<float>>(GetData<float>()); in RSRenderInterpolatingSpringAnimationFuzzerTest() local
372 animationId, propertyId, property, startValue, endValue); in RSRenderInterpolatingSpringAnimationFuzzerTest()
423 auto endValue = std::make_shared<RSRenderAnimatableProperty<float>>(GetData<float>()); in RSRenderPathAnimationFuzzerTest() local
432 animationId, propertyId, property, startValue, endValue, originRotation, RSPath::CreateRSPath()); in RSRenderPathAnimationFuzzerTest()
461 auto endValue = std::make_shared<RSRenderAnimatableProperty<float>>(GetData<float>()); in RSCurveValueEstimatorFuzzerTest() local
466 curveValueEstimator->InitCurveAnimationValue(property, startValue, endValue, lastValu in RSCurveValueEstimatorFuzzerTest()
483 auto endValue = std::make_shared<RSRenderAnimatableProperty<float>>(GetData<float>()); RSKeyframeValueEstimatorFuzzerTest() local
508 auto endValue = std::make_shared<RSRenderAnimatableProperty<float>>(GetData<float>()); RSSpringValueEstimatorFuzzerTest() local
603 auto endValue = std::make_shared<RSRenderAnimatableProperty<float>>(GetData<float>()); RSRenderTransitionEffectFuzzerTest() local
645 auto endValue = std::make_shared<RSRenderAnimatableProperty<float>>(GetData<float>()); RSRenderSpringAnimationFuzzerTest() local
[all...]
/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 float fraction, const std::shared_ptr<RSFilter>& startValue, const std::shared_ptr<RSFilter>& endValue);
65 const std::shared_ptr<RSRenderPropertyBase>& endValue, in InitCurveAnimationValue()
89 const std::shared_ptr<RSRenderPropertyBase>& endValue,
94 auto animatableEndValue = std::static_pointer_cast<RSRenderAnimatableProperty<T>>(endValue);
323 const std::shared_ptr<RSRenderPropertyBase>& startValue, const std::shared_ptr<RSRenderPropertyBase>& endValue, in InitRSSpringValueEstimator()
401 const std::shared_ptr<RSRenderPropertyBase>& startValue, const std::shared_ptr<RSRenderPropertyBase>& endValue,
406 auto animatableEndValue = std::static_pointer_cast<RSRenderAnimatableProperty<T>>(endValue);
63 InitCurveAnimationValue(const std::shared_ptr<RSRenderPropertyBase>& property, const std::shared_ptr<RSRenderPropertyBase>& startValue, const std::shared_ptr<RSRenderPropertyBase>& endValue, const std::shared_ptr<RSRenderPropertyBase>& lastValue) InitCurveAnimationValue() argument
322 InitRSSpringValueEstimator(const std::shared_ptr<RSRenderPropertyBase>& property, const std::shared_ptr<RSRenderPropertyBase>& startValue, const std::shared_ptr<RSRenderPropertyBase>& endValue, const std::shared_ptr<RSRenderPropertyBase>& lastValue) InitRSSpringValueEstimator() argument
[all...]
/foundation/arkui/ace_engine/test/unittest/base/
H A Danimatable_matrix4_test.cpp77 Matrix4 endValue = Matrix4::CreateIdentity(); in HWTEST_F() local
83 animatableMatrix4Obj1.AnimateTo(endValue); in HWTEST_F()
97 animatableMatrix4Obj1.AnimateTo(endValue); in HWTEST_F()
/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_picker_unit_test.cpp159 const int16_t endValue = 100; in HWTEST_F() local
162 picker_->SetValues(startValue, endValue); in HWTEST_F()
167 picker_->SetValues(startValue, endValue); in HWTEST_F()

Completed in 12 milliseconds

1234