summaryrefslogtreecommitdiff
path: root/vp8/common/entropy.h
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2012-05-02 13:53:15 -0700
committerYaowu Xu <yaowu@google.com>2012-05-08 14:13:22 -0700
commit54cf1d9ad3fe7ee3d0ce843b2a640f3fcf361887 (patch)
tree92b7abad163172b6a6463ccef641e328bef01f54 /vp8/common/entropy.h
parent813c6c3925186d3cc0b5fc8221d88ef2ceab878f (diff)
downloadlibvpx-54cf1d9ad3fe7ee3d0ce843b2a640f3fcf361887.tar
libvpx-54cf1d9ad3fe7ee3d0ce843b2a640f3fcf361887.tar.gz
libvpx-54cf1d9ad3fe7ee3d0ce843b2a640f3fcf361887.tar.bz2
libvpx-54cf1d9ad3fe7ee3d0ce843b2a640f3fcf361887.zip
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
Diffstat (limited to 'vp8/common/entropy.h')
-rw-r--r--vp8/common/entropy.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/vp8/common/entropy.h b/vp8/common/entropy.h
index 113332fed..42de3ea52 100644
--- a/vp8/common/entropy.h
+++ b/vp8/common/entropy.h
@@ -58,6 +58,8 @@ extern vp8_extra_bit_struct vp8_extra_bits[12]; /* indexed by token value */
#define BLOCK_TYPES 4
+#define BLOCK_TYPES_8X8 3
+
/* Middle dimension is a coarsening of the coefficient's
position within the 4x4 DCT. */
@@ -97,7 +99,7 @@ extern DECLARE_ALIGNED(64, const unsigned char, vp8_coef_bands_8x8[64]);
extern DECLARE_ALIGNED(16, const unsigned char, vp8_prev_token_class[MAX_ENTROPY_TOKENS]);
extern const vp8_prob vp8_coef_update_probs [BLOCK_TYPES] [COEF_BANDS] [PREV_COEF_CONTEXTS] [ENTROPY_NODES];
-extern const vp8_prob vp8_coef_update_probs_8x8 [BLOCK_TYPES] [COEF_BANDS] [PREV_COEF_CONTEXTS] [ENTROPY_NODES];
+extern const vp8_prob vp8_coef_update_probs_8x8 [BLOCK_TYPES_8X8] [COEF_BANDS] [PREV_COEF_CONTEXTS] [ENTROPY_NODES];
struct VP8Common;
void vp8_default_coef_probs(struct VP8Common *);