mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-21 15:32:49 +00:00

Add save() API that takes tvg::Animation as a parameter. This API uses gif.h to create each animation frame as a gif frame. Gif creation do not support threads because they must be added sequentially. Please see example/GifSaver.cpp ex) auto animation = tvg::Animation::gen(); auto picture = animation->picture(); picture->load(EXAMPLE_DIR"/walker.json"); auto saver = tvg::Saver::gen(); saver->save(std::move(animation), EXAMPLE_DIR"/test.gif"); saver->sync(); New API: Result Saver::save(std::unique_ptr<Animation> animation, const std::string& path, uint32_t quality = 100, uint32_t fps = 0); Issue: https://github.com/thorvg/thorvg/issues/1712
14 lines
309 B
Meson
14 lines
309 B
Meson
subsaver_dep = []
|
|
|
|
if all_savers or get_option('savers').contains('tvg') == true
|
|
subdir('tvg')
|
|
endif
|
|
|
|
if all_savers or get_option('savers').contains('gif') == true
|
|
subdir('gif')
|
|
endif
|
|
|
|
saver_dep = declare_dependency(
|
|
dependencies: subsaver_dep,
|
|
include_directories : include_directories('.'),
|
|
)
|