platform/core/uifw/lottie-player.git
5 years agolottie: added new resource from UX. 24/192224/1
subhransu mohanty [Thu, 1 Nov 2018 01:59:36 +0000 (10:59 +0900)]
lottie: added new resource from UX.

Change-Id: I22e3866f23354afecc9620982cdcc1ff1a2e5ef9

5 years agolottie: Use the new addroundrect api to get uniform corner as expected from AE. 23/192223/1
subhransu mohanty [Thu, 1 Nov 2018 01:58:37 +0000 (10:58 +0900)]
lottie: Use the new addroundrect api to get uniform corner as expected from AE.

Change-Id: Ifcc1486a530d6ddd195bf45a4ea7bf4a4c8ddaa7

5 years agolottie/vector: added new addroundrect api with uniform roundness of corner. 22/192222/1
subhransu mohanty [Thu, 1 Nov 2018 01:57:14 +0000 (10:57 +0900)]
lottie/vector: added new addroundrect api with uniform roundness of corner.

Change-Id: Id6584d3b4fc4b81f2407ba66cafca4b6521d7fd8

5 years agolottie: Fix the issue of assuming the startframe of composition is always zero. 21/192221/1
subhransu mohanty [Thu, 1 Nov 2018 01:18:02 +0000 (10:18 +0900)]
lottie: Fix the issue of assuming the startframe of composition is always zero.
        use the start and end frame instead.

Change-Id: I16cee8b8fbf651faa8c736d979bab51a07dbfa4d

5 years agolottie: take startFrame of composition layer into account while updating 77/192177/1
subhransu mohanty [Wed, 31 Oct 2018 08:18:55 +0000 (17:18 +0900)]
lottie: take startFrame of composition layer into account while updating
        children layers.

Change-Id: I693d18d8ba5757030f8166c263641ad900b8d835

5 years agolottie: Added TimeStreatch feature to lottie. 76/192176/1
subhransu mohanty [Wed, 31 Oct 2018 07:57:55 +0000 (16:57 +0900)]
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

5 years agolottie/feature: Added timeRemap feature implementation. 22/191722/1
subhransu mohanty [Tue, 23 Oct 2018 00:46:20 +0000 (09:46 +0900)]
lottie/feature: Added timeRemap feature implementation.

Change-Id: I89df91f3cc709fa8fa392586218676770c0aac84

5 years agolottie: make functions inline. 21/191721/2
subhransu mohanty [Tue, 23 Oct 2018 00:09:49 +0000 (09:09 +0900)]
lottie: make functions inline.

Change-Id: I0e9a085071965c95fb4867e313260f8c0b051e24

5 years agolottie: Add duration() and frameAtPos() api to CompositionData model. 19/191719/2
subhransu mohanty [Mon, 22 Oct 2018 23:55:39 +0000 (08:55 +0900)]
lottie: Add duration() and frameAtPos() api to CompositionData model.

Change-Id: I7ff968b8262270dcd7b47a16f1a9549f7ffdb7d5

5 years agolottieitem : fix wrong matrix computation order. 75/191475/1
Hermet Park [Wed, 17 Oct 2018 10:45:02 +0000 (19:45 +0900)]
lottieitem : fix wrong matrix computation order.

It occured scaled position, now it's fixed.

Change-Id: Id179c32139fb0722a6f4faaaea7044944c2e4c92

5 years agolottie: make destructor virtual for proper cleanup of derived object 09/191309/1
subhransu mohanty [Tue, 16 Oct 2018 01:19:26 +0000 (10:19 +0900)]
lottie: make  destructor virtual for proper cleanup of derived object

Change-Id: I0c91778834b46365598381e57363e36c2c91de63

5 years agoREADME: Document how to build using cmake
Bryce Harrington [Thu, 27 Sep 2018 04:50:11 +0000 (13:50 +0900)]
README: Document how to build using cmake

