]> granicus.if.org Git - libvpx/commitdiff
Adjust partitioning threshold based rtc speed
authorYaowu Xu <yaowu@google.com>
Wed, 4 Feb 2015 18:37:57 +0000 (10:37 -0800)
committerYaowu Xu <yaowu@google.com>
Wed, 4 Feb 2015 19:28:39 +0000 (11:28 -0800)
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

vp9/encoder/vp9_encodeframe.c

index 0910130600a2dc973824e32b3fc1c214fac951a0..241ef9fe3b2976551df8066e80540248c9c2ffe7 100644 (file)
@@ -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