From: Yaowu Xu Date: Wed, 4 Feb 2015 18:37:57 +0000 (-0800) Subject: Adjust partitioning threshold based rtc speed X-Git-Tag: v1.4.0~181^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bdfb5f986e3e890d5082fab058f866482f9ae1dc;p=libvpx Adjust partitioning threshold based rtc speed On rtc set: speed 7 quality improves about 0.5% speed 8 quality improves about 1.0% Encoding time for speed 7 changes from 67804ms to 65889ms Encoding time for speed 8 changes from 58659ms to 56808ms Change-Id: Iabcfb53012fc1b9f3326cdbc167e5758b8c7ad30 --- diff --git a/vp9/encoder/vp9_encodeframe.c b/vp9/encoder/vp9_encodeframe.c index 091013060..241ef9fe3 100644 --- a/vp9/encoder/vp9_encodeframe.c +++ b/vp9/encoder/vp9_encodeframe.c @@ -504,7 +504,7 @@ static void choose_partitioning(VP9_COMP *cpi, threshold_base = (int64_t)(threshold_multiplier * vp9_convert_qindex_to_q(cm->base_qindex, cm->bit_depth)); threshold = threshold_base; - threshold_bsize_min = threshold_base << 6; + threshold_bsize_min = threshold_base << cpi->oxcf.speed; threshold_bsize_max = threshold_base; // Modify thresholds for key frame and for low-resolutions (set lower