Home
last modified time | relevance | path

Searched refs:fDuration (Results 1 – 25 of 29) sorted by relevance

12

/external/skia/tools/skottie_ios_app/
DSkottieViewController.mm73 float fDuration = 0;
81 if (0 == fDuration) {
88 if (fStopAtEnd && time >= fDuration) {
90 fAnimationMoment = fDuration;
93 return std::fmod(time, fDuration);
97 fDuration = d;
104 float duration() const { return fDuration; }
108 fAnimationMoment = std::fmod(seconds, fDuration);
116 double offset = (fAnimationMoment >= fDuration) ? 0 : -1e9 * fAnimationMoment;
/external/skqp/src/codec/
DSkFrameHolder.h29 , fDuration(0) in SkFrame()
125 fDuration = duration; in setDuration()
132 return fDuration; in getDuration()
154 int fDuration; variable
/external/skia/src/codec/
DSkFrameHolder.h31 , fDuration(0) in SkFrame()
127 fDuration = duration; in setDuration()
134 return fDuration; in getDuration()
161 int fDuration; variable
DSkCodec.cpp798 frameInfo->fDuration = fDuration; in fillIn()
/external/skqp/tools/skpbench/
Dskpbench.cpp82 Sample() : fFrames(0), fDuration(0) {} in Sample()
83 double seconds() const { return std::chrono::duration<double>(fDuration).count(); } in seconds()
84 double ms() const { return std::chrono::duration<double, std::milli>(fDuration).count(); } in ms()
89 duration fDuration; member
143 sample->fDuration += *startStopTime - start; in ddl_sample()
185 } while (sample.fDuration < sampleDuration); in run_ddl_benchmark()
187 cumulativeDuration += sample.fDuration; in run_ddl_benchmark()
224 sample.fDuration = now - sampleStart; in run_benchmark()
226 } while (sample.fDuration < sampleDuration); in run_benchmark()
280 sample.fDuration += gpuTimer->getTimeElapsed(previousTime); in run_gpu_time_benchmark()
[all …]
/external/skia/tools/skpbench/
Dskpbench.cpp94 Sample() : fFrames(0), fDuration(0) {} in Sample()
95 double seconds() const { return std::chrono::duration<double>(fDuration).count(); } in seconds()
96 double ms() const { return std::chrono::duration<double, std::milli>(fDuration).count(); } in ms()
101 duration fDuration; member
247 sample->fDuration += *startStopTime - start; in ddl_sample()
310 } while (sample.fDuration < sampleDuration); in run_ddl_benchmark()
312 cumulativeDuration += sample.fDuration; in run_ddl_benchmark()
366 sample.fDuration = now - sampleStart; in run_benchmark()
367 } while (sample.fDuration < sampleDuration); in run_benchmark()
426 sample.fDuration += gpuTimer->getTimeElapsed(previousTime); in run_gpu_time_benchmark()
[all …]
/external/skqp/src/utils/
DSkAnimCodecPlayer.cpp23 dur += f.fDuration; in SkAnimCodecPlayer()
24 f.fDuration = dur; in SkAnimCodecPlayer()
89 return (uint32_t)info.fDuration < msec; in seek()
/external/skia/src/utils/
DSkAnimCodecPlayer.cpp25 dur += f.fDuration; in SkAnimCodecPlayer()
26 f.fDuration = dur; in SkAnimCodecPlayer()
133 return (uint32_t)info.fDuration <= msec; in seek()
/external/skqp/tests/
DCodecAnimTest.cpp263 if (rec.fDurations[i] != frameInfo.fDuration) { in DEF_TEST()
265 rec.fName, i, rec.fDurations[i], frameInfo.fDuration); in DEF_TEST()
458 uint32_t fDuration; in DEF_TEST() member
472 if (player->duration() != test.fDuration) { in DEF_TEST()
473 printf("*** %d vs %d\n", player->duration(), test.fDuration); in DEF_TEST()
475 REPORTER_ASSERT(r, player->duration() == test.fDuration); in DEF_TEST()
DAnimatedImageTest.cpp260 REPORTER_ASSERT(r, animatedImage->currentFrameDuration() == frameInfos[0].fDuration); in DEF_TEST()
277 REPORTER_ASSERT(r, frameTime == frameInfos[i].fDuration); in DEF_TEST()
/external/skqp/modules/skottie/include/
DSkottie.h212 SkScalar duration() const { return fDuration; } in duration()
228 fDuration; variable
/external/skia/gm/
Danimated_gif.cpp153 fNextUpdate = secs + fFrameInfos[fFrame].fDuration; in onAnimate()
171 fNextUpdate += fFrameInfos[fFrame].fDuration; in onAnimate()
289 duration += fFrameInfos[frame].fDuration; in onDraw()
/external/skia/modules/skottie/include/
DSkottie.h217 double duration() const { return fDuration; } in duration()
253 fDuration, variable
/external/skia/src/android/
DSkAnimatedImage.cpp204 fCurrentFrameDuration = frameInfo.fDuration; in decodeNextFrame()
213 frameInfo.fDuration = INT_MAX; in decodeNextFrame()
326 fCurrentFrameDuration = frameInfo.fDuration; in decodeNextFrame()
/external/skqp/gm/
DanimatedGif.cpp158 fNextUpdate = secs + fFrameInfos[fFrame].fDuration; in onAnimate()
176 fNextUpdate += fFrameInfos[fFrame].fDuration; in onAnimate()
/external/skia/tests/
DCodecAnimTest.cpp345 if (rec.fDurations[i] != frameInfo.fDuration) { in DEF_TEST()
347 rec.fName, i, rec.fDurations[i], frameInfo.fDuration); in DEF_TEST()
573 uint32_t fDuration; in DEF_TEST() member
597 REPORTER_ASSERT(r, player->duration() == test.fDuration); in DEF_TEST()
DAnimatedImageTest.cpp364 REPORTER_ASSERT(r, animatedImage->currentFrameDuration() == frameInfos[0].fDuration); in DEF_TEST()
381 REPORTER_ASSERT(r, frameTime == frameInfos[i].fDuration); in DEF_TEST()
/external/skqp/src/android/
DSkAnimatedImage.cpp191 fCurrentFrameDuration = frameInfo.fDuration; in decodeNextFrame()
200 frameInfo.fDuration = INT_MAX; in decodeNextFrame()
/external/skia/modules/skottie/src/
DSkottie.cpp175 , fDuration(duration) in AnimationBuilder()
213 const auto frameRatio = 1 / (fFrameRate * fDuration); in dispatchMarkers()
455 , fDuration(duration) in Animation()
DSkottiePriv.h241 const float fDuration, variable
/external/skqp/modules/skottie/src/
DSkottie.cpp224 , fDuration(duration) in AnimationBuilder()
259 const auto frameRatio = 1 / (fFrameRate * fDuration); in dispatchMarkers()
478 , fDuration(duration) { in Animation()
DSkottiePriv.h172 const float fDuration, variable
/external/skia/tools/
Dconvert-to-nia.cpp165 int durationMillis = frameInfos[i].fDuration; in main()
/external/skqp/include/codec/
DSkCodec.h623 int fDuration; member
/external/skia/include/codec/
DSkCodec.h639 int fDuration; member

12