]> granicus.if.org Git - libvpx/commit
a number of fixes to entropy stats collection
authorYaowu Xu <yaowu@google.com>
Wed, 2 May 2012 20:53:15 +0000 (13:53 -0700)
committerYaowu Xu <yaowu@google.com>
Tue, 8 May 2012 21:13:22 +0000 (14:13 -0700)
commit54cf1d9ad3fe7ee3d0ce843b2a640f3fcf361887
tree92b7abad163172b6a6463ccef641e328bef01f54
parent813c6c3925186d3cc0b5fc8221d88ef2ceab878f
a number of fixes to entropy stats collection

1. block types
There are only three types of blocks for 8x8 transformed MBs, i.e. Y
block with DC does not exist for 8x8 transformed MBs as all MB using
8x8 transform have 2nd order haar transform. This commit introduced
a new macro BLOCK_TYPES_8X8 to reflect such fact.

2. context counters
This commit also fixed the mixed of context_counters between 4x4 and
8x8 transformed MBs. The mixed use of the counters leads me to think
the existing the context probabilities were not properly generated
from 8x8 transformed MBs.

3. redundant collecting in recoding
The commit also corrected the code that accumulates entropy stats by
making sure stats only collected for final packing, not during the
recode loop

Change-Id: I029f09f8f60bd0c3240cc392ff5c6d05435e322c
13 files changed:
vp8/common/coefupdateprobs.h
vp8/common/defaultcoefcounts.h
vp8/common/entropy.c
vp8/common/entropy.h
vp8/common/onyxc_int.h
vp8/decoder/decodframe.c
vp8/encoder/bitstream.c
vp8/encoder/block.h
vp8/encoder/onyx_if.c
vp8/encoder/onyx_int.h
vp8/encoder/rdopt.c
vp8/encoder/tokenize.c
vp8/encoder/tokenize.h