Home
last modified time | relevance | path

Searched refs:animation (Results 1 - 20 of 20) sorted by relevance

/third_party/skia/modules/androidkit/src/
H A DSkottieAnimation.cpp21 auto animation = Animation::Builder().make(cstr, strlen(cstr)); in Animation_Create() local
23 return reinterpret_cast<jlong>(animation.release()); in Animation_Create()
31 const auto* animation = reinterpret_cast<const Animation*>(native_animation); in Animation_GetDuration() local
32 return animation ? animation->duration() : 0; in Animation_GetDuration()
36 const auto* animation = reinterpret_cast<const Animation*>(native_animation); in Animation_GetFrameCnt() local
37 return animation ? animation->outPoint() : 0; in Animation_GetFrameCnt()
41 const auto* animation = reinterpret_cast<const Animation*>(native_animation); in Animation_GetWidth() local
42 return animation in Animation_GetWidth()
46 const auto* animation = reinterpret_cast<const Animation*>(native_animation); Animation_GetHeight() local
63 const auto* animation = reinterpret_cast<const Animation*>(native_animation); Animation_Render() local
[all...]
/third_party/skia/experimental/docs/
H A DanimationCommon.js37 var animation = animationState.timeline[index];
38 if (animation.time > animationState.time) {
42 if (animation.time + animation.duration < animationState.time) {
43 if (animation.finalized) {
46 animation.finalized = true;
49 var actions = animation.actions;
156 if (!('start' in action) || action.start < animation.time) {
170 action.start = animation.time;
175 var value = Math.min(1, (animationState.time - animation
[all...]
/third_party/skia/demos.skia.org/demos/web_worker/
H A Dshared.js5 const animation = CanvasKit.MakeAnimation(jsonStr);
6 const duration = animation.duration() * 1000;
14 animation.seek(seek);
15 animation.render(skcanvas, [0, 0, 500, 500]);
/third_party/skia/tools/
H A Dskottie2movie.cpp24 static DEFINE_string2(input, i, "", "skottie animation to render");
67 auto animation = skottie::Animation::Builder() in main() local
70 if (!animation) { in main()
75 SkISize dim = animation->size().toRound(); in main()
76 double duration = animation->duration(); in main()
78 double fps_scale = animation->fps() / fps; in main()
135 produce_frame(surf.get(), animation.get(), frame); in main()
/third_party/skia/platform_tools/android/apps/skottie/skottielib/src/main/java/org/skia/skottie/
H A DSkottieView.java10 import android.animation.Animator;
50 * Backs the animation surface with a SurfaceView instead, requires background color
138 SkottieAnimation animation; in setSourceHelper()
139 // if there is already an animation, save config and finalize it so as to not confuse GL in setSourceHelper()
145 Log.e(LOG_TAG, "existing animation couldn't finalize before setting new src"); in setSourceHelper()
149 animation = SkottieRunner.getInstance() in setSourceHelper()
152 animation = SkottieRunner.getInstance() in setSourceHelper()
155 // restore config settings from previous animation if needed in setSourceHelper()
157 animation.setBackingViewConfig(config); in setSourceHelper()
158 animation in setSourceHelper()
[all...]
H A DSkottieRunner.java62 * Create a new animation by feeding data from "is" and replaying in a TextureView.
70 * Create a new animation by feeding data from "is" and replaying in a SurfaceTexture.
79 * Create a new animation by feeding data from "is" and replaying in a SurfaceView.
90 public void updateAnimationSurface(Animatable animation, SurfaceTexture surfaceTexture, in updateAnimationSurface() argument
94 ((SkottieAnimation) animation).setSurfaceTexture(surfaceTexture); in updateAnimationSurface()
95 ((SkottieAnimation) animation).updateSurface(width, height); in updateAnimationSurface()
H A DSkottieAnimation.java3 import android.animation.Animator;
4 import android.animation.TimeInterpolator;
45 private long mDuration; // duration in ms of the animation
46 private float mProgress; // animation progress in the range of 0.0f to 1.0f
340 // animation. in drawFrame()
347 // If animation stopped, release EGL surface. in drawFrame()
365 // If failed to create a surface, log an error and stop the animation in checkSurface()
378 // Advance animation. in doFrame()
/third_party/skia/modules/skottie/fuzz/
H A DFuzzSkottieJSON.cpp16 auto animation = skottie::Animation::Make(&stream); in FuzzSkottieJSON() local
17 if (!animation) { in FuzzSkottieJSON()
20 animation->seek(0.1337f); // A "nothing up my sleeve" number in FuzzSkottieJSON()
/third_party/skia/modules/skottie/src/
H A DSkottieTest.cpp37 auto animation = Animation::Make(&stream); in DEF_TEST() local
254 auto animation = skottie::Animation::Builder() in DEF_TEST() local
259 REPORTER_ASSERT(reporter, animation); in DEF_TEST()
387 auto animation = skottie::Animation::Builder() in DEF_TEST() local
391 REPORTER_ASSERT(reporter, animation); in DEF_TEST()
392 REPORTER_ASSERT(reporter, animation->duration() == 10); in DEF_TEST()
393 REPORTER_ASSERT(reporter, animation->inPoint() == 0.0); in DEF_TEST()
394 REPORTER_ASSERT(reporter, animation->outPoint() == 100.0); in DEF_TEST()
788 auto animation = in DEF_TEST()
794 REPORTER_ASSERT(reporter, animation); in DEF_TEST()
825 auto animation = make_animation(single_asset, multi_asset, false); DEF_TEST() local
847 auto animation = make_animation(single_asset, multi_asset, true); DEF_TEST() local
[all...]
/third_party/skia/tools/fm/
H A Dfm.cpp207 static void init(Source* source, sk_sp<skottie::Animation> animation) { in init() argument
209 source->draw = [animation](SkCanvas* canvas) { in init()
226 canvas->concat(SkMatrix::RectToRect(SkRect::MakeSize(animation->size()), dst, in init()
229 animation->seek(t); in init()
230 animation->render(canvas); in init()
476 if (sk_sp<skottie::Animation> animation = skottie::Animation::Builder() in main()
479 init(source, animation); in main()
/third_party/skia/bench/
H A DSKPAnimationBench.cpp13 sk_sp<Animation> animation, bool doLooping) in SKPAnimationBench()
15 , fAnimation(std::move(animation)) { in SKPAnimationBench()
12 SKPAnimationBench(const char* name, const SkPicture* pic, const SkIRect& clip, sk_sp<Animation> animation, bool doLooping) SKPAnimationBench() argument
H A Dnanobench.cpp844 // Now loop over each skp again if we have an animation in rawNext()
856 sk_sp<SKPAnimationBench::Animation> animation = in rawNext() variable
858 return new SKPAnimationBench(name.c_str(), pic.get(), fClip, std::move(animation), in rawNext()
/third_party/skia/modules/canvaskit/
H A Dskottie_bindings.cpp161 auto animation = skottie::Animation::Builder() in Make() local
169 return animation in Make()
170 ? sk_sp<ManagedAnimation>(new ManagedAnimation(std::move(animation), std::move(mgr))) in Make()
272 ManagedAnimation(sk_sp<skottie::Animation> animation, in ManagedAnimation() argument
274 : fAnimation(std::move(animation)) in ManagedAnimation()
/third_party/skia/experimental/skottiekit/
H A Dskottiekit_bindings.cpp111 auto animation = skottie::Animation::Builder() in Make() local
117 return animation in Make()
118 ? sk_sp<ManagedAnimation>(new ManagedAnimation(std::move(animation), std::move(mgr))) in Make()
192 ManagedAnimation(sk_sp<skottie::Animation> animation, in ManagedAnimation() argument
194 : fAnimation(std::move(animation)) in ManagedAnimation()
/third_party/node/test/fixtures/wpt/dom/events/resources/
H A Dprefixed-animation-event-tests.js3 // Runs a set of tests for a given prefixed/unprefixed animation event (e.g.
11 // animationCssStyle: '1ms', <-- must NOT include animation name or
40 div.style.animation = `anim ${animationCssStyle}`;
68 // The below tests primarily test the interactions of prefixed animation
143 }, `${prefixedHandler} event handler should trigger for an animation`);
221 }, `${prefixedType} event listener should trigger for an animation`);
351 // triggered and one more animation frame has happened. Automatically chooses
/third_party/node/test/fixtures/wpt/resources/
H A DSVGAnimationTestCase-testharness.js36 // Inspired by Layoutests/animations/animation-test-helpers.js
41 var animation = rootSVGElement.ownerDocument.getElementById(animationId);
43 // If we want to sample the animation end, add a small delta, to reliable point past the end of the animation.
46 // The sample time is relative to the start time of the animation, take that into account.
50 // This is a dumb hack, some of the old tests sampled before the animation start, this
51 // isn't technically part of the animation tests and is "impossible" to translate since
95 // If eg. an animation is running with begin="0s", and
96 // we want to sample the first time, before the animation
98 // onclick event, as the animation woul
[all...]
/third_party/skia/src/codec/
H A DSkHeifCodec.h72 SkHeifCodec(SkEncodedInfo&&, HeifDecoder*, SkEncodedOrigin, bool animation,
/third_party/skia/third_party/externals/libwebp/examples/
H A Dwebpinfo.c1000 const int animation = !!(webp_info->feature_flags_ & ANIMATION_FLAG); in Validate() local
1033 // Incomplete animation frame. in Validate()
1035 if (!animation && webp_info->num_frames_ > 1) { in Validate()
1036 LOG_ERROR("More than 1 frame detected in non-animation file."); in Validate()
1039 if (animation && (!webp_info->chunk_counts_[CHUNK_ANIM] || in Validate()
1041 LOG_ERROR("No ANIM/ANMF chunk detected in animation file."); in Validate()
/third_party/skia/dm/
H A DDMSrcSink.cpp1205 auto animation = skottie::Animation::Builder(flags) in draw() local
1209 if (!animation) { in draw()
1234 canvas->concat(SkMatrix::RectToRect(SkRect::MakeSize(animation->size()), dest, in draw()
1236 animation->seek(t); in draw()
1237 animation->render(canvas); in draw()
1288 // TODO: tiled frames when we add animation support in draw()
/third_party/ffmpeg/tests/fate/
H A Dfilter-video.mak382 fate-filter-fps-cfr: CMD = framecrc -auto_conversion_filters -i $(TARGET_SAMPLES)/qtrle/apple-animation-variable-fps-bug.mov -r 30 -vsync cfr -pix_fmt yuv420p
383 fate-filter-fps-r: CMD = framecrc -auto_conversion_filters -i $(TARGET_SAMPLES)/qtrle/apple-animation-variable-fps-bug.mov -r 30 -vf fps -pix_fmt yuv420p
384 fate-filter-fps: CMD = framecrc -auto_conversion_filters -i $(TARGET_SAMPLES)/qtrle/apple-animation-variable-fps-bug.mov -vf fps=30 -pix_fmt yuv420p

Completed in 18 milliseconds