Hermet Park
db889e1835
renderer: quick skip rendering if the opacity is zero
...
This also resolves a corner case bug introduced by
lottie render pooling: f06127ab93
2024-07-21 15:05:07 +09:00
Hermet Park
a47839a40b
sw_engine: hotfix simd build breaks
...
regression by 837cf32bcb
2024-07-19 23:07:31 +09:00
Hermet Park
803dcb3fb9
lottie/expressions: ++coverage enhancement
...
Allow to access layer index globally.
2024-07-19 23:01:29 +09:00
Hermet Park
65fe1cb465
examples: updated lottie samples
2024-07-19 15:19:36 +09:00
Hermet Park
9e7d8b37ff
examples: added more expressions samples
2024-07-18 22:14:05 +09:00
Hermet Park
16cb1020ac
lottie/expressions: added a missing polystar property build.
2024-07-18 20:46:06 +09:00
Hermet Park
c825c2f929
sw_engine: ++alpha blending operation.
...
Reduce instructions, improving its performance by ~15%
2024-07-18 20:45:54 +09:00
Mira Grudzinska
83439f34e1
tests: version api tests
2024-07-18 12:47:58 +09:00
Mira Grudzinska
8125d66da9
capi: the version api binding
2024-07-18 12:47:58 +09:00
Mira Grudzinska
17e0bcd332
common: version api introduced
...
@Issue: https://github.com/thorvg/thorvg/issues/2543
2024-07-18 12:47:58 +09:00
Sergii Liebodkin
f4e1c13a79
wg_engine: fix cubic generation artifacts (GradientStroke example)
...
[GradientStroke](https://github.com/thorvg/thorvg/issues/2435 ) example
More accurate coefitient computation
2024-07-17 12:54:19 +09:00
Sergii Liebodkin
4cc132ad47
wg_engine: fix fill spread artifacts
...
[issues 2435: ](FillSpread) example
Fixed range selector edged cases
2024-07-17 12:51:06 +09:00
Hermet Park
71ba9ab7cf
renderer: ++null check
...
fixed a Duplicate example crash, regression by:
f06127ab93
2024-07-16 00:47:03 +09:00
Sergii Liebodkin
2c948a33d3
wg_engine: ClipPath support
...
[issues 1479: ClipPath](#1479 )
Supports ClipPath composition.
Clip path composition is an only composition type who doesn't ignore blend method.
Clip path is a combination of composition approach and blend approach using compute shader
2024-07-16 00:01:47 +09:00
Hermet Park
f06127ab93
lottie: ++scene rendering optimization
...
Apply LottieRenderPooler to path/rect/ellipse/polystar.
This enhances the animation performance: ~10%
2024-07-14 19:26:51 +09:00
Hermet Park
350f7a4357
examples: ++exception handling
...
Added handling for engine initialization failure.
2024-07-14 12:04:31 +09:00
Mira Grudzinska
d42c10301e
sw_engine: grayscale image support++
2024-07-14 11:47:29 +09:00
Hermet Park
c20ecbcc58
lottie: introduced LottieRenderPooler
...
LottieRenderPooler is designed to manages rendering
instances(paints) efficiently through a simple pooling
mechanism to resuse among the animations
This replaces the previous individusal paints implemenations
among solidfill, precomp vierport and pictures,
also fix a potential paints corruption problems.
2024-07-13 19:22:06 +09:00
Hermet Park
bcc2f5008c
infra: updated ios arm64 build
2024-07-13 15:30:20 +09:00
Hermet Park
b915455e89
examples: added LottieExpressions
2024-07-12 18:57:10 +09:00
Hermet Park
cfc8f13584
lottie/parser: tiny binary size reduction
2024-07-12 14:43:00 +09:00
Mira Grudzinska
8340c1e1d7
lottie: support 'direction' in ellipses
2024-07-12 14:23:27 +09:00
Mira Grudzinska
bedaa909ad
lottie: remove unnecessary cast
2024-07-12 13:54:49 +09:00
Hermet Park
ad2b6f6d51
examples: updated lottie samples
2024-07-12 00:39:31 +09:00
Hermet Park
22bab117a3
lottie: clarify shape direction.
...
There are only two options clockwise or counter-clockwise.
2024-07-12 00:39:31 +09:00
Mira Grudzinska
6025635712
lottie: apply direction to rect
2024-07-12 00:05:08 +09:00
Hermet Park
a69a5c300f
examples: added svg samples
2024-07-11 23:31:07 +09:00
Hermet Park
4cb327c9fd
lottie: ++ scene composing optimization
...
retain resuable layer solid paint during animation.
2024-07-11 21:30:31 +09:00
Hermet Park
d95ec72335
lottie: ++ scene composing optimization
...
retain reusable precomp clipper shapes during animation.
2024-07-11 21:30:31 +09:00
Sergii Liebodkin
3223f17f9c
wg_engine: Viewport support
...
[issues 1479: Viewport](#1479 )
Supports viewport settings and rectangular clip path.
Scissors cliping used as a way to clip viewport
2024-07-11 21:24:18 +09:00
Hermet Park
d6d4839f1a
lottie: ++memory access stability
...
Internal matrix can be null.
This update prevents such cases by using a safer API.
2024-07-11 01:03:50 +09:00
Jinny You
fdc1ad4d2c
lottie/text: Support text range selector (Phase 1)
...
This patch provides initial support for the text range selector. Full support will be added gradually in subsequent steps. This is the first step.
Text range selector with following properties:
1. Text Range Selector (Units)
2. Text Style
- Fill Color
- Fill Opacity
- Stroke Color
- Stroke Width
- Stroke Opacity
- Opacity
- Rotation
- Position
- Scale
2024-07-11 00:49:57 +09:00
Hermet Park
5a2a6fc4a9
common: replace the round() with nearbyint()
...
nearbyint() is 2x faster than round() in our local test.
2024-07-10 23:43:10 +09:00
Hermet Park
837cf32bcb
sw_engine: code refactoring.
...
just renamed internal name shorter.
2024-07-10 18:35:20 +09:00
Hermet Park
065a8f5eb3
sw_engine: ++rle optimization
...
Reduction memory copy by pushing span data into rle immediately.
2024-07-10 18:35:20 +09:00
Mira Grudzinska
e07ff127dd
lottie: improvement 3d rotation
...
For rotation around the X and Y axes, the transformation
matrix was incorrectly created - elements e12 and e21
were omitted. Now fixed.
2024-07-10 16:58:03 +09:00
Hermet Park
ee29a000f2
math: ++missing exceptions
2024-07-10 03:53:09 +09:00
Mira Grudzinska
ebfdf2102e
sw_engine: fix masked translucent rect
2024-07-10 00:34:23 +09:00
Hermet Park
69b1fb8208
common/math: code refactoring
...
- migrate tvgLine to tvgMath
- associate line functions with classes.
2024-07-10 00:21:02 +09:00
Hermet Park
44955b704e
common/math: code refactoring
...
Replaced the prefix "math" with "tvg" namespace.
2024-07-10 00:21:02 +09:00
Hermet Park
79cf7ca5af
common/math: introduced custom atan2()
...
the custom atan2 algorithm by Remez.
see: https://en.wikipedia.org/wiki/Remez_algorithm
This improved the Lottie example by ~2ms.
Total atan2 performance time was reduced by 43%
2024-07-09 23:50:37 +09:00
Sergii Liebodkin
8c4102362f
wg_engine: fix masking methods support
...
See Masking, InvMasking, LumaMasking, InvLumaMasking, MaskingMethods examples
sw/webgpu
2024-07-09 22:02:30 +09:00
Hermet Park
662dac075c
renderer: ++optimization
...
skip locking if the thread number is 0.
2024-07-09 18:07:25 +09:00
Hermet Park
e0116b90c4
lottie: code refactoring
...
- _draw() returns boolean whether merging shape is allowed or not.
- renamed some internal variables.
2024-07-09 12:27:32 +09:00
Mira Grudzinska
49e58eecc0
lottie: enhance support for ao: 1
...
Adding support for auto-orient=true for frames <= first
and >= last, as well as for positions specified without
outer and inner tangent.
2024-07-09 12:27:21 +09:00
Mira Grudzinska
2309770409
common: fix bezAngleAt function
...
In the function calculating the tangent to a cubic bezier
at a given t, the atan was calculated using dx over dy,
instead of dy over dx. The error was visible during
the animation using auto-orient = true.
2024-07-09 12:19:21 +09:00
Hermet Park
61b68fab5b
example: print non support webgpu msg properly.
2024-07-09 11:26:18 +09:00
RuiwenTang
8d6b1d6da3
gl_engine: fix aliasing in gradient rendering
2024-07-09 11:20:51 +09:00
Mira Grudzinska
423e37d4d5
lottie: add support for image size
...
The width and height of the image must
be specified in the Lottie file and must
be taken into account during rendering.
2024-07-08 21:20:34 +09:00
Hermet Park
329ab9ef4a
example: ++ DirectUpdate to cover more scenarios.
2024-07-08 11:39:28 +09:00