/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/ |
H A D | rs_render_particle_effector.h | 29 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 D | rs_render_particle_system.h | 30 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 D | rs_particle_noise_field.h | 48 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 D | rs_render_particle_emitter.h | 30 void EmitParticle(int64_t deltaTime);
|
H A D | rs_animation_fraction.h | 71 bool IsStartRunning(const int64_t deltaTime, const int64_t startDelayNs);
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_render_particle_effector.cpp | 33 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 D | rs_animation_fraction.cpp | 88 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 D | rs_render_particle_system.cpp | 49 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 D | rs_render_particle_animation.cpp | 52 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 D | rs_particle_noise_field.cpp | 93 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 D | rs_render_particle_emitter.cpp | 71 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 D | rs_render_particle_effector_test.cpp | 54 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 D | render_manager.cpp | 118 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 D | mock_time_sync.h | 41 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 D | time_helper.cpp | 110 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 D | render_node_context_manager.cpp | 76 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 D | rs_animation_fraction_test.cpp | 134 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 D | rs_animat_fraction_test.cpp | 122 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 D | audio_hdi_device_test.cpp | 85 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 D | distributeddb_storage_register_conflict_test.cpp | 272 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 D | engine.h | 93 static bool TickFrame(IEcs& ecs, uint64_t totalTime, uint64_t deltaTime);
|
/foundation/multimedia/av_codec/services/media_engine/modules/sink/ |
H A D | video_sink.cpp | 175 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 D | rs_profiler.cpp | 242 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 D | render_preprocessor_system.h | 66 bool Update(bool frameRenderingQueued, uint64_t totalTime, uint64_t deltaTime) override;
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/ |
H A D | time_sync.h | 150 static TimeOffset CalculateRawTimeOffset(const TimeSyncPacket &timeSyncInfo, TimeOffset deltaTime);
|