mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-13 14:34:33 +02:00
gif2webp: detect and flatten uniformly similar blocks
helps during lossless compression. 10% average saving, but that's mostly on what was previously 'difficult' cases, where the gain is ~30-50% actually. Non-difficult cases are mostly unchanged. Tested over ~7k random web gifs. Change-Id: I09db4560e4ab09105d1cad28e6dbf83842eda8e9
This commit is contained in:
@ -91,6 +91,12 @@ void WebPUtilReduceTransparency(const struct WebPPicture* const src,
|
||||
const WebPFrameRect* const dst_rect,
|
||||
struct WebPPicture* const dst);
|
||||
|
||||
// Replace similar blocks of pixels by a 'see-through' transparent block
|
||||
// with uniform average color.
|
||||
void WebPUtilFlattenSimilarBlocks(const WebPPicture* const src,
|
||||
const WebPFrameRect* const rect,
|
||||
WebPPicture* const dst);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Key frame related.
|
||||
|
||||
|
Reference in New Issue
Block a user