Home
last modified time | relevance | path

Searched refs:interpolator (Results 1 – 25 of 40) sorted by relevance

12

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/unittest/animation/
H A Drs_interpolator_test.cpp52 EXPECT_EQ(interpolator, nullptr);
57 EXPECT_EQ(interpolator, nullptr);
65 EXPECT_TRUE(interpolator != nullptr);
81 EXPECT_EQ(interpolator, nullptr);
86 EXPECT_EQ(interpolator, nullptr);
92 EXPECT_EQ(interpolator, nullptr);
101 EXPECT_TRUE(interpolator != nullptr);
151 EXPECT_TRUE(interpolator != nullptr);
170 EXPECT_TRUE(interpolator != nullptr);
171 if (interpolator != nullptr) {
[all …]
H A Drs_render_keyframe_animation_test.cpp70 auto interpolator = std::make_shared<RSStepsInterpolator>(0); variable
74 renderKeyframeAnimation->AddKeyframe(-1.0f, property1, interpolator);
77 renderKeyframeAnimation->AddKeyframe(2.0f, property1, interpolator);
96 auto interpolator = std::make_shared<RSStepsInterpolator>(0); variable
98 renderKeyframeAnimation->AddKeyframe(0.1f, property1, interpolator);
103 renderKeyframeAnimation->AddKeyframe(0.2f, property1, interpolator);
119 auto interpolator = std::make_shared<RSStepsInterpolator>(0); variable
120 keyframes.push_back(std::make_tuple(0.1f, property1, interpolator));
149 auto interpolator = std::make_shared<RSStepsInterpolator>(0); variable
176 auto interpolator = std::make_shared<RSStepsInterpolator>(0); variable
[all …]
H A Drs_render_particle_effector_test.cpp101 std::shared_ptr<RSInterpolator> interpolator = nullptr; in SetOpacity() local
102 …td::make_shared<ChangeInOverLife<float>>(fromValue, toValue, startMillis, endMillis, interpolator); in SetOpacity()
104 …red<ChangeInOverLife<float>>(toValue, fromValue, endMillis + 4000, endMillis + 7000, interpolator); in SetOpacity()
221 std::shared_ptr<RSInterpolator> interpolator = variable
223 …td::make_shared<ChangeInOverLife<float>>(fromValue, toValue, startMillis, endMillis, interpolator);
225 …red<ChangeInOverLife<float>>(toValue, fromValue, endMillis + 4000, endMillis + 7000, interpolator);
292 std::shared_ptr<RSInterpolator> interpolator = variable
295 …hared<ChangeInOverLife<Color>>(colorFromValue, colorToValue, startMillis, endMillis, interpolator);
385 std::shared_ptr<RSInterpolator> interpolator = nullptr; variable
386 …td::make_shared<ChangeInOverLife<float>>(fromValue, toValue, startMillis, endMillis, interpolator);
[all …]
H A Drs_render_particle_emitter_test.cpp96 std::shared_ptr<RSInterpolator> interpolator = nullptr; in SetOpacity() local
97 …td::make_shared<ChangeInOverLife<float>>(fromValue, toValue, startMillis, endMillis, interpolator); in SetOpacity()
99 …red<ChangeInOverLife<float>>(toValue, fromValue, endMillis + 4000, endMillis + 7000, interpolator); in SetOpacity()
H A Drs_value_estimator_test.cpp80 auto interpolator = std::make_shared<RSStepsInterpolator>(1, StepsCurvePosition::START); variable
89 auto result = curveValueEstimator->EstimateFraction(interpolator);
H A Drs_render_curve_animation_test.cpp109 auto interpolator = std::make_shared<RSStepsInterpolator>(0); variable
111 renderCurveAnimation->SetInterpolator(interpolator);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/
H A Drs_render_keyframe_animation.cpp39 const std::shared_ptr<RSInterpolator>& interpolator) in AddKeyframe() argument
51 keyframes_.push_back({ fraction, value, interpolator }); in AddKeyframe()
108 … for (const auto& [startFraction, endFraction, property, interpolator] : durationKeyframes_) { in Marshalling()
111 interpolator != nullptr && interpolator->Marshalling(parcel))) { in Marshalling()
123 for (const auto& [value, property, interpolator] : keyframes_) { in Marshalling()
125 interpolator != nullptr && interpolator->Marshalling(parcel))) { in Marshalling()
178 std::shared_ptr<RSInterpolator> interpolator(RSInterpolator::Unmarshalling(parcel)); in ParseParam() local
179 if (interpolator == nullptr) { in ParseParam()
183 keyframes_.emplace_back(std::make_tuple(tupValue0, tupValue1, interpolator)); in ParseParam()
201 std::shared_ptr<RSInterpolator> interpolator(RSInterpolator::Unmarshalling(parcel)); in ParseDurationKeyframesParam() local
[all …]
H A Drs_render_curve_animation.cpp35 void RSRenderCurveAnimation::SetInterpolator(const std::shared_ptr<RSInterpolator>& interpolator) in SetInterpolator() argument
37 interpolator_ = interpolator; in SetInterpolator()
84 std::shared_ptr<RSInterpolator> interpolator(RSInterpolator::Unmarshalling(parcel)); in ParseParam() local
85 if (interpolator == nullptr) { in ParseParam()
89 SetInterpolator(interpolator); in ParseParam()
118 …CurveAnimation::OnAnimateInner(float fraction, const std::shared_ptr<RSInterpolator>& interpolator) in OnAnimateInner() argument
126 if (valueEstimator_ == nullptr || interpolator == nullptr) { in OnAnimateInner()
129 auto interpolatorValue = interpolator->Interpolate(fraction); in OnAnimateInner()
H A Drs_value_estimator.cpp64 …RSCurveValueEstimator<float>::EstimateFraction(const std::shared_ptr<RSInterpolator>& interpolator) in EstimateFraction() argument
66 if (interpolator == nullptr) { in EstimateFraction()
75 float fraction = interpolator->Interpolate(mid); in EstimateFraction()
H A Drs_render_transition.cpp74 std::shared_ptr<RSInterpolator> interpolator(RSInterpolator::Unmarshalling(parcel)); in ParseParam() local
75 if (interpolator == nullptr) { in ParseParam()
79 SetInterpolator(interpolator); in ParseParam()
H A Drs_render_path_animation.cpp40 void RSRenderPathAnimation::SetInterpolator(const std::shared_ptr<RSInterpolator>& interpolator) in SetInterpolator() argument
42 interpolator_ = interpolator; in SetInterpolator()
171 std::shared_ptr<RSInterpolator> interpolator(RSInterpolator::Unmarshalling(parcel)); in ParseParam() local
172 if (interpolator == nullptr) { in ParseParam()
183 SetInterpolator(interpolator); in ParseParam()
H A Drs_render_particle_effector.cpp69 auto& interpolator = valChangeOverLife[i]->interpolator_; in UpdateCurveValue() local
70 t = (interpolator != nullptr) ? interpolator->Interpolate(t) : t; in UpdateCurveValue()
93 auto& interpolator = valChangeOverLife[i]->interpolator_; in UpdateColorCurveValue() local
94 t = (interpolator != nullptr) ? interpolator->Interpolate(t) : t; in UpdateColorCurveValue()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/animation/
H A Drs_render_keyframe_animation_test.cpp60 auto interpolator = std::shared_ptr<RSInterpolator>(); in HWTEST_F() local
61 rsRenderKeyframeAnimation.AddKeyframe(1.0f, value, interpolator); in HWTEST_F()
94 auto interpolator = std::shared_ptr<RSInterpolator>(); in HWTEST_F() local
97 rsRenderKeyframeAnimation.AddKeyframe(start, end, value, interpolator); in HWTEST_F()
102 rsRenderKeyframeAnimation.AddKeyframe(start, end, value, interpolator); in HWTEST_F()
106 rsRenderKeyframeAnimation.AddKeyframe(start, end, value, interpolator); in HWTEST_F()
111 rsRenderKeyframeAnimation.AddKeyframe(start, end, value, interpolator); in HWTEST_F()
H A Drs_cubic_bezier_interpolator_test.cpp88 RSCubicBezierInterpolator* interpolator; variable
89 interpolator = rsCubicBezierInterpolator.Unmarshalling(parcel);
90 EXPECT_EQ(interpolator, nullptr);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/animation/
H A Drs_curve_animation.cpp83 auto interpolator = timingCurve_.GetInterpolator(GetDuration()); in OnStart() local
86 animation->SetInterpolator(interpolator); in OnStart()
99 auto interpolator = timingCurve_.GetInterpolator(GetDuration()); in IsSupportInteractiveAnimator() local
100 …if (interpolator->GetType() == InterpolatorType::CUSTOM || interpolator->GetType() == Interpolator… in IsSupportInteractiveAnimator()
H A Drs_transition.cpp63 auto interpolator = timingCurve_.GetInterpolator(GetDuration()); in StartCustomTransition() local
64 transition->SetInterpolator(interpolator); in StartCustomTransition()
89 auto interpolator = timingCurve_.GetInterpolator(GetDuration()); in StartRenderTransition() local
90 transition->SetInterpolator(interpolator); in StartRenderTransition()
H A Drs_particle_params.h180 auto interpolator = curve.GetInterpolator(duration); in translateValToRender() local
183 fromValue, toValue, startMillis, endMillis, std::move(interpolator))); in translateValToRender()
211 auto interpolator = curve.GetInterpolator(duration); in translateColorToRender() local
214 fromValue, toValue, startMillis, endMillis, std::move(interpolator))); in translateColorToRender()
H A Drs_animation_timing_curve.cpp53 RSAnimationTimingCurve::RSAnimationTimingCurve(const std::shared_ptr<RSInterpolator>& interpolator) in RSAnimationTimingCurve() argument
54 : interpolator_(interpolator), customCurveFunc_(nullptr) in RSAnimationTimingCurve()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/
H A Drs_render_transition.h33 void SetInterpolator(const std::shared_ptr<RSInterpolator>& interpolator) in SetInterpolator() argument
35 interpolator_ = interpolator; in SetInterpolator()
H A Drs_value_estimator.h52 virtual float EstimateFraction(const std::shared_ptr<RSInterpolator>& interpolator) in EstimateFraction() argument
57 virtual float EstimateFraction(const std::shared_ptr<RSInterpolator>& interpolator, in EstimateFraction() argument
123 float EstimateFraction(const std::shared_ptr<RSInterpolator>& interpolator) override in EstimateFraction() argument
128 float EstimateFraction(const std::shared_ptr<RSInterpolator>& interpolator, in EstimateFraction() argument
131 if (interpolator == nullptr || duration <= 0) { in EstimateFraction()
143 float fraction = interpolator->Interpolate(frameFraction); in EstimateFraction()
159 …SCurveValueEstimator<float>::EstimateFraction(const std::shared_ptr<RSInterpolator>& interpolator);
H A Drs_render_curve_animation.h36 void SetInterpolator(const std::shared_ptr<RSInterpolator>& interpolator);
56 void OnAnimateInner(float fraction, const std::shared_ptr<RSInterpolator>& interpolator);
H A Drs_render_keyframe_animation.h35 const std::shared_ptr<RSInterpolator>& interpolator);
41 const std::shared_ptr<RSInterpolator>& interpolator);
H A Drs_render_path_animation.h40 void SetInterpolator(const std::shared_ptr<RSInterpolator>& interpolator);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/fuzztest/rsanimationbase_fuzzer/
H A Drsanimationbase_fuzzer.cpp165 auto interpolator = std::make_shared<RSCubicBezierInterpolator>(x1, y1, x2, y2); in RSCubicBezierInterpolatorFuzzerTest() local
166 interpolator->Interpolate(input); in RSCubicBezierInterpolatorFuzzerTest()
167 interpolator->Marshalling(parcel); in RSCubicBezierInterpolatorFuzzerTest()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/animation/
H A Danimator.cpp557 for (auto& interpolator : interpolators) { in Cancel() local
558 interpolator->OnInitNotify(normalizedTime, isReverse_); in Cancel()
596 for (const auto& interpolator : interpolators) { in OnFrame() local
597interpolator->OnNormalizedTimestampChanged(isCurDirection_ ? 1.0f : 0.0f, isReverse_); in OnFrame()
659 for (const auto& interpolator : interpolators) { in NotifyInterpolator() local
662 interpolator->OnInitNotify(normalizedTime, isReverse_); in NotifyInterpolator()
665 interpolator->OnNormalizedTimestampChanged(normalizedTime, isReverse_); in NotifyInterpolator()

12