Home
last modified time | relevance | path

Searched refs:deltaTime (Results 1 - 25 of 43) sorted by relevance

12

/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/
H A Drs_render_particle_effector.h29 Vector4<float> colorF, Vector4<float> colorSpeed, float deltaTime);
37 void UpdateColor(const std::shared_ptr<RSRenderParticle>& particle, float deltaTime);
39 void UpdateOpacity(const std::shared_ptr<RSRenderParticle>& particle, float deltaTime);
41 void UpdateScale(const std::shared_ptr<RSRenderParticle>& particle, float deltaTime);
43 void UpdateSpin(const std::shared_ptr<RSRenderParticle>& particle, float deltaTime);
45 void UpdateAccelerationAngle(const std::shared_ptr<RSRenderParticle>& particle, float deltaTime);
47 void UpdateAccelerationValue(const std::shared_ptr<RSRenderParticle>& particle, float deltaTime);
50 const std::shared_ptr<ParticleNoiseFields>& particleNoiseFields, float deltaTime);
52 void UpdateActiveTime(const std::shared_ptr<RSRenderParticle>& particle, int64_t deltaTime);
55 const std::shared_ptr<ParticleNoiseFields>& particleNoiseFields, int64_t deltaTime);
[all...]
H A Drs_render_particle_system.h30 void Emit(int64_t deltaTime, std::vector<std::shared_ptr<RSRenderParticle>>& activeParticles,
32 void UpdateParticle(int64_t deltaTime, std::vector<std::shared_ptr<RSRenderParticle>>& activeParticles);
H A Drs_particle_noise_field.h48 Vector2f ApplyField(const Vector2f& position, float deltaTime);
114 Vector2f ApplyAllFields(const Vector2f& position, float deltaTime) in ApplyAllFields() argument
118 totalEffect += (field->ApplyField(position, deltaTime) + field->ApplyCurlNoise(position)); in ApplyAllFields()
H A Drs_render_particle_emitter.h30 void EmitParticle(int64_t deltaTime);
H A Drs_animation_fraction.h71 bool IsStartRunning(const int64_t deltaTime, const int64_t startDelayNs);
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/
H A Drs_render_particle_effector.cpp33 Vector4<int16_t> colorInt, Vector4<float> colorF, Vector4<float> colorSpeed, float deltaTime) in CalculateColorInt()
38 colorF.data_[i] += colorSpeed.data_[i] * deltaTime; in CalculateColorInt()
103 void RSRenderParticleEffector::UpdateColor(const std::shared_ptr<RSRenderParticle>& particle, float deltaTime) in UpdateColor() argument
118 colorInt = CalculateColorInt(particle, colorInt, colorF, colorSpeed, deltaTime); in UpdateColor()
133 void RSRenderParticleEffector::UpdateOpacity(const std::shared_ptr<RSRenderParticle>& particle, float deltaTime) in UpdateOpacity() argument
151 opacity += opacitySpeed * deltaTime; in UpdateOpacity()
162 void RSRenderParticleEffector::UpdateScale(const std::shared_ptr<RSRenderParticle>& particle, float deltaTime) in UpdateScale() argument
177 scale += scaleSpeed * deltaTime; in UpdateScale()
187 void RSRenderParticleEffector::UpdateSpin(const std::shared_ptr<RSRenderParticle>& particle, float deltaTime) in UpdateSpin() argument
198 spin += spinSpeed * deltaTime; in UpdateSpin()
32 CalculateColorInt(const std::shared_ptr<RSRenderParticle>& particle, Vector4<int16_t> colorInt, Vector4<float> colorF, Vector4<float> colorSpeed, float deltaTime) CalculateColorInt() argument
208 UpdateAccelerationAngle( const std::shared_ptr<RSRenderParticle>& particle, float deltaTime) UpdateAccelerationAngle() argument
230 UpdateAccelerationValue( const std::shared_ptr<RSRenderParticle>& particle, float deltaTime) UpdateAccelerationValue() argument
252 UpdatePosition(const std::shared_ptr<RSRenderParticle>& particle, const std::shared_ptr<ParticleNoiseFields>& particleNoiseFields, float deltaTime) UpdatePosition() argument
284 UpdateActiveTime(const std::shared_ptr<RSRenderParticle>& particle, int64_t deltaTime) UpdateActiveTime() argument
295 Update(const std::shared_ptr<RSRenderParticle>& particle, const std::shared_ptr<ParticleNoiseFields>& particleNoiseFields, int64_t deltaTime) Update() argument
[all...]
H A Drs_animation_fraction.cpp88 bool RSAnimationFraction::IsStartRunning(const int64_t deltaTime, const int64_t startDelayNs) in IsStartRunning() argument
93 runningTime_ += static_cast<int64_t>(deltaTime * MAX_SPEED); in IsStartRunning()
95 runningTime_ += static_cast<int64_t>(deltaTime * speed_ / animationScale); in IsStartRunning()
99 runningTime_ -= static_cast<int64_t>(deltaTime * MAX_SPEED); in IsStartRunning()
101 runningTime_ -= static_cast<int64_t>(deltaTime * speed_ / animationScale); in IsStartRunning()
112 int64_t deltaTime = time - lastFrameTime_; in GetAnimationFraction() local
118 if (deltaTime < 0) { in GetAnimationFraction()
129 if (!IsStartRunning(deltaTime, startDelayNs)) { in GetAnimationFraction()
150 isRepeatFinished = ((playTime_ + deltaTime) >= durationNs); in GetAnimationFraction()
H A Drs_render_particle_system.cpp49 void RSRenderParticleSystem::Emit(int64_t deltaTime, std::vector<std::shared_ptr<RSRenderParticle>>& activeParticles, in Emit() argument
54 emitters_[iter]->EmitParticle(deltaTime); in Emit()
63 int64_t deltaTime, std::vector<std::shared_ptr<RSRenderParticle>>& activeParticles) in UpdateParticle()
73 Update((*it), particleNoiseFields_, deltaTime); in UpdateParticle()
62 UpdateParticle( int64_t deltaTime, std::vector<std::shared_ptr<RSRenderParticle>>& activeParticles) UpdateParticle() argument
H A Drs_render_particle_animation.cpp52 int64_t deltaTime = time - animationFraction_.GetLastFrameTime(); in Animate() local
56 deltaTime, renderParticleVector_.renderParticleVector_, renderParticleVector_.imageVector_); in Animate()
57 particleSystem_->UpdateParticle(deltaTime, renderParticleVector_.renderParticleVector_); in Animate()
H A Drs_particle_noise_field.cpp93 Vector2f ParticleNoiseField::ApplyField(const Vector2f& position, float deltaTime) in ApplyField() argument
106 if (fieldStrength_ < 0 && !ROSEN_EQ(deltaTime, 0.f)) { in ApplyField()
107 forceMagnitude = std::max(forceMagnitude, -1.f * distance / deltaTime); in ApplyField()
108 } else if (fieldStrength_ > 0 && !ROSEN_EQ(deltaTime, 0.f)) { in ApplyField()
109 forceMagnitude = std::min(forceMagnitude, edgeDistance / deltaTime); in ApplyField()
H A Drs_render_particle_emitter.cpp71 void RSRenderParticleEmitter::EmitParticle(int64_t deltaTime) in EmitParticle() argument
90 particleCount_ += static_cast<float>(emitRate * deltaTime) / NS_TO_S; in EmitParticle()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/unittest/animation/
H A Drs_render_particle_effector_test.cpp54 float deltaTime = 0.1f; member in OHOS::Rosen::RSRenderParticleEffectorTest
141 effector->UpdateColor(particle, deltaTime); in HWTEST_F()
144 effector->UpdateColor(particle, deltaTime); in HWTEST_F()
146 effector->UpdateColor(particle1, deltaTime); in HWTEST_F()
160 effector->UpdateOpacity(particle, deltaTime); in HWTEST_F()
173 effector->UpdateOpacity(particle_opacity, deltaTime); in HWTEST_F()
180 effector->UpdateOpacity(particle_opacity, deltaTime); in HWTEST_F()
188 effector->UpdateOpacity(particle_opacity, deltaTime); in HWTEST_F()
191 effector->UpdateOpacity(particle1, deltaTime); in HWTEST_F()
205 effector->UpdateScale(particle, deltaTime); in HWTEST_F()
602 float deltaTime = 10.f; HWTEST_F() local
647 float deltaTime = 10.f; HWTEST_F() local
678 float deltaTime = 10.f; HWTEST_F() local
[all...]
/foundation/arkui/ui_lite/frameworks/core/
H A Drender_manager.cpp118 int32_t deltaTime = curTime - lastTime; in UpdateFPSByAverageSamplingMethod() local
122 avgDuration = static_cast<float>(deltaTime); in UpdateFPSByAverageSamplingMethod()
125 avgDuration = avgDuration * (1 - alpha) + deltaTime * alpha; in UpdateFPSByAverageSamplingMethod()
150 int32_t deltaTime = curTime - lastTime; in UpdateFPSByPreciseSamplingMethod() local
158 sumDuration += deltaTime; in UpdateFPSByPreciseSamplingMethod()
159 deltaTimeQueue[frameCount++] = deltaTime; in UpdateFPSByPreciseSamplingMethod()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/
H A Dmock_time_sync.h41 static TimeOffset CallCalculateRawTimeOffset(const TimeSyncPacket &timeSyncInfo, TimeOffset deltaTime) in CallCalculateRawTimeOffset() argument
43 return TimeSync::CalculateRawTimeOffset(timeSyncInfo, deltaTime); in CallCalculateRawTimeOffset()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/
H A Dtime_helper.cpp110 Timestamp deltaTime = 1UL; in GetTime() local
112 deltaTime = currentMonotonicTime - lastMonotonicTime_; in GetTime()
116 lastLocalTime += deltaTime; in GetTime()
/foundation/graphic/graphic_3d/lume/LumeRender/src/nodecontext/
H A Drender_node_context_manager.cpp76 const float deltaTime = static_cast<float>( in BeginFrame() local
82 timings = { deltaTime, deltaTime, totalTime, *reinterpret_cast<const float*>(&frameIndex) }; in BeginFrame()
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/animation/
H A Drs_animation_fraction_test.cpp134 int64_t deltaTime = 1; in HWTEST_F() local
138 bool res = rsAnimationFraction.IsStartRunning(deltaTime, startDelayNs); in HWTEST_F()
143 res = rsAnimationFraction.IsStartRunning(deltaTime, startDelayNs); in HWTEST_F()
148 res = rsAnimationFraction.IsStartRunning(deltaTime, startDelayNs); in HWTEST_F()
153 res = rsAnimationFraction.IsStartRunning(deltaTime, startDelayNs); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/test/render/render/unittest/animat/
H A Drs_animat_fraction_test.cpp122 int64_t deltaTime = 1; in HWTEST_F() local
126 bool res = rsAnimationFraction.IsStartRunning(deltaTime, startDelayNs); in HWTEST_F()
131 res = rsAnimationFraction.IsStartRunning(deltaTime, startDelayNs); in HWTEST_F()
136 res = rsAnimationFraction.IsStartRunning(deltaTime, startDelayNs); in HWTEST_F()
141 res = rsAnimationFraction.IsStartRunning(deltaTime, startDelayNs); in HWTEST_F()
/foundation/multimedia/audio_framework/services/audio_service/test/example/
H A Daudio_hdi_device_test.cpp85 int64_t writeTime = fwkSyncTime + writeCount * periodNanoSec + deltaTime; in RenderFrameFromFile()
160 int64_t deltaTime = 4000000; // 4ms member in AudioHdiDeviceTest
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_storage_register_conflict_test.cpp272 static void SyncPutConflictData(int deltaTime) in SyncPutConflictData() argument
287 vect.push_back({KEY_1, VALUE_2, timeEnd + deltaTime, 0, DBCommon::TransferHashString("deviceB")}); in SyncPutConflictData()
297 if (deltaTime > 0) { in SyncPutConflictData()
306 static void SyncDeleteConflictData(const int deltaTime) in SyncDeleteConflictData() argument
324 vect.push_back({hashKey, DEFT_VALUE, time + deltaTime, 1, DBCommon::TransferHashString("deviceB")}); in SyncDeleteConflictData()
330 static void SyncPutFromDiffDevConflictData(const int deltaTime) in SyncPutFromDiffDevConflictData() argument
345 vect.push_back({KEY_1, VALUE_2, time + deltaTime, 0, DBCommon::TransferHashString("deviceC")}); in SyncPutFromDiffDevConflictData()
351 static void SyncDeleteFromDiffDevConflictData(const int deltaTime) in SyncDeleteFromDiffDevConflictData() argument
370 vect.push_back({hashKey, DEFT_VALUE, time + deltaTime, 1, DBCommon::TransferHashString("deviceC")}); in SyncDeleteFromDiffDevConflictData()
/foundation/graphic/graphic_3d/lume/LumeEngine/src/
H A Dengine.h93 static bool TickFrame(IEcs& ecs, uint64_t totalTime, uint64_t deltaTime);
/foundation/multimedia/av_codec/services/media_engine/modules/sink/
H A Dvideo_sink.cpp175 int64_t deltaTime = ct4Buffer - thisBufferTime; in CheckBufferLatenessMayWait() local
176 deltaTimeAccu_ = (deltaTimeAccu_ * 9 + deltaTime) / 10; // 9 10 for smoothing in CheckBufferLatenessMayWait()
/foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/
H A Drs_profiler.cpp242 const double deltaTime = Now() - g_recordStartTime; in OnRemoteRequest() local
248 stream.write(reinterpret_cast<const char*>(&deltaTime), sizeof(deltaTime)); in OnRemoteRequest()
266 g_recordFile.WriteRSData(deltaTime, out.data() + headerOffset, out.size() - headerOffset); in OnRemoteRequest()
1797 const double deltaTime = Now() - g_playbackStartTime; in OnParallelRenderBegin()
1798 const double readTime = PlaybackUpdate(deltaTime); in OnParallelRenderBegin()
1830 double RSProfiler::PlaybackUpdate(double deltaTime) in OnParallelRenderBegin() argument
1834 if (!g_playbackShouldBeTerminated && g_playbackFile.ReadRSData(deltaTime, data, readTime)) { in OnParallelRenderBegin()
1882 if (auto vsyncId = g_playbackFile.ConvertTime2VsyncId(deltaTime)) { in OnParallelRenderBegin()
/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/systems/
H A Drender_preprocessor_system.h66 bool Update(bool frameRenderingQueued, uint64_t totalTime, uint64_t deltaTime) override;
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/
H A Dtime_sync.h150 static TimeOffset CalculateRawTimeOffset(const TimeSyncPacket &timeSyncInfo, TimeOffset deltaTime);

Completed in 14 milliseconds

12