diff options
Diffstat (limited to 'vp9/common/vp9_mv.h')
-rw-r--r-- | vp9/common/vp9_mv.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vp9/common/vp9_mv.h b/vp9/common/vp9_mv.h index 3eb7f9d61..5d89da8c2 100644 --- a/vp9/common/vp9_mv.h +++ b/vp9/common/vp9_mv.h @@ -34,6 +34,14 @@ typedef struct mv32 { int32_t col; } MV32; +static INLINE int is_zero_mv(const MV *mv) { + return *((const uint32_t *)mv) == 0; +} + +static INLINE int is_equal_mv(const MV *a, const MV *b) { + return *((const uint32_t *)a) == *((const uint32_t *)b); +} + static INLINE void clamp_mv(MV *mv, int min_col, int max_col, int min_row, int max_row) { mv->col = clamp(mv->col, min_col, max_col); |