diff options
author | Angie Chiang <angiebird@google.com> | 2019-01-24 11:45:29 -0800 |
---|---|---|
committer | Angie Chiang <angiebird@google.com> | 2019-01-24 17:55:19 -0800 |
commit | ef3cb03d8b2c73fad6743315d25b03935ed544c2 (patch) | |
tree | db3fbbf1b362c5a356f3b244e43936be9244b8aa /vp9/encoder/vp9_mcomp.c | |
parent | 4f36bea7e9ecbfd99fae737138a050c4c55a4536 (diff) | |
download | libvpx-ef3cb03d8b2c73fad6743315d25b03935ed544c2.tar libvpx-ef3cb03d8b2c73fad6743315d25b03935ed544c2.tar.gz libvpx-ef3cb03d8b2c73fad6743315d25b03935ed544c2.tar.bz2 libvpx-ef3cb03d8b2c73fad6743315d25b03935ed544c2.zip |
Add get_mv_dist
Given an mv_mode, get_mv_dist() obtains the mv and uses it
to compute distortion.
Change-Id: I58b8c7137b99c2736d651e678f0cd013dbd94877
Diffstat (limited to 'vp9/encoder/vp9_mcomp.c')
-rw-r--r-- | vp9/encoder/vp9_mcomp.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/vp9/encoder/vp9_mcomp.c b/vp9/encoder/vp9_mcomp.c index 534b15acc..602cc5798 100644 --- a/vp9/encoder/vp9_mcomp.c +++ b/vp9/encoder/vp9_mcomp.c @@ -29,11 +29,6 @@ // #define NEW_DIAMOND_SEARCH -static INLINE const uint8_t *get_buf_from_mv(const struct buf_2d *buf, - const MV *mv) { - return &buf->buf[mv->row * buf->stride + mv->col]; -} - void vp9_set_mv_search_range(MvLimits *mv_limits, const MV *mv) { int col_min = (mv->col >> 3) - MAX_FULL_PEL_VAL + (mv->col & 7 ? 1 : 0); int row_min = (mv->row >> 3) - MAX_FULL_PEL_VAL + (mv->row & 7 ? 1 : 0); |