thorvg/src/savers/meson.build
JunsuChoi a20216045a saver GifSaver: Introduce GifSaver for animation
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
2023-12-26 18:17:38 +09:00

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('.'),
)