Reduce motion search range temporarily
Use reduced motion search range for the expensive wedge motion
search. It brings back ~20% encoding speed. The compression loss
is 0.088% for lowres and 0.1% for midres2.
STATS_CHANGED
Change-Id: I38225d29333c3411446cea59af6c84f19298b8c1
diff --git a/av1/encoder/motion_search_facade.c b/av1/encoder/motion_search_facade.c
index 9834b19..42019ef 100644
--- a/av1/encoder/motion_search_facade.c
+++ b/av1/encoder/motion_search_facade.c
@@ -451,8 +451,13 @@
const FULLPEL_MV start_fullmv = get_fullmv_from_mv(&cur_mv[id].as_mv);
// Small-range full-pixel motion search.
- bestsme = av1_full_pixel_search(start_fullmv, &full_ms_params, 5, NULL,
- &best_mv.as_fullmv, NULL);
+ if (mbmi->interinter_comp.type != COMPOUND_WEDGE) {
+ bestsme = av1_full_pixel_search(start_fullmv, &full_ms_params, 5, NULL,
+ &best_mv.as_fullmv, NULL);
+ } else {
+ bestsme = av1_refining_search_8p_c(&full_ms_params, start_fullmv,
+ &best_mv.as_fullmv);
+ }
// Restore the pointer to the first (possibly scaled) prediction buffer.
if (id) xd->plane[plane].pre[0] = ref_yv12[0];