Commit Graph

590 Commits

Author SHA1 Message Date
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
0a43020127 example: use std::string api 2019-07-07 15:37:35 +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
Hermet Park
bfda7feee5 vs2019: added the preset visual studio project.
This is a compilable vs project to generate library
for the fan of visual studio.

Still, there are a lot of compile warnings,
it works to generate working dll and lib.
2019-07-05 18:08:11 +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
1d7243e2a4 rlottie/gbs: move gbs build from cmake to meson 2019-07-03 17:09:35 +09:00
subhransu mohanty
7792124c46 rlottie/meson: refactor meson buildsystem 2019-07-03 14:59:09 +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
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
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
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
Hermet Park
daa83c0819 example: changed file permission.
Keep their access mode as others' same.
2019-06-24 15:52:05 +09:00
Hermet Park
93e10f906b example: remove some example resources.
These are not guranteed as free resources.
2019-06-24 15:49:21 +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
subhransu mohanty
482ac8738e rlottie: fix typo which was causing invalid memory read 2019-06-19 09:10:12 +09:00
subhransu mohanty
5580a60813 rlottie: Fix issue with handling hidden Layer 2019-06-18 13:56:29 +09:00
subhransu mohanty
a3b8db4c44 rlottie/optimization: remove unnecessary pointer indirection to optimize memory allocation. 2019-06-17 15:34:21 +09:00