Commit Graph

255 Commits

Author SHA1 Message Date
subhransu mohanty
8fa45756ab lottie/parser: construct interpolator from correct argument.
This is the most annoying bug because of passing argument in wrong order to
the interpolaor constructor.

Change-Id: Idfc307186bc1dd7d6d3849d29985c3e6f493d9d0
2018-09-12 11:34:36 +09:00
subhransu mohanty
6377407e38 lottie: update the loadfromData() api signature.
Change-Id: I801f39d06ce67d30be37dc14733ad99ae3a54da2
2018-09-12 10:09:44 +09:00
subhransu mohanty
ad517377ce lottie: take a copy of the data before parsing.
Change-Id: Ic25eea21093d8b533462ffd4c46e86d87f7c6f35
2018-09-11 16:04:40 +09:00
subhransu mohanty
f4f2382964 lottie/optimization: efficient member packing in the VDrawable object.
Change-Id: I545f9a33d1cae329bc9ee140c213e07697b8cccf
2018-09-11 13:18:04 +09:00
Hermet Park
10e6788bb2 capi: export one missing api.
Change-Id: Iba8d035febdcbbee852aa9d946ae3202ae5433ad
2018-09-10 20:57:28 +09:00
subhransu mohanty
b8df19759f lottie/test: added new unit test cases for library.
Change-Id: I1c9d61d98a1028601a36c4e6118b7109d88b2ace
2018-09-10 15:17:42 +09:00
sub.mohanty@samsung.com
fa645a5227 lottie/vector: fine tune path api.
Change-Id: Ic40da16809e5e0b32f5d23cc8b06636d37072037
2018-09-10 04:13:21 +00:00
sub.mohanty@samsung.com
446a18a1e5 lottie/test: refactor unit test suite for lottie library
Change-Id: I25097f0c3c637e020c51f9f679082809d0cbdaad
2018-09-09 12:05:49 +09:00
sub.mohanty@samsung.com
9a50268e2c lottie: rename all isEmpty() api to empty() for consistancy.
Change-Id: Id3dddbd920ff00c7beafe0abd17f6da73442195b
2018-09-09 11:57:30 +09:00
sub.mohanty@samsung.com
f14e50305a lottie/vector: refactor rect class.
Change-Id: I553160f74ad06b002cf2d17d1bf55615e71f9853
2018-09-09 11:52:21 +09:00
Hermet Park
1a776b4f61 binding: fix compile error.
Change-Id: I3c5b0390f39ca885529475330a73f9af7dee29d0
2018-09-07 20:33:33 +09:00
Hermet Park
5a64553894 binding: fix invalid access of LOTNode data.
double-pointer is not an array of pointer.
there could be proper code for fixing this.

Change-Id: Ia79463fa358d485b98cf2fc3cf52d080dd67a574
2018-09-07 20:30:05 +09:00
Hermet Park
2d622094f9 common: changed name prefix.
Change-Id: I88c297713e3a899edf2eed667aafae357ea376f4
2018-09-07 19:42:30 +09:00
Hermet Park
97dc0bf2d5 capi: changed file name.
Change-Id: Ic1c6b550751041f856814d24b668ab9f97606170
2018-09-07 19:40:02 +09:00
subhransu mohanty
61111eb95e lottie: added intial documentation in the animation interface.
Change-Id: I92d802aa44492cdc83d15c8775dd8830f2cffe9d
2018-09-07 18:21:00 +09:00
Hermet Park
eb9e2cd378 fix build break by 0f5edac6d1
and packaging it properly.

Change-Id: Ib1216034d63beb809fdd652542980e61494e1e91
2018-09-07 15:08:11 +09:00
subhransu mohanty
0f5edac6d1 lottie: refactor lottie interface
1. rename namespace player--> animation both cpp and c interface
2. added factory function to create animation object.
3. added render api to c interface.

