libwebp/src/enc
Pascal Massimino 0a3838ca77 fix bug in RefineUsingDistortion()
When try_both_modes=0 (that is: -m 0 or -m 1), and the mode is i4,
we were still sometimes falling back to (unexplored, uninitialized) i16 mode,
which resulted in a enc/dec mismatch.
This was mainly occurring for large images (when bit_limit is low enough)

We disable the fall-back by disabling bit_limit using a large MAX_COST threshold.

Change-Id: I0c60257595812bd813b239ff4c86703ddf63cbf8
2016-11-12 02:15:28 -08:00
..
alpha.c remove some obsolete TODOs 2016-06-01 16:23:16 +02:00
analysis.c Change the rule of picking UV mode in MBAnalyzeBestUVMode() 2016-09-15 06:01:03 +00:00
backward_references.c MIN_LENGTH cleanups. 2016-10-10 15:37:45 +02:00
backward_references.h Apply the RLE heuristic to LZ77. 2016-07-14 20:12:48 +02:00
config.c Fix non-included header in config.c. 2016-10-10 13:39:17 +02:00
cost.c Do token recording and counting in a single loop 2016-07-19 16:28:26 -07:00
cost.h Fix an unsigned integer overflow error in enc/cost.h 2016-07-26 13:55:09 -07:00
delta_palettization.c large re-organization of the delta-palettization code 2015-10-14 00:25:42 +02:00
delta_palettization.h large re-organization of the delta-palettization code 2015-10-14 00:25:42 +02:00
filter.c speed-up SSIM calculation 2016-09-14 16:15:43 +02:00
frame.c fix infinite loop in case of PARTITION0 overflow 2016-09-15 02:38:28 -07:00
histogram.c Remove some errors when compiling the code as C++. 2016-10-05 09:39:08 +02:00
histogram.h Move some codec logic out of ./dsp . 2015-12-17 07:03:25 +00:00
iterator.c remove unused stride fields from VP8Iterator 2016-10-10 18:08:47 +02:00
Makefile.am Move some lossless logic out of dsp. 2016-09-13 15:37:32 +02:00
near_lossless.c Split off common lossless dsp inline functions. 2016-09-12 17:35:08 +02:00
picture_csp.c Import: use relative pointer offsets 2016-11-07 17:08:13 -08:00
picture_psnr.c introduce WebPPlaneDistortion to compute plane distortion 2016-10-19 09:12:13 +02:00
picture_rescale.c Refactor CopyPlane() and CopyPixels() methods: put them in utils. 2015-11-13 11:39:22 -08:00
picture_tools.c lossless: simpler alpha cleanup preprocessing 2015-12-17 15:04:50 +01:00
picture.c Remove some errors when compiling the code as C++. 2016-10-05 09:39:08 +02:00
predictor.c Favor keeping the areas locally similar in spatial prediction mode selection 2016-10-04 16:28:24 -07:00
quant.c fix bug in RefineUsingDistortion() 2016-11-12 02:15:28 -08:00
syntax.c cosmetics: add {}s on continued control statements 2016-08-03 19:08:59 -07:00
token.c cosmetics: add {}s on continued control statements 2016-08-03 19:08:59 -07:00
tree.c add a dec/common.h header to collect common enc/dec #defines 2015-03-31 22:17:58 -07:00
vp8enci.h remove unused stride fields from VP8Iterator 2016-10-10 18:08:47 +02:00
vp8l.c Remove some errors when compiling the code as C++. 2016-10-05 09:39:08 +02:00
vp8li.h Move some lossless logic out of dsp. 2016-09-13 15:37:32 +02:00
webpenc.c cosmetics: add {}s on continued control statements 2016-08-03 19:08:59 -07:00