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 e4c829efe9bb233f38eeb5c575a1afdc0cd82c65) Conflicts: examples/gif2webp_util.c Change-Id: Ic31186d98fe1a2a790a89d1571b17e3abd127e79