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
Youngbok Shin
7c5b266b03
vector/vdasher: fix a wrong code indentation about the previous patch
...
Sorry for my mistake.
Change-Id: I22388fce81738b781c225545e8bff98219be9317
2018-08-28 15:45:48 +09:00
Youngbok Shin
171165be39
lottie/vdasher: fix multiple dashes issue on multiple pathes
...
mIndex is for handling multiple dashes.
If a previous path ends at mIndex > 0,
it should be initialized as 0 when it starts job for next path.
The previous work shouldn't affect the next path.
Change-Id: Iab2b00fe456f7195acd7e086f55758ad7d2a7bf6
2018-08-28 15:08:40 +09:00
subhransu mohanty
d129603118
lottie/vector: refactor VDasher.
...
Change-Id: I30ae3b69839754bfd7c3a19543d03cc205504681
2018-08-28 10:56:20 +09:00
Youngbok Shin
e8195241c4
lottie/vdasher: improve readability for cubicTo function
...
Change-Id: I86422527c33c323d0469a4a6b58089997b55b004
2018-08-27 17:51:13 +09:00
Youngbok Shin
9de63f660f
lottie/vdasher: improve readability for lineTo function
...
It creates two internal functions for duplicated code.
By replacing nested 'if' conditions with the functions,
it improves readability and manageability.
Change-Id: I303ba6849f776c5f02df6552f0a37acecb14a78b
2018-08-27 17:06:59 +09:00
Youngbok Shin
f86f1bedd7
lottie/vdasher: remove connected dash lines between pathes
...
Since managing multiple pathes by a painter or a stroke,
multiple pathes will be drawn in one "dashed" function call.
And its vdasher's moveTo() function only do the job properly
when there is only one moveTo call.
Now, the moveTo() function initialize internal properties properly.
Change-Id: I4dd45d480f27dce734ce2ef8d1ff38774c589e64
2018-08-27 14:31:51 +09:00
subhransu mohanty
d2fc8fc576
lottie: refactor the viewitems to have a parent, to optimize the size of the structure.
...
1. we could move as much common data to parent structure and then keep the parent pointer in the child.
2. move expensive vmatrix data to parent.
Change-Id: Icfd3aa885ebfce5c9555f8b107d3b885827ebedf
2018-08-24 15:44:51 +09:00
Youngbok Shin
a752461b8f
lottie: fix issue - path was not updated properly for each painter item
...
It also adds debug message for polystar type.
Change-Id: Ie1b788571d003402da0d518be484a0458df5dcec
2018-08-24 14:44:03 +09:00
subhransu mohanty
a73e49a6f9
lottie: refactor processing of trim objects.
...
1. now each trim item keeps a list of path item it operates on.
2. trim update phase happens after the update phase. so that all path items are correctly updated.
3. Trim objects operate on a intermediate path so that multiple trim objects operating on same path can be possible.
Change-Id: I9a6d66aef4449b9399ebc65e29d8633cf41cd25a
2018-08-24 11:07:26 +09:00
Youngbok Shin
386e6ebbff
lottie: fix doubled scale issue
...
The scale was calculated based on length 2.
So, its result was also doubled.
It should be half before return scale result.
Change-Id: I66a5fa9ba235bd5ebcde89b9b3c01c0f128d217e
2018-08-23 19:31:28 +09:00
subhransu mohanty
2e59b9fb93
lottie: remove dead code.
...
Change-Id: I81d8c6e3e0c4b6b6d9cff03f70e8818af57dfade
2018-08-23 17:19:43 +09:00
Youngbok Shin
eea5add913
lottie: fixed regression caused by last commit
...
There was issue caused by item inside of groups.
Change-Id: If9057db4f183fc2956d3bd43dca92fc5bb628202
2018-08-23 17:07:48 +09:00
subhransu mohanty
5775d02261
lottie: refactor the lottie scene graph processing.
...
Change-Id: I739aa19abaf7f141b556b67083df4461945461d9
2018-08-23 15:28:33 +09:00
subhransu mohanty
43d77af0d1
lottie/vector : added addPath() api to vpath.
...
Change-Id: I3fd7ee9ba8add8f7109c23c0b6e62388b3fda5bf
2018-08-23 13:15:49 +09:00
subhransu mohanty
f0515f36b8
lottie/vector: return correct number from segments() api.
...
Change-Id: Ifb90d0f7567ba0737f70c7b7abfc467e94004780
2018-08-23 13:13:08 +09:00
Hermet Park
857fde3fa7
lottieplayer: polishing getFrameDuration(), getFrameRate()
...
Change-Id: I4344a6689c7ee8890e33978bfc5ca6a2c401da36
2018-08-23 00:38:29 +00:00
Jaeun Choi
d2c954d535
lottie/example: add frame information in lottieviewer example
...
Change-Id: If9245244bfd3e8d8050e18b5ea09fcaf240a867d
2018-08-23 00:36:25 +00:00
Jaeun Choi
02e660cff7
lottie/example: add APIs in lottieview to get frame rate and total frame number
...
Change-Id: I25d14d37776cd6bf07bcba1f0fc6a1c88e66dd71
2018-08-23 00:34:57 +00:00
Youngbok Shin
318151a35d
lottie: remove the combined alpha value and method from path item
...
Alpha(opacity) values are not applied to path items.
Fill, Stroke and etc will handle opacity.
Change-Id: I8e05989e7f85797a00508c7ca151b1805d44f454
2018-08-23 00:27:37 +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
Jaeun Choi
388736bfbe
lottie: fixed lottieviewer example
...
Change-Id: I5ede2096f3e00dd4b343a05b337dd67070f6ac66
2018-08-21 17:28:31 +09:00
subhransu mohanty
17bc03eb44
lottie/example: updated lottieviewer example.
...
Change-Id: I97e30598090f16e4370f1d08dc94315789d82a3d
2018-08-21 14:25:50 +09:00
subhransu mohanty
3b4f97911f
lottie/parser: changed the datatype of gradient member object .
...
Change-Id: I2b1ca35904f1d5af39c0c76be47af582f9b93041
2018-08-21 14:07:24 +09:00
Youngbok Shin
8ea21ce487
lottie/example: add complex gradient examples and remove simple one
...
Change-Id: I6003e3ca3209125c119feaaae55da35327b52a2c
2018-08-21 13:57:22 +09:00
subhransu mohanty
bfbe3c986a
lottie: fixed warnings generated by '-Wextra' flag.
...
Change-Id: I73c122f61e628bdbdb6ab98bb68b7d32ab9f4ec0
2018-08-21 13:26:08 +09:00
Youngbok Shin
d23e61c69d
lottie/example: add a missing example lottie file
...
It is good to test matte feature and managing multiple layers.
Change-Id: Ie87cc18d0b37b35858c765339d129dc35f2c2986
2018-08-21 13:20:22 +09:00
subhransu mohanty
8a0d4d746b
lottie: build fix.
...
Change-Id: Ie008c71e2fcb3bcf7197245e26880e71e2bedc32
2018-08-21 04:01:24 +00:00
Jaeun Choi
617b257ec4
lottie: add "lottieviewer" example
...
lottieviewer shows each frame image according to slider value.
since edc compilation is not supported yet,
do the following steps to run this example:
$ cd example
$ edje_cc layout.edc
$ mv layout.edj ../build/example
Change-Id: I00f7d8b743e9028d1e8006104e63bef5d96084b6
2018-08-21 03:53:11 +00:00
sub.mohanty@samsung.com
ed0b8f5b4c
lottie/render: added support to render difference mask mode.
...
Change-Id: Ia6ccba78181c87c6b49124026494b324ba93a846
2018-08-21 03:52:40 +00:00
sub.mohanty@samsung.com
bb877fd7d2
lottie/parser: updated parser to parse difference mask mode
...
Change-Id: I607d4f56a849d1cb928926c2d4ecc30cf1313e7e
2018-08-21 03:52:19 +00:00
subhransu mohanty
6fb25316ee
lottie: refactor VRaster class.
...
Change-Id: Iadd382d34fcaa67a4cb60b44f22af38051f6f09a
2018-08-21 03:50:57 +00:00
subhransu mohanty
c12a9916a5
lottie:convert remaining raw pointer to unique_ptr.
...
Change-Id: If85e7b8ffbbacd2cd305e6a3ef6d98ccd8ed7172
2018-08-21 03:50:50 +00:00
sub.mohanty@samsung.com
ded7532e57
lottie/vector: added Xor operation to Rle object
...
Change-Id: I48cb3680a22ce3fb7f07048385dd5cc518ff9c7e
2018-08-21 03:49:40 +00: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
Youngbok Shin
083ec1abb8
lottie: apply matte feature to LOTCompLayerItem
...
The LOTCompLayerItem's MatteRle has to be inherited to its all children layers.
You can test it with "personal_character.json".
Change-Id: I225e16397441f9771286c6fcc821b5050b165ecc
2018-08-21 09:45:08 +09:00
subhransu mohanty
57b58412b6
lottie/render: handle the case when resulting mask is null.
...
Change-Id: Ie78a1465474ec408bff0deafdff509f3b3a199d8
2018-08-20 18:22:16 +09:00
Jaeun Choi
bbdd2e246f
lottie: add getImage() API in lottieview
...
Change-Id: Ic72bb47752797811cbe7c464e02c81bcfd0a9a11
2018-08-20 06:03:49 +00:00
subhransu mohanty
f41c6624e5
lottie: use unique_ptr instead of raw pointer.
...
Change-Id: Ic5b416c72a96427dff3a99316550d8edb7ffece9
2018-08-20 13:44:59 +09:00
subhransu mohanty
fa087b44e8
lottie/parser: treat root layer as a special precomp layer.
...
Change-Id: Ic9a2b171ee349f132e52db5395a92587c9e44c08
2018-08-20 04:42:50 +00:00
subhransu mohanty
5895944d4c
lottie/player: refactor to use std::find_if instead of unorder_map.
...
Change-Id: Ic146357db1312aa0ff122fa6859a64098e350740
2018-08-20 13:38:05 +09:00
subhransu mohanty
9ce5e8138f
lottie: build fix.
...
Change-Id: I5405a17d67066fc5cd10d816f4ed044fb8819471
2018-08-20 12:54:29 +09:00