]> granicus.if.org Git - libvpx/commitdiff
adjust rtc setting and threshold
authorYaowu Xu <yaowu@google.com>
Mon, 2 Feb 2015 16:05:31 +0000 (08:05 -0800)
committerYaowu Xu <yaowu@google.com>
Tue, 3 Feb 2015 01:43:46 +0000 (17:43 -0800)
1. Adjusted the threshold for coef update computation based on counts
of tx used, avoid coef update computation when count is low (<20)
2. Move sf->lpf_pick = LPF_PICK_MINIMAL_LPF to speed 8.

Change-Id: I02b44309e40fcdbf135c7934ae067a3f42502d30

vp9/encoder/vp9_bitstream.c
vp9/encoder/vp9_speed_features.c

index c7d489db6c4d5dce25d0667e73799467ecd23a26..3a70364aeeec86b5f87798e14d8bb2f51457e560 100644 (file)
@@ -674,7 +674,7 @@ static void update_coef_probs(VP9_COMP *cpi, vp9_writer* w) {
   for (tx_size = TX_4X4; tx_size <= max_tx_size; ++tx_size) {
     vp9_coeff_stats frame_branch_ct[PLANE_TYPES];
     vp9_coeff_probs_model frame_coef_probs[PLANE_TYPES];
-    if (cpi->td.counts->tx.tx_totals[tx_size] == 0 ||
+    if (cpi->td.counts->tx.tx_totals[tx_size] <= 20 ||
         (tx_size >= TX_16X16 && cpi->sf.tx_size_search_method == USE_TX_8X8)) {
       vp9_write_bit(w, 0);
     } else {
index 81f3195fef3306ecb4c70063da296ac714c81f67..8ba9adf68c1a799b1b46dbff80cd3019859d7b40 100644 (file)
@@ -337,11 +337,11 @@ static void set_rt_speed_feature(VP9_COMP *cpi, SPEED_FEATURES *sf,
     sf->adaptive_rd_thresh = 3;
     sf->mv.search_method = FAST_DIAMOND;
     sf->mv.fullpel_search_step_param = 10;
-    sf->lpf_pick = LPF_PICK_MINIMAL_LPF;
   }
   if (speed >= 8) {
     sf->adaptive_rd_thresh = 4;
     sf->mv.subpel_force_stop = 2;
+    sf->lpf_pick = LPF_PICK_MINIMAL_LPF;
   }
 }