JunsuChoi
fc4f452362
loader/webp: Remove WEBP_FORCE_ALIGNED and use memcpy() instead
...
The google's libwebp source uses aligned memory access.
This patch is that applies the two commits below to our static lib code.
refer to:
[Remove WEBP_FORCE_ALIGNED and use memcpy() instead]
3884972e3f
[bit_reader.c: s/VP8L_USE_UNALIGNED_LOAD/VP8L_USE_FAST_LOAD/]
ac49e4e4dc
source :
https://chromium.googlesource.com/webm/libwebp/+/refs/heads/main/src/utils/bit_reader_inl_utils.h#80
related issue: https://github.com/thorvg/thorvg/issues/2006
2024-04-06 12:08:21 +09:00
Hermet Park
aa07e98c7b
loader/webp: do not expose webp apis.
...
this reduces the bin size around -1.5kb
2024-04-06 12:08:21 +09:00
Hermet Park
baf04d1cde
webp: removed non-existing symbol methods.
2024-04-06 12:08:21 +09:00
Hermet Park
c64ed2ec03
loaders: enhance decoding efficiency
...
enhance decoding efficiency by determining the desired canvas format
during image loading. This allows loaders to preemptively decode
the image in the specified format, to not convert the format again.
2024-04-06 12:08:21 +09:00
Hermet Park
c4e6b03b84
loaders: decode the image with premultiplied alpha.
...
basically, the renderer requires images with premultiplied alpha.
2024-04-06 12:08:21 +09:00
Junsu Choi
e0eeaf54b0
loader/webp: Support static webp loader
...
Built to libwebp code in to support the static option of webp loader.
Code from :https://github.com/jacklicn/libwebp
This forking version only contains the minimal webp decoding feature.
Binary Size: +68kb
Co-authored-by: Hermet Park <hermet@lottiefiles.com>
issue: https://github.com/thorvg/thorvg/issues/1427
2024-04-06 12:08:18 +09:00