ref: e094e151de32659fae15b3567e5dead4a5ba310d
parent: bb27be0dfe94dc5cb0e638cc4c0cf8900bf518dd
parent: 32c375447c037526f32ea0e8bc50c8c783fa14ce
author: James Zern <[email protected]>
date: Wed Sep 28 19:36:23 EDT 2016
Merge "vp9: fix compilation for g++ 6.2.x"
--- a/vp9/common/vp9_entropymv.h
+++ b/vp9/common/vp9_entropymv.h
@@ -27,12 +27,9 @@
void vp9_adapt_mv_probs(struct VP9Common *cm, int usehp);
-// Integer pel reference mv threshold for use of high-precision 1/8 mv
-#define COMPANDED_MVREF_THRESH 8
-
static INLINE int use_mv_hp(const MV *ref) {
- return (abs(ref->row) >> 3) < COMPANDED_MVREF_THRESH &&
- (abs(ref->col) >> 3) < COMPANDED_MVREF_THRESH;
+ const int kMvRefThresh = 64; // threshold for use of high-precision 1/8 mv
+ return abs(ref->row) < kMvRefThresh && abs(ref->col) < kMvRefThresh;
}
#define MV_UPDATE_PROB 252