]> granicus.if.org Git - libvpx/commitdiff
Remove inter_cost_arr and recon_error_arr
authorAngie Chiang <angiebird@google.com>
Sun, 21 Apr 2019 22:37:45 +0000 (15:37 -0700)
committerAngie Chiang <angiebird@google.com>
Sun, 21 Apr 2019 22:37:45 +0000 (15:37 -0700)
Change-Id: I9eaf9563f2ee92fcfbe38d0f5e36c82632af468f

vp9/encoder/vp9_encoder.c
vp9/encoder/vp9_encoder.h

index 133e97d054da17405f4a1d8f7a7793d827ae394d..26119c1383741296bafddb683aa8574c3761272e 100644 (file)
@@ -6230,24 +6230,12 @@ static void mode_estimation(VP9_COMP *cpi, MACROBLOCK *x, MACROBLOCKD *xd,
     inter_cost = vpx_satd(coeff, pix_num);
 #endif
 
-#if CONFIG_NON_GREEDY_MV
-    tpl_stats->inter_cost_arr[rf_idx] = inter_cost;
-    get_quantize_error(x, 0, coeff, qcoeff, dqcoeff, tx_size,
-                       &tpl_stats->recon_error_arr[rf_idx],
-                       &tpl_stats->sse_arr[rf_idx]);
-#endif
-
     if (inter_cost < best_inter_cost) {
       best_rf_idx = rf_idx;
       best_inter_cost = inter_cost;
       best_mv.as_int = mv.as_int;
-#if CONFIG_NON_GREEDY_MV
-      *recon_error = tpl_stats->recon_error_arr[rf_idx];
-      *sse = tpl_stats->sse_arr[rf_idx];
-#else
       get_quantize_error(x, 0, coeff, qcoeff, dqcoeff, tx_size, recon_error,
                          sse);
-#endif
     }
   }
   best_intra_cost = VPXMAX(best_intra_cost, 1);
index ede01867baff4cd5604001b16426add68530f0cb..1dbbca11de47f3b27331b68296816405dd5832f8 100644 (file)
@@ -295,8 +295,6 @@ typedef struct TplDepStats {
   int ready[3];
   double mv_dist[3];
   double mv_cost[3];
-  int64_t inter_cost_arr[3];
-  int64_t recon_error_arr[3];
   int64_t sse_arr[3];
   double feature_score;
 #endif