Home
last modified time | relevance | path

Searched refs:frameInterval (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/
H A Drs_render_property_animation.cpp191 void RSRenderPropertyAnimation::UpdateAnimateVelocity(float frameInterval) in UpdateAnimateVelocity() argument
194 !lastAnimateValue_ || !property_ || ROSEN_EQ<float>(frameInterval, 0)) { in UpdateAnimateVelocity()
199 ProcessAnimateVelocityUnderAngleRotation(frameInterval); in UpdateAnimateVelocity()
205 animateVelocity_ = (currAnimateValue - lastAnimateValue_) * (1 / frameInterval); in UpdateAnimateVelocity()
212 void RSRenderPropertyAnimation::ProcessAnimateVelocityUnderAngleRotation(float frameInterval) in ProcessAnimateVelocityUnderAngleRotation() argument
231 if (ROSEN_EQ<float>(frameInterval, 0)) { in ProcessAnimateVelocityUnderAngleRotation()
235 animateVelocity_ = diffValue * (1 / frameInterval); in ProcessAnimateVelocityUnderAngleRotation()
H A Drs_interpolator.cpp199 constexpr uint64_t frameInterval = 16666667; in Convert() local
200 …nt numAnim = static_cast<int>(std::ceil(static_cast<double>(duration * MS_TO_NS) / frameInterval)); in Convert()
H A Drs_render_animation.cpp342 float frameInterval = (time - animationFraction_.GetLastFrameTime()) * 1.0f / NS_TO_S; in Animate() local
356 UpdateAnimateVelocity(frameInterval); in Animate()
/ohos5.0/foundation/multimedia/camera_framework/services/camera_service/src/smooth_zoom/
H A Dcubic_bezier.cpp38 const float& frameInterval) in GetZoomArray() argument
43 CHECK_ERROR_RETURN_RET(duration == 0 || frameInterval == 0, result); in GetZoomArray()
44 int arraySize = static_cast<int>(duration / frameInterval); in GetZoomArray()
46 "Error size, duration is:%{public}f, interval is:%{public}f", duration, frameInterval); in GetZoomArray()
48 float time = frameInterval * i / duration; in GetZoomArray()
/ohos5.0/foundation/multimedia/av_codec/test/unittest/video_test/video_test/sample/encoder/
H A Dvideo_encoder_sample.cpp87 ThreadSleep(info.threadSleepMode == THREAD_SLEEP_MODE_INPUT_SLEEP, info.frameInterval); in BufferInputThread()
105 ((info.frameInterval == 0) ? 1 : info.frameInterval) * 1000; // 1000: 1ms to us in SurfaceInputThread()
124 ThreadSleep(info.threadSleepMode == THREAD_SLEEP_MODE_INPUT_SLEEP, info.frameInterval); in SurfaceInputThread()
150 ThreadSleep(info.threadSleepMode == THREAD_SLEEP_MODE_OUTPUT_SLEEP, info.frameInterval); in OutputThread()
/ohos5.0/foundation/multimedia/camera_framework/test/fuzztest/cubicbezier_fuzzer/
H A Dcubic_bezier_fuzzer.cpp70 float frameInterval = data.ReadFloat(); in Test() local
71 fuzz->GetZoomArray(currentZoom, targetZoom, frameInterval); in Test()
/ohos5.0/foundation/multimedia/camera_framework/test/fuzztest/smoothzoom_fuzzer/
H A Dsmooth_zoom_fuzzer.cpp73 float frameInterval = data.ReadFloat(); in Test() local
74 alg->GetZoomArray(currentZoom, targetZoom, frameInterval); in Test()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/
H A Drs_render_property_animation.h67 void UpdateAnimateVelocity(float frameInterval) override;
69 void ProcessAnimateVelocityUnderAngleRotation(float frameInterval) override;
H A Drs_render_animation.h212 virtual void UpdateAnimateVelocity(float frameInterval) {} in UpdateAnimateVelocity() argument
214 virtual void ProcessAnimateVelocityUnderAngleRotation(float frameInterval) {} in ProcessAnimateVelocityUnderAngleRotation() argument
/ohos5.0/docs/zh-cn/application-dev/performance/
H A Daudio-video-synchronization.md102 … std::this_thread::sleep_until(lastPushTime + std::chrono::microseconds(sampleInfo.frameInterval));
148 if (waitTimeUs > sampleInfo.frameInterval + PER_SINK_TIME_THRESHOLD) {
149 waitTimeUs = sampleInfo.frameInterval + PER_SINK_TIME_THRESHOLD;
/ohos5.0/foundation/multimedia/av_codec/test/unittest/video_test/video_test/capbilities/data_producer/data_producer_base/
H A Ddata_producer_base.cpp55 … ((sampleInfo_->frameInterval <= 0) ? 1 : sampleInfo_->frameInterval) * 1000; // 1000: 1ms to us in ReadSample()
/ohos5.0/foundation/multimedia/av_codec/test/unittest/video_test/video_test/sample/helper/
H A Darg_parser.cpp250 info.frameInterval = std::stol(value); in SetFrameInterval()
251 if (info.frameInterval < 0) { in SetFrameInterval()
252 info.frameInterval = 1000 / info.frameRate; // 1000ms in SetFrameInterval()
H A Dsample_helper.cpp119 info.frameInterval, BOOL_TO_STRING.at(info.needDumpOutput).c_str()); in PrintSampleInfo()
/ohos5.0/foundation/multimedia/camera_framework/services/camera_service/include/smooth_zoom/
H A Dizoom_algorithm.h29 const float& frameInterval) = 0;
H A Dcubic_bezier.h29 const float& frameInterval) override;
/ohos5.0/foundation/multimedia/av_codec/test/unittest/video_test/video_test/sample/decoder/
H A Dvideo_decoder_sample.cpp83 ThreadSleep(info.threadSleepMode == THREAD_SLEEP_MODE_INPUT_SLEEP, info.frameInterval); in InputThread()
106 ThreadSleep(info.threadSleepMode == THREAD_SLEEP_MODE_OUTPUT_SLEEP, info.frameInterval); in OutputThread()
/ohos5.0/foundation/multimedia/av_codec/test/unittest/video_test/video_test/common/include/
H A Dsample_info.h122 int32_t frameInterval = -1; member
/ohos5.0/foundation/multimedia/av_codec/test/unittest/video_test/video_test/sample/yuv_viewer/
H A Dyuv_viewer.cpp122 …adSleep(sampleInfo_->threadSleepMode == THREAD_SLEEP_MODE_INPUT_SLEEP, sampleInfo_->frameInterval); in InputThread()