]> granicus.if.org Git - libvpx/commitdiff
Let is_interp_needed always return 1
authorAngie Chiang <angiebird@google.com>
Fri, 7 Oct 2016 17:57:45 +0000 (10:57 -0700)
committerYaowu Xu <yaowu@google.com>
Sun, 30 Oct 2016 05:26:48 +0000 (22:26 -0700)
This CL will cause
0.122% PSNR drop on lowres dataset
0.059% PSNR drop on midres dataset

However, it will facilitate hardware implementation.

Change-Id: I0a0713acacbfd571509a721337711c021915dd3c

av1/common/reconinter.h

index 5082d7b986f5e594b5736bef7ac003800a2d0870..d3863ee8eaeeb6ae708c5c6a96bcc59143b27aa1 100644 (file)
@@ -460,7 +460,9 @@ static INLINE int has_subpel_mv_component(const MODE_INFO *const mi,
   return 0;
 }
 
+#define CHECK_SUBPEL 0
 static INLINE int av1_is_interp_needed(const MACROBLOCKD *const xd) {
+#if CHECK_SUBPEL
   MODE_INFO *const mi = xd->mi[0];
   const int is_compound = has_second_ref(&mi->mbmi);
   int ref;
@@ -474,6 +476,10 @@ static INLINE int av1_is_interp_needed(const MACROBLOCKD *const xd) {
     }
   }
   return 0;
+#else
+  (void)xd;
+  return 1;
+#endif
 }
 
 #if CONFIG_MOTION_VAR