]> granicus.if.org Git - libvpx/commitdiff
Remove unnecessary speed feature checking
authorJingning Han <jingning@google.com>
Wed, 11 Mar 2015 23:08:59 +0000 (16:08 -0700)
committerJingning Han <jingning@google.com>
Wed, 11 Mar 2015 23:11:40 +0000 (16:11 -0700)
This commit removes the pred_mv_sad comparison from rtc motion
search, given that a stronger comparison has been done at the
mode search level to eliminate unlikely selected reference frames.

Change-Id: I49b8d24b2174303066fd8eff2102c0648f2869df

vp9/encoder/vp9_pickmode.c

index 23a2569c8d4c1f27f0f913b99bdc5cfd04324722..f1b19e00affcc32488c84c41c988e6824013bb8a 100644 (file)
@@ -137,10 +137,6 @@ static int combined_motion_search(VP9_COMP *cpi, MACROBLOCK *x,
   int cost_list[5];
   const YV12_BUFFER_CONFIG *scaled_ref_frame = vp9_get_scaled_ref_frame(cpi,
                                                                         ref);
-  if (cpi->common.show_frame &&
-      (x->pred_mv_sad[ref] >> 3) > x->pred_mv_sad[LAST_FRAME])
-    return rv;
-
   if (scaled_ref_frame) {
     int i;
     // Swap out the reference frame for a version that's been scaled to