Change-Id: I31c99a66678b20a0c743c564d399172f4182b0d1
2018-09-07 14:23:34 +09:00
Hermet Park
860ffe847b add AUTHORS
Change-Id: I966f655a2744162d85562594a64a1547d297f278
2018-09-07 01:26:11 +00:00
subhransu mohanty
3611e1cc51 lottie: refactor model class to remove visitor
now visitor class will use the lotnode->type to visit the tree
and all the model class don't have to pay the virtual pointer overhead.

Change-Id: Ie98d5e369c9f30c94222898849a6da5d0b82938c
2018-09-06 11:35:10 +00:00
subhransu mohanty
acfadf70a4 lottie: keep the content in back-tofron order in lottie scenegraph.
Change-Id: I15090782105c5e30d38e4d2df896d430d6f8cc19
2018-09-06 12:16:59 +09:00
subhransu mohanty
3866241340 lottie/optimization: keep the layers in back-to-front order in scenegraph for cache coherency
Change-Id: I31678bc3f4470287a4ebebc8ab88cbd0a38d2f15
2018-09-06 11:17:02 +09:00
Hermet Park
7ac6a6d6ee lottieplayer: ++ lotplayer_set_data()
Change-Id: I8f38f6473213aa2d9904aac0dd68aaa207b1e076
2018-09-06 01:55:37 +00:00
Hermet Park
da0613c3ae packaging: include c api header.
Change-Id: I2b495d978474f7d5e3447fc23dd4126303beaf1e
2018-09-06 01:54:39 +00:00
subhransu mohanty
81b77d5f3a lottie/vector: optimize VMatrix size requirement.
Change-Id: I64efd97336904669d60c6ce99f83d5737f83d9b7
2018-09-05 10:56:29 +00:00
subhransu mohanty
de902032de lottie: optimize VColor structure.
uchar is enough to store 0-255 possible color value.

Change-Id: Iaf6a24dd99158483723e98a930f12478770fac58
2018-09-05 10:56:20 +00:00
subhransu mohanty
6f3dfc1c2d lottie/render: add neon path srcOver compostion mode for solid src.
Change-Id: I711dc309b02911de1155b0e788c6e79b6630fb7a
2018-09-05 19:37:36 +09:00
subhransu mohanty
5eecb9ad36 lottie/example: use loadfromData() api in demo app.
Change-Id: I8e5ce194f1795ca30ac8aad319ba25706a6023cf
2018-09-04 19:10:32 +09:00
subhransu mohanty
dbf479dbd5 lottie: added new loadfromdata() api in lottie player.
Change-Id: Iadc6e57953190bdb860415cb3a4d4d02a6ac3cf6
2018-09-04 18:41:47 +09:00
subhransu mohanty
6f5efb5eb3 lottie: fixed warning.
Change-Id: I5b4bf56ed2ad38d0d12a031791e23b24083ff573
2018-09-04 18:15:09 +09:00
subhransu mohanty
8288c8cf83 lottie: fixed inefficiency using clang-tidy performance option.
Change-Id: I7fc33842e177091a596f980b87759a1cb90ed79e
2018-09-03 19:10:44 +09:00
subhransu mohanty
234a92d533 lottie: modernize using clang-tidy 'modernize-use-default-member-init'
Change-Id: I6ee31ae694d9f9cfb6cabbe160a980cd5277d1a7
2018-09-03 18:50:54 +09:00
subhransu mohanty
59778f7c2d lottie: moderize using clang-tidy 'modernize-return-braced-init-list'
Change-Id: I4186243915c8bda61aade79e55f87e286801d2da
2018-09-03 18:36:19 +09:00
subhransu mohanty
886b17756f lottie: avoid extra copy by using std::move
Change-Id: Iaa61ee36a87e26b2c26676cae4b7cf2e94b595a0
2018-09-03 18:27:12 +09:00
subhransu mohanty
d19359f8cb lottie: modernize using clang-tidy "modernize-use-equals-default"
Change-Id: Ic09bf5651333f63f2603c8e3d9dd8afd4b73c7aa
2018-09-03 18:10:45 +09:00
subhransu mohanty
c7c391453e lottie: mordernize using clang-tidy "modernize-use-override"
Change-Id: Ice8612f9ceb3b99ebeeb6b618a54e9298b4cb66f
2018-09-03 17:20:04 +09:00
subhransu mohanty
6f2d9ddf1a lottie/render: hide the layer when matte layer is hidden.
in AE matte layers visibility affects the layer below.

