Index: libvpx/source/libvpx/vp8/common/entropy.h |
diff --git a/libvpx/source/libvpx/vp8/common/entropy.h b/libvpx/source/libvpx/vp8/common/entropy.h |
index 66d282b61e7b30bfe4c9bc276b9ded75902472c6..d174e45b964d51dfe72f19aaea39531fe4e92490 100644 |
--- a/libvpx/source/libvpx/vp8/common/entropy.h |
+++ b/libvpx/source/libvpx/vp8/common/entropy.h |
@@ -30,12 +30,13 @@ |
#define DCT_VAL_CATEGORY6 10 /* 67+ Extra Bits 11+1 */ |
#define DCT_EOB_TOKEN 11 /* EOB Extra Bits 0+0 */ |
-#define MAX_ENTROPY_TOKENS 12 |
+#define vp8_coef_tokens 12 |
+#define MAX_ENTROPY_TOKENS vp8_coef_tokens |
#define ENTROPY_NODES 11 |
extern const vp8_tree_index vp8_coef_tree[]; |
-extern struct vp8_token_struct vp8_coef_encodings[MAX_ENTROPY_TOKENS]; |
+extern struct vp8_token_struct vp8_coef_encodings[vp8_coef_tokens]; |
typedef struct |
{ |
@@ -84,9 +85,9 @@ extern DECLARE_ALIGNED(16, const unsigned char, vp8_coef_bands[16]); |
/*# define DC_TOKEN_CONTEXTS 3*/ /* 00, 0!0, !0!0 */ |
# define PREV_COEF_CONTEXTS 3 |
-extern DECLARE_ALIGNED(16, const unsigned char, vp8_prev_token_class[MAX_ENTROPY_TOKENS]); |
+extern DECLARE_ALIGNED(16, const unsigned char, vp8_prev_token_class[vp8_coef_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 [BLOCK_TYPES] [COEF_BANDS] [PREV_COEF_CONTEXTS] [vp8_coef_tokens-1]; |
struct VP8Common; |