Force the bit exactness in the first pass
authorYunqing Wang <yunqingwang@google.com>
Wed, 2 Aug 2017 22:47:09 +0000 (15:47 -0700)
committerYunqing Wang <yunqingwang@google.com>
Wed, 2 Aug 2017 22:58:39 +0000 (15:58 -0700)
commitbfd0f41f9b8282a458e276fbccf07c8e9ae0870b
tree6ebf30940d487d4d193ac1f88034e8cc419563cc
parent0e87b1602241b54c71f8d40d1ca7d5d47f3bbc5c
Force the bit exactness in the first pass

Originally, for the purpose of keeping a fast first pass, the first-pass
stats between row_mt_mode = 0 and row_mt_mode = 1 are not bit exact, but
that difference is very small that doesn't cause a mismatch between the
final bitstreams. However, if the encoder changes, this minor difference
may cause a mismatch. Thus, this patch always forces the first pass to
be bit exact.

BUG=webm:1453

Change-Id: I2b67cf529dee81f660f9d9e7fe9a60ea3c7b12b8
test/vp9_ethread_test.cc
vp9/encoder/vp9_encoder.c
vp9/encoder/vp9_speed_features.c