12 Commits

Author SHA1 Message Date
subhransu mohanty
97f875751e code cleanup 2019-07-10 17:23:51 +09:00
sub.mohanty@samsung.com
0a43020127 example: use std::string api 2019-07-07 15:37:35 +09:00
sub.mohanty@samsung.com
1c3098297e rlottie/exampe: add correct implementation of basename() 2019-07-03 08:49:46 +09:00
subhransu mohanty
8b5851ca52 rlottie/example: fix typo 2019-07-01 19:38:10 +09:00
Vincent Torri
ae933c37af fix dirname() implementation of Windows in lottieloader.cpp, and fix basename() implementation by using strrchr() and not strchr() 2019-07-01 18:47:19 +09:00
Vincent Torri
6c35e4f641 lottie2gif.cpp: use _fullpath() instead of realpath() and mimic basename() 2 strchr()
Notes:
1) arguments of realpath() and _fullpath() are in reverse order
2) 2 calls of strchr() are needed because / and \ are valid path separators on Windows
2019-07-01 16:11:07 +09:00
subhransu mohanty
6963112f0f Fix windows build 2019-07-01 10:17:55 +09:00
Hermet Park
682bf0c560 lottie2gif: support set background color as an extra argument.
If lottie contents were designed in white color, gif result is invisible.

we can generate gif with a specified bg color.

lottie2gif [lottieFileName]
lottie2gif [lottieFileName] [bgColor]

example:

lottie2gif sample.json         //white bg color in default.
lottie2gif sample.json ff0000  //red bg color
2019-05-29 17:46:43 +09:00
subhransu mohanty
8667453efa buildfix: make it build with c++11 2019-05-20 13:21:25 +09:00
subhransu mohanty
89a72b6e9c example:refactor to remove naked malloc and RAII warning 2019-05-20 13:11:53 +09:00
subhransu mohanty
1b4072dd0c added missing cmake file 2019-05-09 16:01:03 +09:00
subhransu mohanty
7d04fa9355 added lottie2gif converter for both cmake and meson build 2019-05-09 14:37:43 +09:00