diff options
author | Florin Malita <fmalita@chromium.org> | 2018-06-05 16:16:57 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-06 01:41:12 +0000 |
commit | 79725d32714f863ca14aaeed0f1d1e778442a274 (patch) | |
tree | ea11d0d511b19b0a56477c3f43d80ebaa0c3e1a8 /modules/skottie/BUILD.gn | |
parent | 7d4329634107285a14c4e179f415ce31d21f6b90 (diff) |
[skottie] Add a tool for dumping encoded animation frames
Exports animation frames as a sequence of .png files:
0000000.png
0000001.png
...
Usage:
skottie_tool -i <input_json> -w <out_dir>
Other options:
--width Frame width (default: 800)
--height Frame height (default: 600)
--fps Frames per second (default: 30)
--t0 Normalized timeline start (default: 0)
--t1 Normalized timeline end (default: 1)
Change-Id: I4a79be0f823da15e6863909b6d67d38aa74bb740
Reviewed-on: https://skia-review.googlesource.com/132265
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'modules/skottie/BUILD.gn')
-rw-r--r-- | modules/skottie/BUILD.gn | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/skottie/BUILD.gn b/modules/skottie/BUILD.gn index 59223de916..26b48bc59d 100644 --- a/modules/skottie/BUILD.gn +++ b/modules/skottie/BUILD.gn @@ -58,3 +58,21 @@ source_set("fuzz") { ] } } + +source_set("tool") { + testonly = true + + configs += [ "../..:skia_private" ] + sources = [ + "src/SkottieTool.cpp", + ] + + deps = [ + "../..:flags", + "../..:skia", + ] + + public_deps = [ + ":skottie", + ] +} |