Reviewd-By: Hermet Park <hermetpark@gmail.com>
Change-Id: I25056d78d5b540fe0568825a617979b6439f508b

5 years agoREADME: Add docs for running testsuite
Bryce Harrington [Thu, 27 Sep 2018 04:49:30 +0000 (13:49 +0900)]
README: Add docs for running testsuite

Change-Id: Ifcbdaf1a2aecd1b61e43faf9bac603d6d1151400

5 years agoREADME: Fix a few typos
Bryce Harrington [Thu, 27 Sep 2018 04:48:25 +0000 (13:48 +0900)]
README: Fix a few typos

Change-Id: I6549291543f0c3f5626b0fb3011f712d1d9df34f

5 years agoFixes a spelling and some minor formatting.
Bryce Harrington [Thu, 27 Sep 2018 04:46:09 +0000 (13:46 +0900)]
Fixes a spelling and some minor formatting.

Change-Id: Ie6a0f4706eae8cf87335aaeabec2b66050109ef0

5 years agolottie: make animation class constructor private. 81/189581/1
subhransu mohanty [Wed, 19 Sep 2018 02:29:26 +0000 (11:29 +0900)]
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

5 years agolottie/camke: use ${LIB_INSTALL_DIR} instead of hard coded lib/ path. 52/189452/2 accepted/tizen_5.0_unified accepted/tizen/5.0/unified/20181102.022314 accepted/tizen/unified/20180918.063007 submit/tizen/20180918.061016 submit/tizen_5.0/20181101.000005
subhransu mohanty [Tue, 18 Sep 2018 02:46:57 +0000 (11:46 +0900)]
lottie/camke: use ${LIB_INSTALL_DIR} instead of hard coded lib/ path.

Change-Id: I10152adb394df81b241afb3ca7ae34169917eb94

5 years agolottie/build: add sanitizer build to lottie-player library. 90/189290/1
sub.mohanty@samsung.com [Sat, 15 Sep 2018 14:03:04 +0000 (23:03 +0900)]
lottie/build: add sanitizer build to lottie-player library.

Change-Id: I51d7d4b21bae19f4b6174ccb8f48ceefcc01f434

5 years agolottie: add more test resources. 76/189176/1 submit/tizen/20180917.042405
subhransu mohanty [Fri, 14 Sep 2018 04:53:47 +0000 (13:53 +0900)]
lottie: add more test resources.

Change-Id: I778b7fe0d062043d97cc87d0ec581f2d35451f2b

5 years agolottie/parser: fixed a crash when lottie resource has empty path data. 75/189175/1
subhransu mohanty [Fri, 14 Sep 2018 04:41:56 +0000 (13:41 +0900)]
lottie/parser: fixed a crash when lottie resource has empty path data.

Change-Id: I83d04fa6a1034f71e8cf9b6468b192b56a4c8185

5 years agolottie/resource: added few more resource from internet. 61/189061/3
subhransu mohanty [Thu, 13 Sep 2018 05:58:54 +0000 (14:58 +0900)]
lottie/resource: added few more resource from internet.

Change-Id: I7a22d6b9beb4741fb047f9c7556cea3a38bc21d9

5 years agolottie/parser: Fix crash issue when interpolation string is not present in lottie... 93/189093/2
subhransu mohanty [Thu, 13 Sep 2018 09:08:21 +0000 (18:08 +0900)]
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

5 years agolottie: add more info to tree dump. 30/189030/1
subhransu mohanty [Thu, 13 Sep 2018 01:33:50 +0000 (10:33 +0900)]
lottie: add more info to tree dump.

Change-Id: I8565484b16dfb703586af2ba3b893c0c90298107

5 years agolottie/parser: fix code indentations and a duplicated code 80/188980/1
Youngbok Shin [Wed, 12 Sep 2018 07:48:39 +0000 (16:48 +0900)]
lottie/parser: fix code indentations and a duplicated code

