libwebp/src/enc
Pascal Massimino f82cb06afb optimize palette ordering
We compact the palette by weighted distance, favoring the green channel.

Average gain on paletted file is ~0.5%, with gain up to 6-7% on some favorable cases.
Encoding speed is unaffected.

Disabled for alpha (or any single-channel input)

Also: always use quality=20 for EncodePalette() since it
doesn't make any real difference.

Change-Id: I19fb14316a366f139a941b45aef5663a33c905e1
2014-10-08 08:42:36 +02:00
..
alpha.c add WebPDispatchAlphaToGreen() to dsp 2014-10-06 23:15:44 +02:00
analysis.c Add an interface abstraction to the WebP worker thread implementation 2014-06-12 11:35:44 +02:00
backward_references.c lossless: Remove unaligned read warning 2014-07-02 20:55:27 -07:00
backward_references.h use block-based allocation for backward refs storage, and free-lists 2014-05-05 11:11:55 -07:00
config.c Add smart RGB->YUV conversion option -pre 4 2014-08-15 10:55:09 -07:00
cost.c remove the special casing for res->first in VP8SetResidualCoeffs 2014-06-08 06:40:22 +02:00
cost.h cosmetics: remove some extraneous 'extern's 2014-08-05 22:14:24 -07:00
filter.c use decoder's DSP functions for autofilter 2014-05-20 14:55:05 -07:00
frame.c cosmetics 2014-08-06 12:10:59 -07:00
histogram.c Change Entropy based Histogram Combine heuristic. 2014-09-30 13:41:39 -07:00
histogram.h Change Entropy based Histogram Combine heuristic. 2014-09-30 13:41:39 -07:00
iterator.c drop: ifdef __cplusplus checks from C files 2013-12-13 11:42:13 -08:00
Makefile.am add -near_lossless [0..100] experimental option 2014-08-05 19:17:10 +02:00
near_lossless.c add -near_lossless [0..100] experimental option 2014-08-05 19:17:10 +02:00
picture_csp.c Premultiply with alpha during U/V downsampling 2014-09-18 23:40:34 -07:00
picture_psnr.c split monolithic picture.c into picture_{tools,psnr,rescale}.c 2014-07-12 09:13:33 -07:00
picture_rescale.c extract colorspace code from picture.c into picture_csp.c 2014-07-16 16:37:26 -07:00
picture_tools.c extract colorspace code from picture.c into picture_csp.c 2014-07-16 16:37:26 -07:00
picture.c move WebPPictureInit to picture.c 2014-07-21 14:16:19 +02:00
quant.c ~3-5% faster encoding optimizing PickBestIntra*() 2014-09-01 14:40:25 +02:00
syntax.c make error-code reporting consistent upon malloc failure 2014-06-13 08:45:12 +02:00
token.c make error-code reporting consistent upon malloc failure 2014-06-13 08:45:12 +02:00
tree.c drop: ifdef __cplusplus checks from C files 2013-12-13 11:42:13 -08:00
vp8enci.h vp8enci.h: cosmetics: fix '*' placement 2014-08-05 22:14:12 -07:00
vp8l.c optimize palette ordering 2014-10-08 08:42:36 +02:00
vp8li.h use block-based allocation for backward refs storage, and free-lists 2014-05-05 11:11:55 -07:00
webpenc.c Add smart RGB->YUV conversion option -pre 4 2014-08-15 10:55:09 -07:00