thorvg/meson_options.txt
JunsuChoi d03bf7a089 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-11-02 17:50:27 +09:00

54 lines
1.3 KiB
Meson

option('engines',
type: 'array',
choices: ['sw', 'gl_beta', 'wg_beta'],
value: ['sw'],
description: 'Enable Rasterizer Engine in thorvg')
option('loaders',
type: 'array',
choices: ['', 'tvg', 'svg', 'png', 'jpg', 'webp_beta', 'lottie', 'all'],
value: ['svg', 'tvg', 'lottie'],
description: 'Enable File Loaders in thorvg ("all" does not include "*_beta".)')
option('savers',
type: 'array',
choices: ['', 'tvg', 'gif', 'all'],
value: [''],
description: 'Enable File Savers in thorvg')
option('vector',
type: 'boolean',
value: false,
description: 'Enable CPU Vectorization(SIMD) in thorvg')
option('bindings',
type: 'array',
choices: ['', 'capi', 'wasm_beta'],
value: [''],
description: 'Enable API bindings')
option('tools',
type: 'array',
choices: ['', 'svg2tvg', 'svg2png', 'all'],
value: [''],
description: 'Enable building thorvg tools')
option('examples',
type: 'boolean',
value: false,
description: 'Enable building examples')
option('tests',
type: 'boolean',
value: false,
description: 'Enable building Unit Tests')
option('log',
type: 'boolean',
value: false,
description: 'Enable log message')
option('static',
type: 'boolean',
value: false,
description: 'Force to use static linking modules in thorvg')