subhransu mohanty
aa99eda0f7
lottie/parser: support parsing auto orient property of layer.
...
Change-Id: Ib7d757d43633d601fd76e8c3393219f7682c9112
2018-11-15 11:45:57 +09:00
subhransu mohanty
18bb0afcfe
lottie/vector: added angleAt() api to bezier class.
...
Change-Id: Ie5a3f68ad849d1a283363e1eae50ce9520bddb7a
2018-11-15 11:42:10 +09:00
subhransu mohanty
ea7f55d44a
lottie: refactor to use line api to calculate angle.
...
Change-Id: If9440f5fbf1b926a969226aad524db74881ba12f
2018-11-15 11:40:04 +09:00
subhransu mohanty
fe211418e6
lottie/vector: add angle api to VLine class
...
Change-Id: Iaa839e5a4e7a0517c7a9a01cb8e0de972dba95c6
2018-11-15 11:36:58 +09:00
subhransu mohanty
99886884a4
lottie: Fix crash issue from last patch.
...
Change-Id: Ia8178e3454e26ae2ced8fb0bef66b1c5026f1d26
2018-11-14 16:55:12 +09:00
Hermet Park
73340247bd
lottieitem: free alloc memory properly.
...
gradient stops must be freed.
Change-Id: Ibc25e8e8e1c59762c0b757d15897a8ca5adf1f24
2018-11-14 07:48:49 +00:00
subhransu mohanty
9328482600
lottie: fix position property animation along path.
...
Change-Id: I5b30f96a0e8358d2f6b75685ad9025dcdd4dee60
2018-11-14 16:37:38 +09:00
subhransu mohanty
b5b39a6aac
lottie/vector: fixed the crash in bezier::length() api.
...
Change-Id: I397ecdc65382bd30174bc95ff34063384d12972b
2018-11-14 16:37:38 +09:00
subhransu mohanty
e4120d8612
lottie/model: support fractional frame number in keyframe object.
...
Change-Id: I1a94b3bffbe7f01e462fcf3f93b822c356bae7b0
2018-11-14 11:08:39 +09:00
subhransu mohanty
dc9bcd449f
lottie/parser: parse Hidden property of lottie objects.
...
Change-Id: I6d9288404045d4332017320b4102c3c5dc6b7d96
2018-11-13 18:10:39 +09:00
Hermet Park
9dad8b7d6f
lottieitem: apply transform for radial gradient values.
...
gradient and shape cooridnates must be in same space,
implement them of missing calc.
Change-Id: I21d3024718e9cb64e0072db680ec07e77b8c3d43
2018-11-13 06:18:41 +00:00
Hermet Park
1092772b3a
lottieitem: apply transform for linear gradient coordinates.
...
gradient and shape coordinates must be in same space,
gradient coordinates didn't on it.
Change-Id: Ic697c066c4303c47dd382f11af2f9afb33d6a937
2018-11-12 14:58:04 +09: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
a30e5fe28e
lottie: Take care of parentAlpha when drawing with gradient.
...
Change-Id: Iacdf1df1010a8afe69d15dffa5793791aabc4fef
2018-11-09 10:16:24 +09:00
Hermet Park
83b433d4e4
lottianimation: fix incorrect animation in time stretch.
...
Instead of applying startFrame at frameAtPos()
but applied it at update() in generic way.
This change could make apis useful at both raw frame control
and normalized frame controls.
This fixes "cue" animation sample.
Change-Id: I0adfd73410291cdee95455b18ef8720482c81090
2018-11-05 08:48:54 +00:00
subhransu mohanty
b5248f473a
lottie: Use the new addroundrect api to get uniform corner as expected from AE.
...
Change-Id: Ifcc1486a530d6ddd195bf45a4ea7bf4a4c8ddaa7
2018-11-01 10:58:37 +09:00
subhransu mohanty
5265f844b9
lottie/vector: added new addroundrect api with uniform roundness of corner.
...
Change-Id: Id6584d3b4fc4b81f2407ba66cafca4b6521d7fd8
2018-11-01 10:57:14 +09:00
subhransu mohanty
3edf19165b
lottie: Fix the issue of assuming the startframe of composition is always zero.
...
use the start and end frame instead.
Change-Id: I16cee8b8fbf651faa8c736d979bab51a07dbfa4d
2018-11-01 10:18:02 +09:00
subhransu mohanty
1297e1162f
lottie: take startFrame of composition layer into account while updating
...
children layers.
Change-Id: I693d18d8ba5757030f8166c263641ad900b8d835
2018-10-31 17:18:55 +09:00
subhransu mohanty
1f09869723
lottie: Added TimeStreatch feature to lottie.
...
Details: still some resources are not working ex:hiking.json need to
find out what other properties also affected by time streatch property.
Change-Id: I5846c74549e86f13606de5dd824fef00e2d5857a
2018-10-31 16:57:55 +09:00
subhransu mohanty
4da0782f60
lottie/feature: Added timeRemap feature implementation.
...
Change-Id: I89df91f3cc709fa8fa392586218676770c0aac84
2018-10-23 09:49:26 +09:00
subhransu mohanty
416adb599e
lottie: make functions inline.
...
Change-Id: I0e9a085071965c95fb4867e313260f8c0b051e24
2018-10-23 09:49:19 +09:00
subhransu mohanty
871251479d
lottie: Add duration() and frameAtPos() api to CompositionData model.
...
Change-Id: I7ff968b8262270dcd7b47a16f1a9549f7ffdb7d5
2018-10-23 09:48:50 +09:00
Hermet Park
a7ec780181
lottieitem : fix wrong matrix computation order.
...
It occured scaled position, now it's fixed.
Change-Id: Id179c32139fb0722a6f4faaaea7044944c2e4c92
2018-10-17 19:45:02 +09:00
subhransu mohanty
c0f50fb89a
lottie: make destructor virtual for proper cleanup of derived object
...
Change-Id: I0c91778834b46365598381e57363e36c2c91de63
2018-10-16 10:19:26 +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
829533e47c
lottie/parser: fixed a crash when lottie resource has empty path data.
...
Change-Id: I83d04fa6a1034f71e8cf9b6468b192b56a4c8185
2018-09-14 13:41:56 +09:00
subhransu mohanty
cf21f89ef0
lottie/parser: Fix crash issue when interpolation string is not present in lottie file.
...
For some version of bodymovin file interpolation string is not part of the keyframe
in those case create one and add it to the cache.
Change-Id: I5853bd7a6f46140d16191c2b79622cfa1f6fb074
2018-09-13 18:31:08 +09:00
subhransu mohanty
d0dac93229
lottie: add more info to tree dump.
...
Change-Id: I8565484b16dfb703586af2ba3b893c0c90298107
2018-09-13 10:35:53 +09:00
Youngbok Shin
02cb018c75
lottie/parser: fix code indentations and a duplicated code
...
Change-Id: I01280529f6ada36ded67a31d24833049762f52ca
2018-09-12 16:48:39 +09:00
subhransu mohanty
3756e7cb93
lottie/parser: update the lottie tree dump method.
...
Change-Id: Ie126e11a20493517df69fdd2a03a091bc802a733
2018-09-12 15:59:39 +09:00
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
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
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
97dc0bf2d5
capi: changed file name.
...
Change-Id: Ic1c6b550751041f856814d24b668ab9f97606170
2018-09-07 19:40:02 +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
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
subhransu mohanty
81b77d5f3a
lottie/vector: optimize VMatrix size requirement.
...
Change-Id: I64efd97336904669d60c6ce99f83d5737f83d9b7
2018-09-05 10:56:29 +00:00