Change-Id: I01280529f6ada36ded67a31d24833049762f52ca

5 years agolottie/parser: update the lottie tree dump method. 70/188970/1
subhransu mohanty [Wed, 12 Sep 2018 06:59:39 +0000 (15:59 +0900)]
lottie/parser: update the lottie tree dump method.

Change-Id: Ie126e11a20493517df69fdd2a03a091bc802a733

5 years agolottie/vector : add a example to test the vector module. 29/188929/2
subhransu mohanty [Wed, 12 Sep 2018 02:49:12 +0000 (11:49 +0900)]
lottie/vector : add a example to test the vector module.

Change-Id: I511b2b520b51ec8b9bf278b67a5ca94784af4c76

5 years agolottie/parser: construct interpolator from correct argument. 25/188925/1
subhransu mohanty [Wed, 12 Sep 2018 02:34:36 +0000 (11:34 +0900)]
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

5 years agolottie: update the loadfromData() api signature. 20/188920/1
subhransu mohanty [Wed, 12 Sep 2018 01:09:44 +0000 (10:09 +0900)]
lottie: update the loadfromData() api signature.

Change-Id: I801f39d06ce67d30be37dc14733ad99ae3a54da2

5 years agolottie: take a copy of the data before parsing. 65/188865/4
subhransu mohanty [Tue, 11 Sep 2018 06:53:59 +0000 (15:53 +0900)]
lottie: take a copy of the data before parsing.

Change-Id: Ic25eea21093d8b533462ffd4c46e86d87f7c6f35

5 years agolottie/optimization: efficient member packing in the VDrawable object. 34/188834/1
subhransu mohanty [Tue, 11 Sep 2018 04:18:04 +0000 (13:18 +0900)]
lottie/optimization: efficient member packing in the VDrawable object.

Change-Id: I545f9a33d1cae329bc9ee140c213e07697b8cccf

5 years agocapi: export one missing api.
Hermet Park [Mon, 10 Sep 2018 11:57:28 +0000 (20:57 +0900)]
capi: export one missing api.

Change-Id: Iba8d035febdcbbee852aa9d946ae3202ae5433ad

5 years agolottie/test: added new unit test cases for library. 58/188758/2
subhransu mohanty [Mon, 10 Sep 2018 05:54:15 +0000 (14:54 +0900)]
lottie/test: added new unit test cases for library.

Change-Id: I1c9d61d98a1028601a36c4e6118b7109d88b2ace

5 years agolottie/vector: fine tune path api. 17/188717/2
sub.mohanty@samsung.com [Sat, 8 Sep 2018 04:17:12 +0000 (13:17 +0900)]
lottie/vector: fine tune path api.

Change-Id: Ic40da16809e5e0b32f5d23cc8b06636d37072037

5 years agolottie/test: refactor unit test suite for lottie library 18/188718/3
sub.mohanty@samsung.com [Sat, 8 Sep 2018 04:15:28 +0000 (13:15 +0900)]
lottie/test: refactor unit test suite for lottie library

Change-Id: I25097f0c3c637e020c51f9f679082809d0cbdaad

5 years agolottie: rename all isEmpty() api to empty() for consistancy. 20/188720/1
sub.mohanty@samsung.com [Sun, 9 Sep 2018 02:57:30 +0000 (11:57 +0900)]
lottie: rename all isEmpty() api to empty() for consistancy.

Change-Id: Id3dddbd920ff00c7beafe0abd17f6da73442195b

5 years agolottie/vector: refactor rect class. 19/188719/2
sub.mohanty@samsung.com [Sat, 8 Sep 2018 08:12:20 +0000 (17:12 +0900)]
lottie/vector: refactor rect class.

Change-Id: I553160f74ad06b002cf2d17d1bf55615e71f9853

5 years agobinding: fix compile error.
Hermet Park [Fri, 7 Sep 2018 11:33:33 +0000 (20:33 +0900)]
binding: fix compile error.

