Update encoder mb_skip_coeff and prob_skip_false calculation
authorAttila Nagy <attilanagy@google.com>
Fri, 17 Feb 2012 09:50:33 +0000 (11:50 +0200)
committerAttila Nagy <attilanagy@google.com>
Fri, 17 Feb 2012 12:27:40 +0000 (14:27 +0200)
commitce42e79abcd0b361e5eedcd9a964984d3b58ff4d
tree4d7e454f50fd87e2fe7c193812cd1215a39c403d
parent3653fb473a66258c74d3a550e66c8c1e8f95368c
Update encoder mb_skip_coeff and prob_skip_false calculation

mode_info_context->mbmi.mb_skip_coeff has to always reflect the
existence or not of coeffs for a certain MB. The loopfilter needs this
info.
mb_skip_coeff is either set by the vp8_tokenize_mb or has to be set to
1 when the MB is skipped by mode selection. This has to be done
regardless of the mb_no_coeff_skip value.

prob_skip_false is needed just when mb_no_coeff_skip is 1. No need to
keep count of both skip_false and skip_true as they are complementary
(skip_true+skip_false = total_mbs)

Change-Id: I3c74c9a0ee37bec10de7bb796e408f3e77006813
vp8/encoder/bitstream.c
vp8/encoder/encodeframe.c
vp8/encoder/onyx_int.h
vp8/encoder/tokenize.c