From c1b4e5290ea1ff393bd48e3e74204f4685149045 Mon Sep 17 00:00:00 2001 From: Marco Paniconi Date: Wed, 10 Apr 2019 09:45:00 -0700 Subject: [PATCH] vp9-rtc: Adjust cb_pred_filter_search on speed & resoln Avoid some increase in encode time for higher resoln. Change-Id: I2b3b745f914f986df18fcde570cdc5bc99806f97 --- vp9/encoder/vp9_speed_features.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vp9/encoder/vp9_speed_features.c b/vp9/encoder/vp9_speed_features.c index 8c52312d0..01f3fb486 100644 --- a/vp9/encoder/vp9_speed_features.c +++ b/vp9/encoder/vp9_speed_features.c @@ -624,6 +624,7 @@ static void set_rt_speed_feature_framesize_independent( sf->use_altref_onepass = 1; sf->use_compound_nonrd_pickmode = 1; } + if (cm->width * cm->height > 1280 * 720) sf->cb_pred_filter_search = 1; } if (speed >= 6) { @@ -709,6 +710,7 @@ static void set_rt_speed_feature_framesize_independent( if (cpi->use_svc && svc->use_gf_temporal_ref_current_layer && svc->temporal_layer_id > 0) cpi->ref_frame_flags &= (~VP9_GOLD_FLAG); + if (cm->width * cm->height > 640 * 480) sf->cb_pred_filter_search = 1; } if (speed >= 8) { -- 2.40.0