shithub: libvpx

Download patch

ref: 17e9df144113eef80e76ce4fb66b0e3ddf23db82
parent: c270ce662ba2af379495bfb44bf51e214cd1548a
parent: 1b46f315f696c48326ba125e0d5acac8f3313d77
author: Jingning Han <jingning@google.com>
date: Tue Mar 25 05:27:03 EDT 2014

Merge "Always use adaptive motion search in non-RD coding mode"

--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -2783,8 +2783,7 @@
   }
 
   // store estimated motion vector
-  if (cpi->sf.adaptive_motion_search)
-    store_pred_mv(x, ctx);
+  store_pred_mv(x, ctx);
 
   // PARTITION_SPLIT
   sum_rd = 0;
@@ -2802,8 +2801,7 @@
         continue;
 
       *get_sb_index(x, subsize) = i;
-      if (cpi->sf.adaptive_motion_search)
-        load_pred_mv(x, ctx);
+      load_pred_mv(x, ctx);
 
       nonrd_pick_partition(cpi, tile, tp, mi_row + y_idx, mi_col + x_idx,
                            subsize, &this_rate, &this_dist, 0, INT64_MAX);
@@ -2847,8 +2845,7 @@
     if (sum_rd < best_rd && mi_row + ms < cm->mi_rows) {
       *get_sb_index(x, subsize) = 1;
 
-      if (cpi->sf.adaptive_motion_search)
-        load_pred_mv(x, ctx);
+      load_pred_mv(x, ctx);
 
       nonrd_pick_sb_modes(cpi, tile, mi_row + ms, mi_col,
                           &this_rate, &this_dist, subsize);
@@ -2890,8 +2887,7 @@
     if (sum_rd < best_rd && mi_col + ms < cm->mi_cols) {
       *get_sb_index(x, subsize) = 1;
 
-      if (cpi->sf.adaptive_motion_search)
-        load_pred_mv(x, ctx);
+      load_pred_mv(x, ctx);
 
       nonrd_pick_sb_modes(cpi, tile, mi_row, mi_col + ms,
                           &this_rate, &this_dist, subsize);