diff options
author | Yaowu Xu <yaowu@google.com> | 2015-03-10 19:06:52 -0700 |
---|---|---|
committer | Yaowu Xu <yaowu@google.com> | 2015-03-10 19:06:52 -0700 |
commit | d549aa3b175015d865a6fc050b4b18942e4c3713 (patch) | |
tree | 65e419ef17d98a5cb626e2ce1a1d5965d7a21a5f | |
parent | 3e637a70dab1ddead4ba14caeb8f840a47a256ca (diff) | |
download | libvpx-d549aa3b175015d865a6fc050b4b18942e4c3713.tar libvpx-d549aa3b175015d865a6fc050b4b18942e4c3713.tar.gz libvpx-d549aa3b175015d865a6fc050b4b18942e4c3713.tar.bz2 libvpx-d549aa3b175015d865a6fc050b4b18942e4c3713.zip |
Separate rd_thresh adaption by ref_frame
Only update the rd_thresh factors for modes sharing same reference
frame. This helps overall compression of 6 and 7 by .13% and .19%
respectively without any noticeable speed difference.
Change-Id: Idb3a3879512c5d7d0880034516079949290690c5
-rw-r--r-- | vp9/encoder/vp9_pickmode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vp9/encoder/vp9_pickmode.c b/vp9/encoder/vp9_pickmode.c index dedec5f54..6c2576add 100644 --- a/vp9/encoder/vp9_pickmode.c +++ b/vp9/encoder/vp9_pickmode.c @@ -1052,6 +1052,7 @@ void vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x, mode_idx[INTRA_FRAME][mbmi->mode]; PREDICTION_MODE this_mode; for (ref_frame = LAST_FRAME; ref_frame <= GOLDEN_FRAME; ++ref_frame) { + if (best_ref_frame != ref_frame) continue; for (this_mode = NEARESTMV; this_mode <= NEWMV; ++this_mode) { THR_MODES thr_mode_idx = mode_idx[ref_frame][INTER_OFFSET(this_mode)]; int *freq_fact = &tile_data->thresh_freq_fact[bsize][thr_mode_idx]; |