57 Commits

Author SHA1 Message Date
subhransu mohanty
323b07c37f rlottie: added support of lambda expression in setValue. 2019-05-14 08:44:49 +09:00
subhransu mohanty
9e56f12850 rlottie/header: fixed issue with public header dependency of c++14
c++11 only supports static constexpr function with one return statement.
so our maptype() function is valid in c++14 but not on c++11.
to work around used the explicit class instantiation to map property type to value type.
2019-04-30 17:07:26 +09:00
subhransu mohanty
409d775f41 rlottie: added sync version of render function in capi 2019-04-25 10:56:42 +09:00
subhransu mohanty
90affa8bd1 rlottie: Added dynamic property change feature
The keypath can handle globe(**) and wildchar(*) reg ex.
Currently only support fillcolor , fill opacity , stroke color , stroke opacity and stroke width property.
2019-04-24 13:40:03 +09:00
Hermet Park
5e2192c0f3 capi: code rectoring
keep code consistency of mask with matte.
2019-03-27 15:20:16 +09:00
subhransu mohanty
a708ff3721 rlottie: fix typo. 2019-03-21 15:34:15 +09:00
subhransu mohanty
2b9991540c [rlottie]: Added layers() api to return the layer info list of the composition. 2019-03-19 13:03:31 +09:00
Hermet Park
75affa0da7 capi: update doc.
add missing parameter description.
2019-03-12 13:50:23 +09:00
subhransu mohanty
7f5d496a96 [rlottie] Added setDrawRegion api to Surface for supporting subsurface rendering. 2019-03-07 14:33:33 +09:00
subhransu mohanty
b7d488671a rlottie: now loadFromData() api takes resourcePath for loading external resource 2019-03-05 13:05:16 +09:00
JunsuChoi
576198f5db lottieitem: Add alpha property in LOTMask
Change-Id: I929839c5a0a1677a530b5197e45ec230ea145dd1
2019-02-08 16:05:13 +09:00
subhransu mohanty
a2614da5c6 lottie: final changes to rename from lottie-player to rlottie
Change-Id: Ie2ed4d7c3fb08abd3f8fe484021d478e90bc9d91
2019-01-24 13:20:54 +09:00
Hermet Park
9cbbf28d25 packaging: rename lottie-player to rlottie.
This is a trial-error test that could be accepted by server test.

Change-Id: Ib7ccc4f5d5282df9d119b1efb1de51ffb3cbb0b9
2019-01-23 11:07:10 +00:00
Hermet Park
8056153937 lottie-player: remove old capi headers.
efl now looks at rlottie headers.

Change-Id: I6b2acfa5423c5ddceafdc85b64d551d2417ad565
2019-01-23 17:15:20 +09:00
Hermet Park
6e8aec4553 Revert "lottie: rename lottie-player to rlottie for cmake and gbs build, update namespace to rlottie."
This reverts commit 569f16a7e999ad697008900948192b13c0e27f4f.
2019-01-23 14:46:34 +09:00
subhransu mohanty
569f16a7e9 lottie: rename lottie-player to rlottie for cmake and gbs build, update namespace to rlottie.
Change-Id: I51f85201c06be4cb42c2036a0162b9124149e781
2019-01-22 16:39:13 +09:00
sub.mohanty@samsung.com
aebcc6ab49 lottie: rename public headers to rlottie namesapce.
Change-Id: Ib8d3df2600eef84927c95eb6794de9f9074d6253
2019-01-21 13:34:48 +09:00
subhransu mohanty
15429d2a71 lottie/capi: updated cliper info in layernode.
Change-Id: I338dc65c6ccf2a1952f2c457ba9168faa242e08c
2019-01-03 17:00:15 +09:00
Hermet Park
0165427d9b updated licenses info.
Change-Id: Ib157ad848a98c34e6e7d67c4672b36447966addc
2018-12-28 18:15:55 +09:00
Hermet Park
0a325b079e Put samsung copyright header to all our own source code.
Change-Id: I3cebcfef827425d16092ee7a26c39f7733572eb7
2018-12-26 19:18:29 +09:00
subhransu mohanty
b01514d76a lottie: Fixed SVACE warning for uninitialized class member variable.
Change-Id: I8c633cca49c05295499ef8ec640ec078bba369fd
2018-12-24 14:52:23 +09:00
subhransu mohanty
0c3cb67811 lottie/capi: added missing frame_at_pos() api and changed the render_flush() signature.
Change-Id: I029beb82b81448122ee6d0c59f68f758cc600895
2018-12-14 13:55:05 +09:00
subhransu mohanty
130eb55836 lottie/capi: remove usage of bool in c api interface.
Change-Id: Ic9aba8f07d9ee8d085a237fa038e5ae98c0a9987
2018-12-14 13:50:40 +09:00
Hermet Park
033801ec3e updated doc.
Change-Id: I712379928026a2101fdada48d7482ef6926a1040
2018-12-13 09:19:20 +00:00
Hermet Park
73f5282428 remove redundant apis.
Change-Id: Iacc975f28d6a87e9994be49d291ea67037263a82
2018-12-13 09:17:40 +00:00
Hermet Park
973b74c0a2 doc: specify api visibility scope.
This lottie-player is a library for tizen platform developers.

