Commit Graph

455 Commits

Author SHA1 Message Date
Vincent Torri
a0f0f3c4cc define LOT_BUILD only for DLL 2019-07-12 15:47:46 +09:00
subhransu mohanty
8800738b96 lottie: Refcator internal api and remove warnings. 2019-07-12 14:54:01 +09:00
Hermet Park
62ccaaaf54 --compile warning
more get rid of data type converting warnings on windows.
2019-07-12 13:59:40 +09:00
subhransu mohanty
97a711f2ad fix clang code model warning. 2019-07-11 19:38:59 +09:00
Hermet Park
88eff7e42e keep consistency of size_t usage. 2019-07-11 17:34:14 +09:00
Hermet Park
1cba94e0d9 use proper type of round() function. 2019-07-11 11:35:11 +09:00
Hermet Park
348f211cf2 code refactorig.
To avoid implicit double type data,
Tell compiler to treat numbers as float explicitly.
2019-07-11 11:26:08 +09:00
subhransu mohanty
3b9380f114 Fixed warnings 2019-07-11 09:54:16 +09:00
subhransu mohanty
97f875751e code cleanup 2019-07-10 17:23:51 +09:00
subhransu mohanty
07ded0c52a fix missing header in windows 2019-07-10 10:41:41 +09:00
subhransu mohanty
698912f9af fix coreguideline warning from clang 2019-07-10 10:31:03 +09:00
Hermet Park
9be18fbd40 stb: ++safety.
make it safe not to leave potential dangling pointers.
2019-07-09 21:37:59 +09:00
Hermet Park
5888aa5bfa pixman: ++safety
make it safe not to leave potential dangling pointers.
2019-07-09 21:36:39 +09:00
Hermet Park
8cba9bc7b4 Revert "stb: ++safety."
unintended code. revert it.

This reverts commit cca357019d.
2019-07-09 21:36:01 +09:00
Hermet Park
cca357019d stb: ++safety.
make it safe not to leave potential dangling pointers.
2019-07-09 21:29:08 +09:00
subhransu mohanty
3094041f54 Fix clang code model warning 2019-07-09 16:14:13 +09:00
subhransu mohanty
ff38323a65 lottie/optimize: Reduce LOTLayerData size
- better packing
- move seldom use data to extra storage
- reuse layerSize for layer as well as solidlayer size.

Now Size(LOTLayerData) reduced from 262 to 128 byte.
2019-07-09 14:11:49 +09:00
sub.mohanty@samsung.com
661ec7e591 rlottie: Fix Crash when the resource is not a valid lottie resource
- when resource dosen't have valid header
- layer dosen't have a transform object
2019-07-07 13:52:46 +09:00
sub.mohanty@samsung.com
4d61e8fd01 fix warning regarding nested anonymus union 2019-07-04 21:53:58 +09:00
subhransu mohanty
36eae75a5a rlottie/meson: make rlottie buildable as a subproject 2019-07-04 19:49:00 +09:00
subhransu mohanty
165fef76e6 fix msvc build 2019-07-04 09:21:18 +09:00
subhransu mohanty
7792124c46 rlottie/meson: refactor meson buildsystem 2019-07-03 14:59:09 +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
subhransu mohanty
71538bac3a rlottie: refactor VGradient to remove unnecessary inheritance 2019-07-01 18:46:33 +09:00
subhransu mohanty
28428a1fba rlottie: fix warning regarding no return value 2019-07-01 18:21:15 +09:00
subhransu mohanty
1f8b6aec90 rlottie/meson: Move comipler options to default_options for customizable build 2019-07-01 17:44:12 +09:00
subhransu mohanty
7859ecc109 rlottie: Fix issue with LOT_EXPORT for windows 2019-07-01 16:38:31 +09:00
subhransu mohanty
6963112f0f Fix windows build 2019-07-01 10:17:55 +09:00
sub.mohanty@samsung.com
9ead247185 rlottie: fix old style cast. 2019-06-29 23:59:01 +09:00
sub.mohanty@samsung.com
46f43a28ae rlottie: Fix cmake build 2019-06-29 23:26:36 +09:00
sub.mohanty@samsung.com
11a11763dc rlottie: fix windows build 2019-06-29 20:29:02 +09:00
sub.mohanty@samsung.com
e99767bb90 rlottie: refactor meson build file 2019-06-29 20:19:39 +09:00
sub.mohanty@samsung.com
5b79983f0a rlottie: make dependancy to dl library optional for windows build 2019-06-29 17:48:55 +09:00
Vincent Torri
18f8caa199 Iamage loader: include windows.h and not Windows.h
Indeed, when cross-compiling on Linux, which has a case
sensitive file system, and as minwg-w64 provides windows.h,
we must use lower case name for header files.
2019-06-29 17:44:34 +09:00
sub.mohanty@samsung.com
7219aeca64 rlottie: Get size data from the model 2019-06-27 21:50:31 +09:00
JunsuChoi
abff77e985 Fix typo that incorrect matrix information. 2019-06-26 20:45:46 +09:00
subhransu mohanty
c77c7b320f rlottie/vector: backport optimization from freetype 2019-06-26 15:22:04 +09:00
subhransu mohanty
75f9d3ff29 rlottie: Update DirtyMatrix only when needed. 2019-06-26 11:19:58 +09:00
subhransu mohanty
88593df18d rlottie: use correct default opacity value. 2019-06-25 19:16:15 +09:00
Hermet Park
7339baf3e5 rapidjson: filterate BOM encoding mark out as it's necessary.
Previously, json file containing BOM(Byte Order Mark),
it wouldn't recognize it as the normal data,

Our StringStream could filter out BOM if it's necessary.

See: https://en.wikipedia.org/wiki/Byte_order_mark
2019-06-25 16:26:51 +09:00
subhransu mohanty
a5b6a23bd5 rlottie/model: Refactor LOTTransformData object to optimize object size 2019-06-25 10:17:00 +09:00
subhransu mohanty
b2ded242de rlottie: ran clang-format with the latest code 2019-06-24 17:04:09 +09:00
subhransu mohanty
9c1cba05a6 rlottie: Fix build break 2019-06-24 15:56:38 +09:00
subhransu mohanty
49282955ac rlottie: Fix clang-tidy warning 2019-06-24 14:52:57 +09:00
subhransu mohanty
1da13ccaab rlottie: Fix issue with Line join(Miter) by using the implementation similar to what PDF uses.
Freetype has 2 types of miter join SW_FT_STROKER_LINEJOIN_MITER_VARIABLE and SW_FT_STROKER_LINEJOIN_MITER_FIXED.
SW_FT_STROKER_LINEJOIN_MITER_FIXED is similar to what PostScrip and PDF generates.
SW_FT_STROKER_LINEJOIN_MITER_VARIABLE is similar to what XPS generates.
2019-06-24 14:02:11 +09:00
sub.mohanty@samsung.com
235fe04025 rlottie: Add LOTTIE_CACHE_SUPPORT config variable to enable/disable lottie model cache strategy 2019-06-24 09:07:21 +09:00
subhransu mohanty
c86f17b94d rlottie: disable copy and move operation for layeritem and contentitem 2019-06-21 11:38:08 +09:00
Hermet Park
3f404a0218 capi: expose layer item name for utiliziing by demand. 2019-06-20 17:15:21 +09:00
subhransu mohanty
582e05af30 rlottie: Fix all cppcheck warnings. 2019-06-20 10:00:46 +09:00
Subhransu Mohanty
7dbb3845d9 rlottie: Fix a issue when shape animation data are not same size 2019-06-19 18:08:27 +09:00