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
84905d7830
lottie/parser: wrap the trim offset value before normalize.
...
Change-Id: I5bce3b840cc54d626ea2397d35c4a7ef90e7be7e
2018-09-03 12:31:16 +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
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
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
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
subhransu mohanty
3b4f97911f
lottie/parser: changed the datatype of gradient member object .
...
Change-Id: I2b1ca35904f1d5af39c0c76be47af582f9b93041
2018-08-21 14:07:24 +09:00
subhransu mohanty
bfbe3c986a
lottie: fixed warnings generated by '-Wextra' flag.
...
Change-Id: I73c122f61e628bdbdb6ab98bb68b7d32ab9f4ec0
2018-08-21 13:26:08 +09:00
subhransu mohanty
8a0d4d746b
lottie: build fix.
...
Change-Id: Ie008c71e2fcb3bcf7197245e26880e71e2bedc32
2018-08-21 04:01:24 +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
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