Vincent Torri
18f8caa199
Iamage loader: include windows.h and not Windows.h
...
Indeed, when cross-compiling on Linux, which has a case
sensitive file system, and as minwg-w64 provides windows.h,
we must use lower case name for header files.
2019-06-29 17:44:34 +09:00
sub.mohanty@samsung.com
7219aeca64
rlottie: Get size data from the model
2019-06-27 21:50:31 +09:00
JunsuChoi
abff77e985
Fix typo that incorrect matrix information.
2019-06-26 20:45:46 +09:00
subhransu mohanty
c77c7b320f
rlottie/vector: backport optimization from freetype
2019-06-26 15:22:04 +09:00
subhransu mohanty
75f9d3ff29
rlottie: Update DirtyMatrix only when needed.
2019-06-26 11:19:58 +09:00
subhransu mohanty
88593df18d
rlottie: use correct default opacity value.
2019-06-25 19:16:15 +09:00
Hermet Park
7339baf3e5
rapidjson: filterate BOM encoding mark out as it's necessary.
...
Previously, json file containing BOM(Byte Order Mark),
it wouldn't recognize it as the normal data,
Our StringStream could filter out BOM if it's necessary.
See: https://en.wikipedia.org/wiki/Byte_order_mark
2019-06-25 16:26:51 +09:00
subhransu mohanty
a5b6a23bd5
rlottie/model: Refactor LOTTransformData object to optimize object size
2019-06-25 10:17:00 +09:00
subhransu mohanty
b2ded242de
rlottie: ran clang-format with the latest code
2019-06-24 17:04:09 +09:00
subhransu mohanty
9c1cba05a6
rlottie: Fix build break
2019-06-24 15:56:38 +09:00
subhransu mohanty
49282955ac
rlottie: Fix clang-tidy warning
2019-06-24 14:52:57 +09:00
subhransu mohanty
1da13ccaab
rlottie: Fix issue with Line join(Miter) by using the implementation similar to what PDF uses.
...
Freetype has 2 types of miter join SW_FT_STROKER_LINEJOIN_MITER_VARIABLE and SW_FT_STROKER_LINEJOIN_MITER_FIXED.
SW_FT_STROKER_LINEJOIN_MITER_FIXED is similar to what PostScrip and PDF generates.
SW_FT_STROKER_LINEJOIN_MITER_VARIABLE is similar to what XPS generates.
2019-06-24 14:02:11 +09:00
sub.mohanty@samsung.com
235fe04025
rlottie: Add LOTTIE_CACHE_SUPPORT config variable to enable/disable lottie model cache strategy
2019-06-24 09:07:21 +09:00
subhransu mohanty
c86f17b94d
rlottie: disable copy and move operation for layeritem and contentitem
2019-06-21 11:38:08 +09:00
Hermet Park
3f404a0218
capi: expose layer item name for utiliziing by demand.
2019-06-20 17:15:21 +09:00
subhransu mohanty
582e05af30
rlottie: Fix all cppcheck warnings.
2019-06-20 10:00:46 +09:00
Subhransu Mohanty
7dbb3845d9
rlottie: Fix a issue when shape animation data are not same size
2019-06-19 18:08:27 +09:00
subhransu mohanty
482ac8738e
rlottie: fix typo which was causing invalid memory read
2019-06-19 09:10:12 +09:00
subhransu mohanty
5580a60813
rlottie: Fix issue with handling hidden Layer
2019-06-18 13:56:29 +09:00
subhransu mohanty
a3b8db4c44
rlottie/optimization: remove unnecessary pointer indirection to optimize memory allocation.
2019-06-17 15:34:21 +09:00
subhransu mohanty
9776cbeac7
rlottie: Refactor Rle Generation to optimize memory allocation.
...
Moved the Rle Generation to Rasterizer class which will take care of
handling async rle generation efficiently by reusing Task.
Now Rle Task scheduler will take a shared_ptr to the Task data which will
be created once in Rasterizer.
2019-06-17 12:56:34 +09:00
subhransu mohanty
f55ddc8b8c
rlottie: Keep an offscreen buffer in the layer.
...
The offscreen buffer is created on demand if the layer has any matte.
so we only create the buffer once and reuse for subsequent frame rendering.
2019-06-12 16:53:02 +09:00
subhransu mohanty
5f6e550111
lottie/vector: Added reset api to VBitmap class
2019-06-12 16:47:19 +09:00
JunsuChoi
4bc1a193af
lottieitem : Fix layer alpha transparency issue.
...
When a layer has transparency, we need to send it to layer node.
So I add mAlpha member to the LOTLayerItem.
2019-06-12 13:55:43 +09:00
subhransu mohanty
1d4716e03d
rlottie/json: updated to latest rapidjson
2019-06-05 12:45:11 +09:00
subhransu mohanty
ebfe68ba55
rlottie/parser: opacity attribute can be float
2019-06-04 17:46:34 +09:00
subhransu mohanty
e521b6d8df
rlottie/parser: Fix build after refactoring
2019-06-04 10:11:53 +09:00
subhransu mohanty
2b8ce3d6c3
rlottie: Fix precomp layer rendering issue when it has alpha value
...
When the precomp layer has alpha transparency and has more than 1 child layer and they overlap each other
if we just propagate the alpha to child layer it will be applied twice in overlapped area.
in this case we treat the precomp layer as complex content and don't propagate the alpha transparency.
instead we create a buffer and draw all the child layers and then we blend with the main buffer
with the alpha transparency value.
2019-06-04 09:57:08 +09:00
subhransu mohanty
574122b5a4
raster/drawing: updated drawbitmap api with const_alpha support
2019-06-03 16:20:33 +09:00
subhransu mohanty
4f33db73ef
rlottie: optimize rendering when final opacity of layer is Zero
2019-06-03 13:50:10 +09:00
subhransu mohanty
07e065a6b0
vector: reserve some memory before starting dash operation
2019-06-03 12:30:10 +09:00
subhransu mohanty
3f4ef28dfa
rlottie: optimize matte rendering when both src and matte are invisible
2019-06-03 09:15:34 +09:00
subhransu mohanty
4fe3a3072b
vector: refactor gradient cache
2019-05-31 10:27:37 +09:00
subhransu mohanty
710a4fd208
vector: keep a shared reference to cached color table
2019-05-31 09:44:07 +09:00
subhransu mohanty
8e029e1c32
rlottie: Optimize library size when logging is disabled
2019-05-30 10:08:36 +09:00
subhransu mohanty
93f4288211
refactor to remove all dynamic_cast usage
2019-05-30 09:18:14 +09:00
subhransu mohanty
55a16567e5
vector/raster: check for 0 size stroke width
2019-05-29 16:52:20 +09:00
subhransu mohanty
adf68f5b89
rlottie/parser: refactor image asset parsing.
...
- generate bitmap while parsing the image asset and store it there.
- remove storing the imagedata in the asset.
- share the bitmap across multiple layers who wants to use the image.
2019-05-29 16:11:53 +09:00
subhransu mohanty
0726a2f137
rlottie/pareser: remove unused property
2019-05-29 10:21:02 +09:00
JunsuChoi
f8409d9d5d
lottieitem: Add image property in LOTNode
...
The image properties are image data, size, and matrix information.
If the lottie item is an image item, the image property is stored in the Nodelist.
2019-05-29 09:25:39 +09:00
subhransu mohanty
c8346f4960
rlottie/parser: Don't create transform object for root layer
2019-05-29 09:23:11 +09:00
subhransu mohanty
a22450c31a
rlottie/parser: Refactor static property handling of layer object.
2019-05-29 08:56:25 +09:00
subhransu mohanty
fa9a48c375
Fixed regression in VPath::Clone() api and updated test cases
2019-05-27 10:34:00 +09:00
subhransu mohanty
cfe844fde9
rlottie: make sure rle object shared between 2 threads always keeps refcount 1 to avoid copy
2019-05-24 16:16:53 +09:00
subhransu mohanty
e6a7d9fbe7
rlottie/vector: Added unique(), refcount and clone api to VRle class
2019-05-24 16:01:33 +09:00
subhransu mohanty
4f5830c31b
lottie/model: refactor LOTAnimatable to optimize size.
2019-05-24 13:03:19 +09:00
subhransu mohanty
55eee7113a
rlottie/model: refactor repeater object model to optimize size.
2019-05-23 19:02:10 +09:00
subhransu mohanty
281d3f3a00
rlottie/trim: Fix trim segment calculation.
...
In AE start and end value can naver be -ve. but the final
start and end value after applting interpolator curve could be -ve.
So refactor to always take the -ve value into account.
2019-05-23 09:58:42 +09:00
subhransu mohanty
0fa16936d1
rlottie/parser: Fix float data parsing when data in array form.
...
Take only the 1st element and discard the rest.
2019-05-22 12:37:50 +09:00
subhransu mohanty
57eea32d4d
rlottie/model: Fix repeater processing when its part of an asset layer.
2019-05-22 10:02:47 +09:00