Change-Id: I3c5b0390f39ca885529475330a73f9af7dee29d0

5 years agobinding: fix invalid access of LOTNode data. 02/188702/1
Hermet Park [Fri, 7 Sep 2018 11:30:05 +0000 (20:30 +0900)]
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

5 years agocommon: changed name prefix. 99/188699/1
Hermet Park [Fri, 7 Sep 2018 10:42:30 +0000 (19:42 +0900)]
common: changed name prefix.

Change-Id: I88c297713e3a899edf2eed667aafae357ea376f4

5 years agocapi: changed file name. 98/188698/1
Hermet Park [Fri, 7 Sep 2018 10:40:02 +0000 (19:40 +0900)]
capi: changed file name.

Change-Id: Ic1c6b550751041f856814d24b668ab9f97606170

5 years agolottie: added intial documentation in the animation interface. 88/188688/1
subhransu mohanty [Fri, 7 Sep 2018 09:21:00 +0000 (18:21 +0900)]
lottie: added intial documentation in the animation interface.

Change-Id: I92d802aa44492cdc83d15c8775dd8830f2cffe9d

5 years agofix build break by 0f5edac6d1595e0fecd8d48bb7d2e5353fe9121f 54/188654/1
Hermet Park [Fri, 7 Sep 2018 06:08:11 +0000 (15:08 +0900)]
fix build break by 0f5edac6d1595e0fecd8d48bb7d2e5353fe9121f
and packaging it properly.

Change-Id: Ib1216034d63beb809fdd652542980e61494e1e91

5 years agolottie: refactor lottie interface 98/188598/4
subhransu mohanty [Thu, 6 Sep 2018 11:18:40 +0000 (20:18 +0900)]
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

5 years agoadd AUTHORS 48/188548/2
Hermet Park [Thu, 6 Sep 2018 02:42:56 +0000 (11:42 +0900)]
add AUTHORS

Change-Id: I966f655a2744162d85562594a64a1547d297f278

5 years agolottie: refactor model class to remove visitor 54/188554/3
subhransu mohanty [Thu, 6 Sep 2018 04:45:17 +0000 (13:45 +0900)]
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

5 years agolottie: keep the content in back-tofron order in lottie scenegraph. 53/188553/1
subhransu mohanty [Thu, 6 Sep 2018 03:16:59 +0000 (12:16 +0900)]
lottie: keep the content in back-tofron order in lottie scenegraph.

Change-Id: I15090782105c5e30d38e4d2df896d430d6f8cc19

5 years agolottie/optimization: keep the layers in back-to-front order in scenegraph for cache... 46/188546/1
subhransu mohanty [Thu, 6 Sep 2018 02:17:02 +0000 (11:17 +0900)]
lottie/optimization: keep the layers in back-to-front order in scenegraph for cache coherency

Change-Id: I31678bc3f4470287a4ebebc8ab88cbd0a38d2f15

5 years agolottieplayer: ++ lotplayer_set_data() 20/188520/2
Hermet Park [Wed, 5 Sep 2018 11:33:30 +0000 (20:33 +0900)]
lottieplayer: ++ lotplayer_set_data()

Change-Id: I8f38f6473213aa2d9904aac0dd68aaa207b1e076

5 years agopackaging: include c api header. 72/188472/2
Hermet Park [Wed, 5 Sep 2018 08:34:24 +0000 (17:34 +0900)]
packaging: include c api header.

Change-Id: I2b495d978474f7d5e3447fc23dd4126303beaf1e

5 years agolottie/vector: optimize VMatrix size requirement. 67/188467/2
subhransu mohanty [Wed, 5 Sep 2018 07:56:38 +0000 (16:56 +0900)]
lottie/vector: optimize VMatrix size requirement.

Change-Id: I64efd97336904669d60c6ce99f83d5737f83d9b7

