Commit Graph

644 Commits

Author SHA1 Message Date
subhransu mohanty
c6790a8043 optimization: read content of the file directly to std::string to avoid creating temporary memory.
As json format is one big string we can directly read the content of file with one call to getline()
without going through generic interface to first read into  stringstream and then create again a temorary
string from the stringstream buffer.
2019-08-01 15:54:39 +09:00
subhransu mohanty
2034f0ee0c optimization: move rare propery field to extra structure to minimize memory footprint of LOTTransformData.
- only layer transform object can have position property as separate X and Y
  by keeping them in the main structure incurs an overhead of 32 bytes to the user of the structure.
  as well as 8 byte on the book keeping (mSeparate) by moving those rarely used field along with 3D
  data to ExtraData we could trim the object size by 40bytes.

- with this patch now the object size is reduced from 128 bytes to 88bytes.
2019-08-01 11:08:57 +09:00
subhransu mohanty
e7f0790e06 vdasher: refactor dash property parsing and handling.
- reduce Stroke and GStroke model object size by keeping a vector instead of fixed array property.
- keep a vector instead of fixed size array in model.
- keep a vector instead of fix size array in shadow tree.
- refactor getDashInfo() to DashProperty class and reuse by both Stroke and GradientStroke model object.
- enable move constructor in LOTAnimatable class to support creation vector of objects.
2019-08-01 10:19:53 +09:00
subhransu mohanty
52bec8bafd vdasher: fixed regression from last commit
this was only comparing the 1st dashinfo because of missing array subscript operator.
2019-08-01 09:29:15 +09:00
John Preston
57afe9e489 Fix crash in a bad file reading. 2019-07-31 08:02:01 +09:00
John Preston
e58a768284 Fix linking with static Qt. 2019-07-30 21:56:02 +09:00
Hermet Park
af81076105 lottieparser: Stop parsing if the media type is unlikely to lottie.
Users may need to try a load data in a brutal-force way,
if they have no idea of input source.

This case, they have no choices but try using all methods to find out
which loader successfully loaded among various media loaders.

This is a common scenario for compatible media support.
2019-07-30 17:31:33 +09:00
subhransu mohanty
fc548c1bbf Dasher: Fixed crash when dash array contains ZERO length segments or ZERO gap segments 2019-07-30 09:46:35 +09:00
Nicholas Guriev
a1e46310f6 Configure CMake to allow build static rlottie lib 2019-07-27 19:53:09 +09:00
Nicholas Guriev
d07040d498 Do not override optimization level 2019-07-25 15:38:50 +09:00
Hermet Park
997c62e458 updated AUTHORS 2019-07-24 16:05:39 +09:00
subhransu mohanty
f95f60f8ed rlottie/cache: Added cache configuration support for indivisual resource.
For configuring Model Cache at runtime used configureModelCacheSize().
For configuring Model Cache at build time use cache flag to enable or disable.
2019-07-23 21:25:51 +09:00
subhransu mohanty
5b4eb59cd8 rlottie/cache: Added a free function configureModelCacheSize() for runtime configuration of Model Cache Policy 2019-07-23 21:25:51 +09:00
subhransu mohanty
c15a86985a lottie/cache: make lottie model cache thread safe 2019-07-23 21:25:51 +09:00
Nicholas Guriev
24346d0955 Run tests with CMake on travis
* Increase minimal Cmake version to bypass a crash in GoogleTest module.
2019-07-21 23:35:56 +09:00
Nicholas Guriev
1cd793af3b Add tests with CMake 2019-07-21 23:35:56 +09:00
sub.mohanty@samsung.com
4107e2dc8a test: Added rect test case to vector test suite 2019-07-21 15:38:55 +09:00
sub.mohanty@samsung.com
7d3d41978a vector: changed conversion constructor to conversion operator 2019-07-21 15:28:39 +09:00
sub.mohanty@samsung.com
577dbd51b7 CI: update travis CI to use docker image and enable running test suits. 2019-07-21 13:53:53 +09:00
sub.mohanty@samsung.com
499643b821 vector: Fix regression in VRecF for uniform initialization constructor
Fixes vector test suite.
2019-07-21 13:25:30 +09:00
subhransu mohanty
cebc6c1281 meson: move generation of cmake config file to cmake option flag 2019-07-19 15:26:28 +09:00
Shinwoo Kim
2fe86683a6 build pixman arm neon only for arm cpu family(not for aarch64) 2019-07-19 10:04:47 +09:00
subhransu mohanty
2fccc0e11d meson: Add support for building rlottie as a static library 2019-07-19 09:07:54 +09:00
subhransu mohanty
31e26f38b3 rlottie: Add missing parameter for non thread render scheduler 2019-07-18 16:33:07 +09:00
subhransu mohanty
163db38979 meson: Fix regression in library size
As all the meson variables are in global scope the compiler_flags
in stb module reseted all the optimization flag set in the src directory
which increased the library size by 100KB.
2019-07-18 10:10:03 +09:00
subhransu mohanty
eb2ed2ca90 rlottie: Fix warning on clnag-8 2019-07-18 09:23:20 +09:00
subhransu mohanty
d26c1a5d90 meson: Add a summary at the end of configuration 2019-07-17 13:12:59 +09:00
subhransu mohanty
715c8450bf rlottie/api: Added support for rendering without keeping aspect ratio 2019-07-15 17:12:32 +09:00
subhransu mohanty
be24fa00c5 vector: refactor bitmap class 2019-07-12 15:57:59 +09:00
subhransu mohanty
a7e1cd39c8 build fix 2019-07-12 15:51:58 +09:00
Vincent Torri
a0f0f3c4cc define LOT_BUILD only for DLL 2019-07-12 15:47:46 +09:00
subhransu mohanty
15e715103d meson: Don't generate cmake config files on for windows platform 2019-07-12 15:16:56 +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
87a6eeed0c update ignore files. 2019-07-11 17:48:35 +09:00
Hermet Park
9bb69e9316 vs2019: disable more build warnings. 2019-07-11 17:48:08 +09:00
Hermet Park
88eff7e42e keep consistency of size_t usage. 2019-07-11 17:34:14 +09:00
Hermet Park
bc84259347 replace integers to size_t data type.
these data source are size_t,
keep the consistency to avoid type converting.
2019-07-11 17:12:23 +09:00
subhransu mohanty
03eb0d21d5 meson: fix issue when cmake is not installed 2019-07-11 12:24:56 +09:00
subhransu mohanty
4e15df64a1 meson: generate cmake config files
cmake config files needed by cmake's find_package to able to find rlottie.
2019-07-11 12:08:18 +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
Hermet Park
9a2698235a vs2019: move disable warning into solution configuration. 2019-07-11 11:12:30 +09:00
subhransu mohanty
3b9380f114 Fixed warnings 2019-07-11 09:54:16 +09:00
Hermet Park
23440d4699 example: remove unused compile warnings in efl_animview. 2019-07-10 21:22:21 +09:00
subhransu mohanty
c595738d96 move vectorTest to test from example 2019-07-10 19:32:45 +09:00
Hermet Park
826e2e1849 windows: disable a warning that class 'type' needs to have dll-interface to be used by clients of class 'type2' 2019-07-10 18:22:01 +09:00
Subhransu
69559642eb update with windows build badge 2019-07-10 18:04:15 +09:00
subhransu mohanty
97f875751e code cleanup 2019-07-10 17:23:51 +09:00