Commit 113f8d87 authored by Jingning Han's avatar Jingning Han
Browse files

Replace hard coded values in mv_has_subpel

Change-Id: Id437740c2db1a3a56c1ad29d8b51bb763c044c1d
parent cf3ee225
...@@ -11,9 +11,8 @@ ...@@ -11,9 +11,8 @@
#ifndef VP10_COMMON_MV_H_ #ifndef VP10_COMMON_MV_H_
#define VP10_COMMON_MV_H_ #define VP10_COMMON_MV_H_
#include "vpx/vpx_integer.h"
#include "vp10/common/common.h" #include "vp10/common/common.h"
#include "vpx_dsp/vpx_filter.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
...@@ -58,7 +57,7 @@ static INLINE void clamp_mv(MV *mv, int min_col, int max_col, ...@@ -58,7 +57,7 @@ static INLINE void clamp_mv(MV *mv, int min_col, int max_col,
} }
static INLINE int mv_has_subpel(const MV *mv) { static INLINE int mv_has_subpel(const MV *mv) {
return (mv->row & 0x0F) || (mv->col & 0x0F); return (mv->row & SUBPEL_MASK) || (mv->col & SUBPEL_MASK);
} }
#ifdef __cplusplus #ifdef __cplusplus
} // extern "C" } // extern "C"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment