aom/vp8/encoder
John Koleszar 136857475e Centralize mb skip state calculation
This patch moves the scattered updates to the mb skip state
(mode_info_context->mbmi.mb_skip_coeff) to vp8_tokenize_mb. Recent
changes to the quantizer exposed a bug where if a macroblock
could be coded as a skip but isn't, the encoder would run the
loopfilter but the decoder wouldn't, causing a reference buffer
mismatch.

The loopfilter is controlled by a flag called dc_diff. The decoder
looks at the number of decoded coefficients when setting this flag.
The encoder sets this flag based on the skip state, since any
skippable macroblock should be transmitted as a skip. The coefficient
optimization pass (vp8_optimize_b()) could change the coefficients
such that a block that was not a skip becomes one. The encoder was
not updating the skip state in this situation for intra coded blocks.

The underlying issue predates it, but this bug was recently triggered
by enabling trellis quantization on the Y2 block in commit dcd29e3,
and by changing the quantizer range control in commit 305be4e.

Change-Id: I5cce5da0dbc2d22f7d79ee48149f01e868a64802
2010-10-12 09:03:19 -04:00
..
arm Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
generic Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
ppc Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
x86 Merge "Add const qualifiers to variance/SAD functions." 2010-10-12 05:44:20 -07:00
bitstream.c Fix loopfilter delta zero transitions 2010-09-29 13:04:04 -04:00
bitstream.h Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
block.h Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
boolhuff.c Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
boolhuff.h Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
dct.c Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
dct.h Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
encodeframe.c Centralize mb skip state calculation 2010-10-12 09:03:19 -04:00
encodeintra.c Centralize mb skip state calculation 2010-10-12 09:03:19 -04:00
encodeintra.h Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
encodemb.c Centralize mb skip state calculation 2010-10-12 09:03:19 -04:00
encodemb.h Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
encodemv.c Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
encodemv.h Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
ethreading.c Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
firstpass.c Tune effect of motion on KF/GF boost in two pass; 2010-10-02 17:31:46 +01:00
firstpass.h Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
mcomp.c Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
mcomp.h Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
modecosts.c Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
modecosts.h Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
onyx_if.c Remove INTRARDOPT #define and intra_rd_opt option. 2010-10-11 11:53:57 -07:00
onyx_int.h Remove INTRARDOPT #define and intra_rd_opt option. 2010-10-11 11:53:57 -07:00
parms.cpp Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
pickinter.c Add const qualifiers to variance/SAD functions. 2010-10-12 08:40:54 -04:00
pickinter.h Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
picklpf.c Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
preproc.c Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
psnr.c Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
psnr.h Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
quantize.c Centralize mb skip state calculation 2010-10-12 09:03:19 -04:00
quantize.h Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
ratectrl.c Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
ratectrl.h Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
rdopt.c Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
rdopt.h Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
sad_c.c Add const qualifiers to variance/SAD functions. 2010-10-12 08:40:54 -04:00
segmentation.c Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
segmentation.h Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
ssim.c Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
tokenize.c Centralize mb skip state calculation 2010-10-12 09:03:19 -04:00
tokenize.h Reduce size of tokenizer tables 2010-09-16 10:00:04 -04:00
treewriter.c Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
treewriter.h Use WebM in copyright notice for consistency 2010-09-09 10:01:21 -04:00
variance.h Add const qualifiers to variance/SAD functions. 2010-10-12 08:40:54 -04:00
variance_c.c Add const qualifiers to variance/SAD functions. 2010-10-12 08:40:54 -04:00