]> granicus.if.org Git - libvpx/commit
vp10: fix entropy counts for the hp bit.
authorRonald S. Bultje <rsbultje@gmail.com>
Mon, 7 Sep 2015 18:32:28 +0000 (14:32 -0400)
committerRonald S. Bultje <rsbultje@gmail.com>
Mon, 14 Sep 2015 20:13:59 +0000 (16:13 -0400)
commit1e9e9ce2dcef43677887292df115e5160809ed62
treea962d16c17896a4c3602068ed611bbd988163ecd
parent48f0168e955f8f79c99a02681b45ccab122721c4
vp10: fix entropy counts for the hp bit.

The counts didn't take usehp into account, which means that if the
scope of the refmv is too large for the hp bit to be coded, the value
(always 1) is still included in the stats. Therefore, the final
counts will not reflect the entropy of the coded bits, but rather the
entropy of the combination of coded bits and the implied value (which
is always 1). Fix that by only including counts if the hp bit is
actually coded.

See issue 1060.

Change-Id: I19a3adda4a8662a05f08a9e58d7e56ff979be11e
vp10/common/entropymv.c
vp10/common/entropymv.h
vp10/decoder/decodemv.c
vp10/encoder/encodemv.c