Lines Matching refs:anim
41 bool handleFrame(const sk_sp<skottie::Animation>& anim, size_t idx) const { in handleFrame() argument
51 return this->saveFrame(anim, &stream); in handleFrame()
57 virtual bool saveFrame(const sk_sp<skottie::Animation>& anim, SkFILEWStream*) const = 0;
73 bool saveFrame(const sk_sp<skottie::Animation>& anim, SkFILEWStream* stream) const override { in saveFrame() argument
79 canvas->concat(SkMatrix::MakeRectToRect(SkRect::MakeSize(anim->size()), in saveFrame()
84 anim->render(canvas); in saveFrame()
105 bool saveFrame(const sk_sp<skottie::Animation>& anim, SkFILEWStream* stream) const override { in saveFrame() argument
109 canvas->concat(SkMatrix::MakeRectToRect(SkRect::MakeSize(anim->size()), in saveFrame()
112 anim->render(canvas); in saveFrame()
189 auto anim = skottie::Animation::Builder() in main() local
194 if (!anim) { in main()
204 advance = 1 / std::min(anim->duration() * FLAGS_fps, kMaxFrames); in main()
208 anim->seek(t); in main()
209 sink->handleFrame(anim, frame_index++); in main()