5 years agolottie: optimize VColor structure. 65/188465/2
subhransu mohanty [Wed, 5 Sep 2018 07:47:09 +0000 (16:47 +0900)]
lottie: optimize VColor structure.
uchar is enough to store 0-255 possible color value.

Change-Id: Iaf6a24dd99158483723e98a930f12478770fac58

5 years agolottie/render: add neon path srcOver compostion mode for solid src. 98/188498/1
subhransu mohanty [Wed, 5 Sep 2018 10:37:36 +0000 (19:37 +0900)]
lottie/render: add neon path  srcOver compostion mode for solid src.

Change-Id: I711dc309b02911de1155b0e788c6e79b6630fb7a

5 years agolottie/example: use loadfromData() api in demo app. 82/188382/1
subhransu mohanty [Tue, 4 Sep 2018 10:10:32 +0000 (19:10 +0900)]
lottie/example: use loadfromData() api in demo app.

Change-Id: I8e5ce194f1795ca30ac8aad319ba25706a6023cf

5 years agolottie: added new loadfromdata() api in lottie player. 78/188378/1
subhransu mohanty [Tue, 4 Sep 2018 09:41:47 +0000 (18:41 +0900)]
lottie: added new loadfromdata() api in lottie player.

Change-Id: Iadc6e57953190bdb860415cb3a4d4d02a6ac3cf6

5 years agolottie: fixed warning. 73/188373/1
subhransu mohanty [Tue, 4 Sep 2018 09:15:09 +0000 (18:15 +0900)]
lottie: fixed warning.

Change-Id: I5b4bf56ed2ad38d0d12a031791e23b24083ff573

5 years agolottie: fixed inefficiency using clang-tidy performance option. 57/188257/1
subhransu mohanty [Mon, 3 Sep 2018 10:10:44 +0000 (19:10 +0900)]
lottie: fixed inefficiency using clang-tidy performance option.

Change-Id: I7fc33842e177091a596f980b87759a1cb90ed79e

5 years agolottie: modernize using clang-tidy 'modernize-use-default-member-init' 52/188252/1
subhransu mohanty [Mon, 3 Sep 2018 09:50:54 +0000 (18:50 +0900)]
lottie: modernize using clang-tidy 'modernize-use-default-member-init'

Change-Id: I6ee31ae694d9f9cfb6cabbe160a980cd5277d1a7

5 years agolottie: moderize using clang-tidy 'modernize-return-braced-init-list' 51/188251/1
subhransu mohanty [Mon, 3 Sep 2018 09:36:19 +0000 (18:36 +0900)]
lottie: moderize using clang-tidy 'modernize-return-braced-init-list'

Change-Id: I4186243915c8bda61aade79e55f87e286801d2da

5 years agolottie: avoid extra copy by using std::move 48/188248/1
subhransu mohanty [Mon, 3 Sep 2018 09:27:12 +0000 (18:27 +0900)]
lottie: avoid extra copy by using std::move

Change-Id: Iaa61ee36a87e26b2c26676cae4b7cf2e94b595a0

5 years agolottie: modernize using clang-tidy "modernize-use-equals-default" 45/188245/1
subhransu mohanty [Mon, 3 Sep 2018 09:10:45 +0000 (18:10 +0900)]
lottie: modernize using clang-tidy "modernize-use-equals-default"

Change-Id: Ic09bf5651333f63f2603c8e3d9dd8afd4b73c7aa

5 years agolottie: mordernize using clang-tidy "modernize-use-override" 36/188236/1
subhransu mohanty [Mon, 3 Sep 2018 08:19:11 +0000 (17:19 +0900)]
lottie: mordernize using clang-tidy "modernize-use-override"

Change-Id: Ice8612f9ceb3b99ebeeb6b618a54e9298b4cb66f