Change-Id: Iaf3d91fde40e64cf2e3e719b1a39d6cacd4e7bcc
2018-12-06 12:07:03 +09:00
Hermet Park
53e71eb670 interface: fix to compatible with C language.
C++ structure type declaration is more flexible than C's.
C always need to declare "struct Name" to use.
That's way we use typedef struct Name as a alias "Name".

Here patch just reorder the structure declaration for C language.

Change-Id: I43bc8d1fafb10e42cb22fcad4bc1115925a3cda2
2018-11-26 05:34:00 +00:00
subhransu mohanty
01733cd6cd lottie: add lottie_animation_render_tree() c api .
Change-Id: I23004c1c2a4aed7e285624e095295ee8e4b18894
2018-11-22 06:30:23 +00:00
subhransu mohanty
b0ff909587 lottie: Added renderTree() api to the lottie animation object.
Change-Id: I137180d0d46036523357d3b7966dc441b57f9d0c
2018-11-22 06:30:12 +00:00
Hermet Park
557d3ae594 interface: updated Graident structure naming.
Change-Id: Ib4b316afd353b0c4762c051bae0f3f277393cac2
2018-11-09 20:21:52 +09:00
subhransu mohanty
c3a7b9f53f lottie: update LOTNode with the gradient stop value.
Change-Id: I85f882418d66341f2667428e293364e2cd916a9e
2018-11-09 10:52:07 +09:00
subhransu mohanty
e341c2cf57 lottie: make animation class constructor private.
we can't use make_unique to create the animation object anymore because the constructor is private.
so used unique_ptr constructor instead.

Change-Id: I23b68c68d1b960085800365662ebb1cc676731cc
2018-09-19 11:29:26 +09:00
subhransu mohanty
6377407e38 lottie: update the loadfromData() api signature.
Change-Id: I801f39d06ce67d30be37dc14733ad99ae3a54da2
2018-09-12 10:09:44 +09:00
Hermet Park
2d622094f9 common: changed name prefix.
Change-Id: I88c297713e3a899edf2eed667aafae357ea376f4
2018-09-07 19:42:30 +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 0f5edac6d1595e0fecd8d48bb7d2e5353fe9121f
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
subhransu mohanty
dbf479dbd5 lottie: added new loadfromdata() api in lottie player.
Change-Id: Iadc6e57953190bdb860415cb3a4d4d02a6ac3cf6
2018-09-04 18:41:47 +09: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
Jaeun Choi
25784d646a lottie: add APIs in lottieplayer to get frame rate and total frame number
Change-Id: Ib81eed03adf520927b3b434b67425168b07f13b1
2018-08-22 05:14:27 +00:00
Hermet Park
830ef02827 binding/c: more compatible with C compiler.
Change-Id: I9fea4817cc913913f65c4b228cb0a42aae2cb2f8
2018-08-22 04:53:44 +00:00
subhransu mohanty
bfbe3c986a lottie: fixed warnings generated by '-Wextra' flag.
Change-Id: I73c122f61e628bdbdb6ab98bb68b7d32ab9f4ec0
2018-08-21 13:26:08 +09:00
Hermet Park
8bba2bc8d4 lottieplayer: handling error code.
Change-Id: I24c88fad24b821e18e7071e6bd82a828b8fd358e
2018-08-21 02:24:10 +00:00
Hermet Park
ca6738b3da add c interface.
Change-Id: Ifc81f35479aa6e0ef18ead5b863ae80b34f98f85
2018-08-21 02:08:34 +00:00
Hermet Park
d49fb641e0 refactor infrastructure.
Split common delcaration from lottieplayer.h
This common delcaration will be used in c interface header files.

Change-Id: Icb3e3f182b2f27fc2d7c9bed36ac29c45c813b66
2018-08-21 00:46:52 +00:00
Hermet Park
ddde576886 lotplayer: improve header format.
1. add namespace.
2. remove unnecessary export attribute.
3. hide prviate member.

This is one ongoing improvement.

Change-Id: I342e4d5e65370190ac55972b02f2fede1aee6d06
2018-08-20 03:30:09 +00:00
Hermet Park
20823b49fe lottieplayer: Add render option to update buffer forcely.
plus code refactoring.

Change-Id: Icef131a7df5fa9766ff9cfe7513b1865692719f5
2018-08-20 03:29:31 +00:00
Hermet Park
9410d9e32d lottieplayer: code refactoring.
change type to struct and declare type scopes explicitly.

Change-Id: If85fbc97917ba324030c3e65765f315e590239ed
2018-08-14 03:29:35 +00:00
Hermet Park
adddac6180 lottieplayer: merge setPos() with renderList()
renderList() build render tree based on current Position.
merge both api helps user to avoid mistake.

Change-Id: Ia158f28b5ab66ec6e20665726a21d7f1c4e4cc13
2018-08-14 03:27:35 +00:00
subhransu mohanty
123f76e7ed lottie/player: take buffer argument by value.
As we have async rendering, we can't rely on the caller to keep the buffer alive till render finish.

Change-Id: Ic7f9670a5e5003424c2b695c171a13717e531b21
2018-08-09 10:10:44 +09:00