Change-Id: I0d1c6e19f78bc3d25ac6ae8a56ec5371a925e300
2018-09-03 07:47:59 +00:00
Youngbok Shin
8bdea992bc lottie/vector: fix build failure for non-arm devices
Change-Id: Id03173880629859df24e8c195a5060d8494f8d88
2018-09-03 16:43:54 +09:00
subhransu mohanty
b9b13e5923 lottie/render: don't try to render invisible layer.
Change-Id: I2544b6a04d07eaf155fbddc405952e739b14eaf1
2018-09-03 15:49:10 +09:00
Hermet Park
d511c6cc50 lottieplayer binding: ++apis bindings.
Change-Id: I6becf969ae71d1b19399cc44ce1b38e92f3920d3
2018-09-03 06:28:07 +00:00
Hermet Park
46ec17191e lottieplayer: keep API coding convention.
Not use "get" prefix so far.

Change-Id: Iabc2852cd78d5ac4f4fa29f8b3b7195eafe1d804
2018-09-03 06:25:27 +00:00
subhransu mohanty
d3be153e82 lottie: fixed cmake build issue.
Change-Id: I48591bd78dd173d7f148cc2dcb3c31dd8cd9d1a2
2018-09-03 15:03:52 +09:00
subhransu mohanty
84905d7830 lottie/parser: wrap the trim offset value before normalize.
Change-Id: I5bce3b840cc54d626ea2397d35c4a7ef90e7be7e
2018-09-03 12:31:16 +09:00
subhransu mohanty
288bd33029 lottie/example: sort the file list before showing it in list view.
Change-Id: I3dd2c2d332cfc13265694e1ac6ee2a4bae6e1afd
2018-09-03 12:26:50 +09:00
Jaeun Choi
5b53b71f4e lottie/example: enhanced lottieviewer example
Change-Id: I0eb2a8c528376397190c75b084e9510c3698c034
2018-08-31 17:02:23 +09:00
subhransu mohanty
14d9f8ebf1 lottie/vector: add a local arena allocator.
Change-Id: I7f76ab73d457ee9f4e9b5e35c1303c63c14efcea
2018-08-31 14:37:33 +09:00
subhransu mohanty
81a1c0bbf7 lottie/resource: added new resource going to be used by mobile/vd team.
Change-Id: Ia25247bda7349c34df14aeeab24f1ec42e864d8c
2018-08-30 14:16:18 +09:00
subhransu mohanty
cb03e6e947 lottie: fixed proper handling of offset property in trim object.
The offset property is in degree and wraps after 360 degree to 0.
so normalize the offset property to [0 - 1] and pass it to pathmesure object.

Change-Id: Ifd56f0926c1971dd5dd549787dcf5e5c35ed875a
2018-08-30 14:00:47 +09:00
subhransu mohanty
f18d33b9cb lottie: added new lottie resource file.
Change-Id: I487b65a371b2aeed80cda6211ab55ea525d37c9a
2018-08-29 14:53:25 +09:00
subhransu mohanty
adef38c0e7 lottie/vector: move line related api to its own class .
Change-Id: Ib9072653cf534e558eedd88242535bc9a8e028fe
2018-08-29 11:46:49 +09:00
subhransu mohanty
c87e393308 lottie/vector: refactor VPathMesure to handle offset .
Change-Id: Ic84c63376c52167ee2ae88d363bf22aadf4fbca9
2018-08-28 19:26:30 +09:00