5 years agolottie/render: hide the layer when matte layer is hidden. 31/188231/2
subhransu mohanty [Mon, 3 Sep 2018 07:39:34 +0000 (16:39 +0900)]
lottie/render: hide the layer when matte layer is hidden.

in AE matte layers visibility affects the layer below.

Change-Id: I0d1c6e19f78bc3d25ac6ae8a56ec5371a925e300

5 years agolottie/vector: fix build failure for non-arm devices 29/188229/2
Youngbok Shin [Mon, 3 Sep 2018 07:33:37 +0000 (16:33 +0900)]
lottie/vector: fix build failure for non-arm devices

Change-Id: Id03173880629859df24e8c195a5060d8494f8d88

5 years agolottie/render: don't try to render invisible layer. 23/188223/1
subhransu mohanty [Mon, 3 Sep 2018 06:49:10 +0000 (15:49 +0900)]
lottie/render: don't try to render invisible layer.

Change-Id: I2544b6a04d07eaf155fbddc405952e739b14eaf1

5 years agolottieplayer binding: ++apis bindings. 98/188098/4
Hermet Park [Fri, 31 Aug 2018 08:31:03 +0000 (17:31 +0900)]
lottieplayer binding: ++apis bindings.

Change-Id: I6becf969ae71d1b19399cc44ce1b38e92f3920d3

5 years agolottieplayer: keep API coding convention. 97/188097/2
Hermet Park [Fri, 31 Aug 2018 08:27:49 +0000 (17:27 +0900)]
lottieplayer: keep API coding convention.

Not use "get" prefix so far.

Change-Id: Iabc2852cd78d5ac4f4fa29f8b3b7195eafe1d804

5 years agolottie: fixed cmake build issue. 16/188216/1
subhransu mohanty [Mon, 3 Sep 2018 06:03:52 +0000 (15:03 +0900)]
lottie: fixed cmake build issue.

Change-Id: I48591bd78dd173d7f148cc2dcb3c31dd8cd9d1a2

5 years agolottie/parser: wrap the trim offset value before normalize. 97/188197/1
subhransu mohanty [Mon, 3 Sep 2018 03:31:16 +0000 (12:31 +0900)]
lottie/parser: wrap the trim offset value before normalize.

Change-Id: I5bce3b840cc54d626ea2397d35c4a7ef90e7be7e

5 years agolottie/example: sort the file list before showing it in list view. 96/188196/1
subhransu mohanty [Mon, 3 Sep 2018 03:26:50 +0000 (12:26 +0900)]
lottie/example: sort the file list before showing it in list view.

Change-Id: I3dd2c2d332cfc13265694e1ac6ee2a4bae6e1afd

5 years agolottie/example: enhanced lottieviewer example 38/187938/5
Jaeun Choi [Wed, 29 Aug 2018 14:24:45 +0000 (23:24 +0900)]
lottie/example: enhanced lottieviewer example

Change-Id: I0eb2a8c528376397190c75b084e9510c3698c034

5 years agolottie/vector: add a local arena allocator. 77/188077/1
subhransu mohanty [Fri, 31 Aug 2018 05:37:33 +0000 (14:37 +0900)]
lottie/vector: add a local arena allocator.

Change-Id: I7f76ab73d457ee9f4e9b5e35c1303c63c14efcea

5 years agolottie/resource: added new resource going to be used by mobile/vd team. 71/187971/1
subhransu mohanty [Thu, 30 Aug 2018 05:16:18 +0000 (14:16 +0900)]
lottie/resource: added new resource  going to be used by  mobile/vd team.

Change-Id: Ia25247bda7349c34df14aeeab24f1ec42e864d8c

5 years agolottie: fixed proper handling of offset property in trim object. 67/187967/1
subhransu mohanty [Thu, 30 Aug 2018 05:00:47 +0000 (14:00 +0900)]
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

5 years agolottie: added new lottie resource file. 66/187866/2
subhransu mohanty [Wed, 29 Aug 2018 05:42:35 +0000 (14:42 +0900)]
lottie: added new lottie resource file.

