shithub: libvpx

Download patch

ref: 5ab6039987847e60e621615fc135e198d5dc0ad8
parent: 7e4b8a86b20a967ea0f2eb875137d69e0c5ce2b9
author: Angie Chiang <[email protected]>
date: Tue Jun 25 10:35:24 EDT 2019

Let full_pixel_exhaustive_new return int64_t

Change-Id: I2c7cd7363a1b61b7aa7c35fd9f4e6b926b67418f

--- a/vp9/encoder/vp9_mcomp.c
+++ b/vp9/encoder/vp9_mcomp.c
@@ -2018,15 +2018,15 @@
   return best_sad;
 }
 
-static double full_pixel_exhaustive_new(const VP9_COMP *cpi, MACROBLOCK *x,
-                                        MV *centre_mv_full,
-                                        const vp9_variance_fn_ptr_t *fn_ptr,
-                                        MV *dst_mv, int lambda,
-                                        const int_mv *nb_full_mvs,
-                                        int full_mv_num) {
+static int64_t full_pixel_exhaustive_new(const VP9_COMP *cpi, MACROBLOCK *x,
+                                         MV *centre_mv_full,
+                                         const vp9_variance_fn_ptr_t *fn_ptr,
+                                         MV *dst_mv, int lambda,
+                                         const int_mv *nb_full_mvs,
+                                         int full_mv_num) {
   const SPEED_FEATURES *const sf = &cpi->sf;
   MV temp_mv = { centre_mv_full->row, centre_mv_full->col };
-  double bestsme;
+  int64_t bestsme;
   int i;
   int interval = sf->mesh_patterns[0].interval;
   int range = sf->mesh_patterns[0].range;
@@ -2653,8 +2653,8 @@
     }
   }
 
-  bestsme = full_pixel_exhaustive_new(cpi, x, best_mv, fn_ptr, best_mv, lambda,
-                                      nb_full_mvs, full_mv_num);
+  bestsme = (double)full_pixel_exhaustive_new(cpi, x, best_mv, fn_ptr, best_mv,
+                                              lambda, nb_full_mvs, full_mv_num);
   return bestsme;
 }
 #endif  // CONFIG_NON_GREEDY_MV