]> granicus.if.org Git - libvpx/blobdiff - vp9/encoder/vp9_mbgraph.c
Change meaning of cpi->sf.first_step and rename.
[libvpx] / vp9 / encoder / vp9_mbgraph.c
index 65fdcbe50cf614658a4cfe298dd5104b4ce5cd61..1b8f873184e6b71a16372f277cc88e22547bb985 100644 (file)
@@ -35,8 +35,9 @@ static unsigned int do_16x16_motion_iteration(VP9_COMP *cpi,
   int_mv ref_full;
 
   // Further step/diamond searches as necessary
-  int step_param = cpi->sf.first_step +
+  int step_param = cpi->sf.reduce_first_step_size +
       (cpi->speed < 8 ? (cpi->speed > 5 ? 1 : 0) : 2);
+  step_param = MIN(step_param, (cpi->sf.max_step_search_steps - 2));
 
   vp9_clamp_mv_min_max(x, ref_mv);