Change-Id: I487b65a371b2aeed80cda6211ab55ea525d37c9a

5 years agolottie/vector: move line related api to its own class . 45/187845/1
subhransu mohanty [Wed, 29 Aug 2018 02:36:10 +0000 (11:36 +0900)]
lottie/vector: move line related api to its own class .

Change-Id: Ib9072653cf534e558eedd88242535bc9a8e028fe

5 years agolottie/vector: refactor VPathMesure to handle offset . 92/187792/3
subhransu mohanty [Tue, 28 Aug 2018 06:14:24 +0000 (15:14 +0900)]
lottie/vector: refactor VPathMesure to handle offset .

Change-Id: Ic84c63376c52167ee2ae88d363bf22aadf4fbca9

5 years agovector/vdasher: fix a wrong code indentation about the previous patch 47/187747/1
Youngbok Shin [Tue, 28 Aug 2018 06:45:48 +0000 (15:45 +0900)]
vector/vdasher: fix a wrong code indentation about the previous patch

Sorry for my mistake.

Change-Id: I22388fce81738b781c225545e8bff98219be9317

5 years agolottie/vdasher: fix multiple dashes issue on multiple pathes 34/187734/1
Youngbok Shin [Tue, 28 Aug 2018 06:08:40 +0000 (15:08 +0900)]
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

5 years agolottie/vector: refactor VDasher. 92/187692/1
subhransu mohanty [Tue, 28 Aug 2018 01:56:20 +0000 (10:56 +0900)]
lottie/vector: refactor VDasher.

Change-Id: I30ae3b69839754bfd7c3a19543d03cc205504681

5 years agolottie/vdasher: improve readability for cubicTo function 52/187652/2
Youngbok Shin [Mon, 27 Aug 2018 08:48:35 +0000 (17:48 +0900)]
lottie/vdasher: improve readability for cubicTo function

Change-Id: I86422527c33c323d0469a4a6b58089997b55b004

5 years agolottie/vdasher: improve readability for lineTo function 47/187647/3
Youngbok Shin [Mon, 27 Aug 2018 07:18:46 +0000 (16:18 +0900)]
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

5 years agolottie/vdasher: remove connected dash lines between pathes 87/187587/2
Youngbok Shin [Fri, 24 Aug 2018 10:27:20 +0000 (19:27 +0900)]
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

5 years agolottie: refactor the viewitems to have a parent, to optimize the size of the structure. 65/187565/1
subhransu mohanty [Fri, 24 Aug 2018 06:44:51 +0000 (15:44 +0900)]
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

5 years agolottie: fix issue - path was not updated properly for each painter item 57/187557/1
Youngbok Shin [Fri, 24 Aug 2018 05:41:31 +0000 (14:41 +0900)]
lottie: fix issue - path was not updated properly for each painter item

It also adds debug message for polystar type.

Change-Id: Ie1b788571d003402da0d518be484a0458df5dcec

5 years agolottie: refactor processing of trim objects. 34/187534/2
subhransu mohanty [Fri, 24 Aug 2018 02:01:48 +0000 (11:01 +0900)]
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

5 years agolottie: fix doubled scale issue 58/187458/1
Youngbok Shin [Thu, 23 Aug 2018 10:31:28 +0000 (19:31 +0900)]
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

5 years agolottie: remove dead code. 46/187446/1
subhransu mohanty [Thu, 23 Aug 2018 08:19:43 +0000 (17:19 +0900)]
lottie: remove dead code.

Change-Id: I81d8c6e3e0c4b6b6d9cff03f70e8818af57dfade

5 years agolottie: fixed regression caused by last commit 45/187445/1
Youngbok Shin [Thu, 23 Aug 2018 08:07:48 +0000 (17:07 +0900)]
lottie: fixed regression caused by last commit

There was issue caused by item inside of groups.

