Index: source/libvpx/vp9/common/vp9_entropymv.h |
=================================================================== |
--- source/libvpx/vp9/common/vp9_entropymv.h (revision 232232) |
+++ source/libvpx/vp9/common/vp9_entropymv.h (working copy) |
@@ -13,7 +13,7 @@ |
#define VP9_COMMON_VP9_ENTROPYMV_H_ |
#include "vp9/common/vp9_treecoder.h" |
-#include "vpx_config.h" |
+#include "./vpx_config.h" |
#include "vp9/common/vp9_blockd.h" |
struct VP9Common; |
@@ -43,9 +43,6 @@ |
return type == MV_JOINT_HNZVZ || type == MV_JOINT_HNZVNZ; |
} |
-extern const vp9_tree_index vp9_mv_joint_tree[2 * MV_JOINTS - 2]; |
-extern struct vp9_token vp9_mv_joint_encodings[MV_JOINTS]; |
- |
/* Symbols for coding magnitude class of nonzero components */ |
#define MV_CLASSES 11 |
typedef enum { |
@@ -62,9 +59,6 @@ |
MV_CLASS_10 = 10, /* (1024,2048] integer pel */ |
} MV_CLASS_TYPE; |
-extern const vp9_tree_index vp9_mv_class_tree[2 * MV_CLASSES - 2]; |
-extern struct vp9_token vp9_mv_class_encodings[MV_CLASSES]; |
- |
#define CLASS0_BITS 1 /* bits at integer precision for class 0 */ |
#define CLASS0_SIZE (1 << CLASS0_BITS) |
#define MV_OFFSET_BITS (MV_CLASSES + CLASS0_BITS - 2) |
@@ -77,10 +71,16 @@ |
#define MV_UPP ((1 << MV_IN_USE_BITS) - 1) |
#define MV_LOW (-(1 << MV_IN_USE_BITS)) |
-extern const vp9_tree_index vp9_mv_class0_tree[2 * CLASS0_SIZE - 2]; |
+extern const vp9_tree_index vp9_mv_joint_tree[TREE_SIZE(MV_JOINTS)]; |
+extern struct vp9_token vp9_mv_joint_encodings[MV_JOINTS]; |
+ |
+extern const vp9_tree_index vp9_mv_class_tree[TREE_SIZE(MV_CLASSES)]; |
+extern struct vp9_token vp9_mv_class_encodings[MV_CLASSES]; |
+ |
+extern const vp9_tree_index vp9_mv_class0_tree[TREE_SIZE(CLASS0_SIZE)]; |
extern struct vp9_token vp9_mv_class0_encodings[CLASS0_SIZE]; |
-extern const vp9_tree_index vp9_mv_fp_tree[2 * 4 - 2]; |
+extern const vp9_tree_index vp9_mv_fp_tree[TREE_SIZE(4)]; |
extern struct vp9_token vp9_mv_fp_encodings[4]; |
typedef struct { |
@@ -112,7 +112,6 @@ |
typedef struct { |
- unsigned int mvcount[MV_VALS]; |
unsigned int sign[2]; |
unsigned int classes[MV_CLASSES]; |
unsigned int class0[CLASS0_SIZE]; |