enable selecting&transmitting to for intra mode entropy
authorYaowu Xu <yaowu@google.com>
Wed, 31 Aug 2011 19:01:58 +0000 (12:01 -0700)
committerYaowu Xu <yaowu@google.com>
Fri, 16 Sep 2011 23:33:19 +0000 (16:33 -0700)
commit1d44e7ce1ff748bd07a66bd146d956b2c38caf1c
treef9cbe31723180a87b78dd362ace541ec7386a29b
parentaac2c12663dc3b7aec16436612c4d3cd3d589001
enable selecting&transmitting to for intra mode entropy

This commit added a 3 bit index to the bitstream, the index is used to
look into the intra mode coding entropy context table. The commit uses
the mode stats to calculate the cost of transmitting modes using 8
possible entropy distributions, and selects the distribution that
provides the lowest cost to do the actual mode coding.

Initial test show this provides additional .2%~.3% gain over quantizer
adaptive intra mode coding. So the adaptive intra mode coding provides
a total of .5%(psnr) to .6% gain(ssim) combined for all-key-encoding

To build and test, configure with
--enable-experimental --enable-qimode

Change-Id: I7c41cd8bfb352bc1fe7c5da1848a58faea5ed74a
vp8/common/alloccommon.c
vp8/common/blockd.h
vp8/common/entropymode.c
vp8/common/onyxc_int.h
vp8/decoder/decodemv.c
vp8/encoder/bitstream.c
vp8/encoder/modecosts.c
vp8/encoder/rdopt.c