libwebp/examples
Pascal Massimino 9273e441da fix TIFF encoder regarding rgbA/RGBA
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
2017-03-03 10:36:29 -08:00
..
Android.mk img2webp: convert a sequence of images to an animated webp 2016-12-02 11:44:17 +01:00
anim_diff.c Make gif transparent color to be transparent black 2016-09-01 16:50:14 -07:00
anim_util.c replace 'ptr + y * stride' by 'ptr += stride' 2017-01-04 00:54:23 -08:00
anim_util.h migrate anim_diff tool from C++ to C89 2015-11-09 18:12:06 -08:00
cwebp.c cwebp: add a -sharp_yuv option for 'sharp' RGB->YUV conversion 2017-01-20 16:54:54 +01:00
dwebp.c fix TIFF encoder regarding rgbA/RGBA 2017-03-03 10:36:29 -08:00
example_util.c add a "-duration duration,start,end" option to webpmux 2016-11-09 15:44:09 +01:00
example_util.h add a "-duration duration,start,end" option to webpmux 2016-11-09 15:44:09 +01:00
gif2webp.c gif2webp: fix crash with NULL extension data 2016-10-07 11:21:18 -07:00
gifdec.c gifdec,Remap: avoid out of bounds colormap read 2016-11-02 15:01:10 -07:00
gifdec.h gifdec: Move inclusion of webp/config.h to header. 2015-04-17 12:43:17 -07:00
img2webp.c img2webp: treat -loop as a no-op w/single images 2017-01-25 08:17:39 +00:00
Makefile.am img2webp: convert a sequence of images to an animated webp 2016-12-02 11:44:17 +01:00
stopwatch.h stopwatch.h: fix includes 2014-10-22 17:25:41 +02:00
test_ref.ppm lot of cosmetics 2010-11-17 20:09:47 -08:00
test.webp remove INAM, ICOP, ... chunks from the test webp file. 2012-07-19 17:34:04 -07:00
vwebp.c vwebp: clear canvas during resize w/o animation 2016-12-13 23:21:33 -08:00
webpmux.c webpmux -duration: set default 'end' value equal to 'start' 2016-11-11 17:57:56 +00:00