From: Marco Date: Thu, 5 Oct 2017 01:01:37 +0000 (-0700) Subject: Adjust threshold for adapt_partition for speed 6. X-Git-Tag: v1.7.0~122^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18262a8576097ca05f5c8c2d10ea966917bb1b8c;p=libvpx Adjust threshold for adapt_partition for speed 6. Lower SAD threshold to select non_rd pickmode partition at superblock level more often. Small gain in metrics, small/negligible decrease in speed. Change-Id: I0f728236b91a604e4ca7e02039adc54d5985c4dc --- diff --git a/vp9/encoder/vp9_speed_features.c b/vp9/encoder/vp9_speed_features.c index 57a60684a..4d4a579e6 100644 --- a/vp9/encoder/vp9_speed_features.c +++ b/vp9/encoder/vp9_speed_features.c @@ -540,9 +540,7 @@ static void set_rt_speed_feature_framesize_independent( if (sf->use_source_sad) { sf->adapt_partition_source_sad = 1; sf->adapt_partition_thresh = - (cm->width * cm->height <= 640 * 360) ? 40000 : 80000; - if (sf->use_altref_onepass && cpi->refresh_alt_ref_frame && !is_keyframe) - sf->adapt_partition_thresh = (3 * sf->adapt_partition_thresh) >> 2; + (cm->width * cm->height <= 640 * 360) ? 40000 : 60000; if (cpi->content_state_sb_fd == NULL && (!cpi->use_svc || cpi->svc.spatial_layer_id == cpi->svc.number_spatial_layers - 1)) {