mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
5691bdd9da
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
|
||
---|---|---|
.. | ||
Android.mk | ||
cwebp.c | ||
dwebp.c | ||
example_util.c | ||
example_util.h | ||
gif2webp_util.c | ||
gif2webp_util.h | ||
gif2webp.c | ||
jpegdec.c | ||
jpegdec.h | ||
Makefile.am | ||
metadata.c | ||
metadata.h | ||
pngdec.c | ||
pngdec.h | ||
stopwatch.h | ||
test_ref.ppm | ||
test.webp | ||
tiffdec.c | ||
tiffdec.h | ||
vwebp.c | ||
webpdec.c | ||
webpdec.h | ||
webpmux.c | ||
wicdec.c | ||
wicdec.h |