]> granicus.if.org Git - libvpx/commitdiff
Fix compile warnings in non-greedy-mv
authorAngie Chiang <angiebird@google.com>
Sat, 9 Feb 2019 01:48:57 +0000 (17:48 -0800)
committerAngie Chiang <angiebird@google.com>
Wed, 13 Feb 2019 19:10:48 +0000 (11:10 -0800)
Change-Id: Ib2bd9a74473ccb00e9ad71e0b186c8ddc0ee7b3c

vp9/encoder/vp9_encoder.c
vp9/encoder/vp9_mcomp.c

index d85c715f7cac3c7ca78f0928fa3af235023ce6ed..f35011bdf2bc8dde371727a32b421e452f080494 100644 (file)
@@ -6337,9 +6337,10 @@ static void predict_mv_mode(VP9_COMP *cpi, MACROBLOCK *x,
   }
 }
 
-void predict_mv_mode_arr(VP9_COMP *cpi, MACROBLOCK *x, GF_PICTURE *gf_picture,
-                         int frame_idx, TplDepFrame *tpl_frame, int rf_idx,
-                         BLOCK_SIZE bsize) {
+static void predict_mv_mode_arr(VP9_COMP *cpi, MACROBLOCK *x,
+                                GF_PICTURE *gf_picture, int frame_idx,
+                                TplDepFrame *tpl_frame, int rf_idx,
+                                BLOCK_SIZE bsize) {
   const int mi_height = num_8x8_blocks_high_lookup[bsize];
   const int mi_width = num_8x8_blocks_wide_lookup[bsize];
   const int unit_rows = tpl_frame->mi_rows / mi_height;
index 63f7f99571d08b64d50dcb9121c5fd4f4e1c0465..b82cbcdaa741fd5f6f4abf4417e5774ac3849fae 100644 (file)
@@ -1901,13 +1901,12 @@ static double full_pixel_exhaustive_new(const VP9_COMP *cpi, MACROBLOCK *x,
   return bestsme;
 }
 
-double vp9_diamond_search_sad_new(const MACROBLOCK *x,
-                                  const search_site_config *cfg,
-                                  const MV *init_full_mv, MV *best_full_mv,
-                                  double *best_mv_dist, double *best_mv_cost,
-                                  int search_param, double lambda, int *num00,
-                                  const vp9_variance_fn_ptr_t *fn_ptr,
-                                  const int_mv *nb_full_mvs, int full_mv_num) {
+static double diamond_search_sad_new(
+    const MACROBLOCK *x, const search_site_config *cfg, const MV *init_full_mv,
+    MV *best_full_mv, double *best_mv_dist, double *best_mv_cost,
+    int search_param, double lambda, int *num00,
+    const vp9_variance_fn_ptr_t *fn_ptr, const int_mv *nb_full_mvs,
+    int full_mv_num) {
   int i, j, step;
 
   const MACROBLOCKD *const xd = &x->e_mbd;
@@ -2425,7 +2424,7 @@ double vp9_full_pixel_diamond_new(const VP9_COMP *cpi, MACROBLOCK *x,
   const int further_steps = MAX_MVSEARCH_STEPS - 1 - step_param;
   const MV center_mv = { 0, 0 };
   vpx_clear_system_state();
-  bestsme = vp9_diamond_search_sad_new(
+  bestsme = diamond_search_sad_new(
       x, &cpi->ss_cfg, mvp_full, best_mv, best_mv_dist, best_mv_cost,
       step_param, lambda, &n, fn_ptr, nb_full_mvs, full_mv_num);
 
@@ -2443,7 +2442,7 @@ double vp9_full_pixel_diamond_new(const VP9_COMP *cpi, MACROBLOCK *x,
       MV temp_mv;
       double mv_dist;
       double mv_cost;
-      thissme = vp9_diamond_search_sad_new(
+      thissme = diamond_search_sad_new(
           x, &cpi->ss_cfg, mvp_full, &temp_mv, &mv_dist, &mv_cost,
           step_param + n, lambda, &num00, fn_ptr, nb_full_mvs, full_mv_num);
       thissme = vp9_get_mvpred_var(x, &temp_mv, &center_mv, fn_ptr, 0);