mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-13 14:34:33 +02:00
gif2webp: Improved compression for lossy animated WebP
We reduce transparency by turning some transparent pixels into corresponding RGB values from previous canvas. This improves compression by about 23%. Change-Id: I02d70a43a1d0906ac09a7e2dc510be3b2d38f593
This commit is contained in:
@ -86,6 +86,11 @@ void WebPUtilBlendPixels(const struct WebPPicture* const src,
|
||||
const WebPFrameRect* const src_rect,
|
||||
struct WebPPicture* const dst);
|
||||
|
||||
// Replace transparent pixels within 'dst_rect' of 'dst' by those in the 'src'.
|
||||
void WebPUtilReduceTransparency(const struct WebPPicture* const src,
|
||||
const WebPFrameRect* const dst_rect,
|
||||
struct WebPPicture* const dst);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Key frame related.
|
||||
|
||||
|
Reference in New Issue
Block a user