shithub: dav1d

Download patch

ref: 16ec105734209a02ce7ac22a8090fc39a4479b16
parent: e6d7400b074489717710d887e2756b4023683ef5
author: Janne Grunau <janne-vlc@jannau.net>
date: Wed Oct 24 14:47:29 EDT 2018

remove unused function av1_clamp_mv()

Refs #97.

--- a/src/ref_mvs.c
+++ b/src/ref_mvs.c
@@ -1967,20 +1967,6 @@
     [BLOCK_4X4] = BS_4x4,
 };
 
-static inline struct MV av1_clamp_mv(const struct MV mv,
-                                    const int bx4, const int by4,
-                                    const int bw4, const int bh4,
-                                    const int iw4, const int ih4)
-{
-    const int left = -(bx4 + bw4 + 4) * 4 * 8;
-    const int right = (iw4 - bx4 + 0 * bw4 + 4) * 4 * 8;
-    const int top = -(by4 + bh4 + 4) * 4 * 8;
-    const int bottom = (ih4 - by4 + 0 * bh4 + 4) * 4 * 8;
-
-    return (struct MV) { .col = iclip(mv.col, left, right),
-                         .row = iclip(mv.row, top, bottom) };
-}
-
 #include <stdio.h>
 
 void av1_find_ref_mvs(CANDIDATE_MV *mvstack, int *cnt, int_mv (*mvlist)[2],