libwebp/examples
Urvang Joshi 5691bdd9da gif2webp: Handle frames with odd offsets + disposal to background.
Snapping odd offsets in GIF to even offsets in WebP was causing extra row/column
being disposed in such cases.

Code is rewritten to maintain previous and current canvas (it used to maintain
previous canvas and current frame earlier). And we recompute change rectangles
as those from GIF may no longer apply.
Also, this renders methods like ReduceTransparency() and ConvertToKeyFrame()
redundant, as internally maintained current canvas is always independent of
previous canvases.

Disposal method choice: we pick the disposal method that results in the smallest
change rectangle.

(cherry picked from commit e4c829efe9)

Conflicts:
	examples/gif2webp_util.c

Change-Id: Ic31186d98fe1a2a790a89d1571b17e3abd127e79
2015-03-02 18:42:36 -08:00
..
Android.mk examples/Android.mk: add cwebp 2014-06-17 23:41:12 -07:00
cwebp.c examples: warn on invalid numeric parameters 2014-10-14 12:02:16 +02:00
dwebp.c examples: warn on invalid numeric parameters 2014-10-14 12:02:16 +02:00
example_util.c examples: warn on invalid numeric parameters 2014-10-14 12:02:16 +02:00
example_util.h examples: warn on invalid numeric parameters 2014-10-14 12:02:16 +02:00
gif2webp_util.c gif2webp: Handle frames with odd offsets + disposal to background. 2015-03-02 18:42:36 -08:00
gif2webp_util.h properly report back encoding error code in WebPFrameCacheAddFrame() 2014-06-11 23:26:47 +02:00
gif2webp.c gif2webp: Background color correction 2014-10-14 12:02:16 +02:00
jpegdec.c JPEG decoder: delay conversion to YUV to WebPEncode() call 2014-07-21 22:26:22 +02:00
jpegdec.h simplify __cplusplus ifdef 2013-12-16 20:16:02 -08:00
Makefile.am configure: move config.h to src/webp/config.h 2014-06-10 23:42:00 -07:00
metadata.c update copyright text 2013-06-06 23:09:14 -07:00
metadata.h simplify __cplusplus ifdef 2013-12-16 20:16:02 -08:00
pngdec.c configure: move config.h to src/webp/config.h 2014-06-10 23:42:00 -07:00
pngdec.h simplify __cplusplus ifdef 2013-12-16 20:16:02 -08:00
stopwatch.h stopwatch.h: fix includes 2015-03-02 18:42:28 -08: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
tiffdec.c configure.ac: add AC_C_BIGENDIAN 2014-07-03 18:15:50 -07:00
tiffdec.h simplify __cplusplus ifdef 2013-12-16 20:16:02 -08:00
vwebp.c examples: warn on invalid numeric parameters 2014-10-14 12:02:16 +02:00
webpdec.c example_util: add ExUtilDecodeWebPIncremental 2014-04-27 01:58:25 -07:00
webpdec.h cwebp: add webpdec 2014-04-26 02:20:41 -07:00
webpmux.c webpmux: simplify InitializeConfig() 2014-10-14 12:02:16 +02:00
wicdec.c configure: move config.h to src/webp/config.h 2014-06-10 23:42:00 -07:00
wicdec.h simplify __cplusplus ifdef 2013-12-16 20:16:02 -08:00