Change-Id: If9057db4f183fc2956d3bd43dca92fc5bb628202

5 years agolottie: refactor the lottie scene graph processing. 23/187423/1
subhransu mohanty [Thu, 23 Aug 2018 02:12:13 +0000 (11:12 +0900)]
lottie: refactor the lottie scene graph processing.

Change-Id: I739aa19abaf7f141b556b67083df4461945461d9

5 years agolottie/vector : added addPath() api to vpath. 11/187411/1
subhransu mohanty [Thu, 23 Aug 2018 04:10:06 +0000 (13:10 +0900)]
lottie/vector : added addPath() api to vpath.

Change-Id: I3fd7ee9ba8add8f7109c23c0b6e62388b3fda5bf

5 years agolottie/vector: return correct number from segments() api. 10/187410/1
subhransu mohanty [Thu, 23 Aug 2018 04:13:08 +0000 (13:13 +0900)]
lottie/vector: return correct number from  segments() api.

Change-Id: Ifb90d0f7567ba0737f70c7b7abfc467e94004780

5 years agolottieplayer: polishing getFrameDuration(), getFrameRate() 30/187330/4
Hermet Park [Wed, 22 Aug 2018 05:25:56 +0000 (14:25 +0900)]
lottieplayer: polishing getFrameDuration(), getFrameRate()

Change-Id: I4344a6689c7ee8890e33978bfc5ca6a2c401da36

5 years agolottie/example: add frame information in lottieviewer example 56/187356/2
Jaeun Choi [Wed, 22 Aug 2018 07:26:44 +0000 (16:26 +0900)]
lottie/example: add frame information in lottieviewer example

Change-Id: If9245244bfd3e8d8050e18b5ea09fcaf240a867d

5 years agolottie/example: add APIs in lottieview to get frame rate and total frame number 55/187355/2
Jaeun Choi [Wed, 22 Aug 2018 07:24:26 +0000 (16:24 +0900)]
lottie/example: add APIs in lottieview to get frame rate and total frame number

Change-Id: I25d14d37776cd6bf07bcba1f0fc6a1c88e66dd71

5 years agolottie: remove the combined alpha value and method from path item 67/187267/3
Youngbok Shin [Tue, 21 Aug 2018 09:56:06 +0000 (18:56 +0900)]
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

5 years agolottie: add APIs in lottieplayer to get frame rate and total frame number 86/187286/2
Jaeun Choi [Tue, 21 Aug 2018 12:43:22 +0000 (21:43 +0900)]
lottie: add APIs in lottieplayer to get frame rate and total frame number

Change-Id: Ib81eed03adf520927b3b434b67425168b07f13b1

5 years agobinding/c: more compatible with C compiler. 70/187270/11
Hermet Park [Tue, 21 Aug 2018 10:20:53 +0000 (19:20 +0900)]
binding/c: more compatible with C compiler.

Change-Id: I9fea4817cc913913f65c4b228cb0a42aae2cb2f8

5 years agolottie: fixed lottieviewer example 54/187254/1
Jaeun Choi [Fri, 17 Aug 2018 12:15:22 +0000 (21:15 +0900)]
lottie: fixed lottieviewer example

Change-Id: I5ede2096f3e00dd4b343a05b337dd67070f6ac66

5 years agolottie/example: updated lottieviewer example. 22/187222/1
subhransu mohanty [Tue, 21 Aug 2018 05:25:50 +0000 (14:25 +0900)]
lottie/example: updated lottieviewer example.

Change-Id: I97e30598090f16e4370f1d08dc94315789d82a3d

5 years agolottie/parser: changed the datatype of gradient member object . 19/187219/1
subhransu mohanty [Tue, 21 Aug 2018 05:05:50 +0000 (14:05 +0900)]
lottie/parser: changed  the datatype of gradient member object .

Change-Id: I2b1ca35904f1d5af39c0c76be47af582f9b93041