mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
9273e441da
Encoder: We were always using ExtraSamples=1, which means associated-alpha. But we don't need the (lossy) excursion to rgbA format. We can save the samples as RGBA directly, by changing ExtraSamples to '2'. The TIFF encoder now checks the colorspace properly, to handle premultiplied format as well as non-premultiplied. Decoder: The result of TIFFReadRGBAImageOriented() is always pre-multiply. So, in case an alpha channel is present, we need to unmultiply it before calling WebPPictureImportRGBA(). See: https://www.itu.int/itudoc/itu-t/com16/tiff-fx/docs/tiff6.pdf (page 31) and also http://www.asmail.be/msg0055469184.html Change-Id: I3258bfdb0eb2e1a53d6c04414f55edb2926c938c |
||
---|---|---|
.. | ||
Android.mk | ||
anim_diff.c | ||
anim_util.c | ||
anim_util.h | ||
cwebp.c | ||
dwebp.c | ||
example_util.c | ||
example_util.h | ||
gif2webp.c | ||
gifdec.c | ||
gifdec.h | ||
img2webp.c | ||
Makefile.am | ||
stopwatch.h | ||
test_ref.ppm | ||
test.webp | ||
vwebp.c | ||
webpmux.c |