diff options
author | Yaowu Xu <yaowu@google.com> | 2015-02-02 08:05:31 -0800 |
---|---|---|
committer | Yaowu Xu <yaowu@google.com> | 2015-02-02 17:43:46 -0800 |
commit | 65a1a3e85de1789dfc5566af524d4f8728d943fd (patch) | |
tree | 2222548683cba4954d1f3256f8b8c705096a7cbf /vp9 | |
parent | 80e729f6018d9af2733bc45d91442391484a202b (diff) | |
download | libvpx-65a1a3e85de1789dfc5566af524d4f8728d943fd.tar libvpx-65a1a3e85de1789dfc5566af524d4f8728d943fd.tar.gz libvpx-65a1a3e85de1789dfc5566af524d4f8728d943fd.tar.bz2 libvpx-65a1a3e85de1789dfc5566af524d4f8728d943fd.zip |
adjust rtc setting and threshold
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
Diffstat (limited to 'vp9')
-rw-r--r-- | vp9/encoder/vp9_bitstream.c | 2 | ||||
-rw-r--r-- | vp9/encoder/vp9_speed_features.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_bitstream.c b/vp9/encoder/vp9_bitstream.c index c7d489db6..3a70364ae 100644 --- a/vp9/encoder/vp9_bitstream.c +++ b/vp9/encoder/vp9_bitstream.c @@ -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 { diff --git a/vp9/encoder/vp9_speed_features.c b/vp9/encoder/vp9_speed_features.c index 81f3195fe..8ba9adf68 100644 --- a/vp9/encoder/vp9_speed_features.c +++ b/vp9/encoder/vp9_speed_features.c @@ -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; } } |