ref: dc902fedb2052037edca8016d244df49bd7ca1d5
parent: 340260585c9becb8c905ca8679904b78e0364a43
parent: d549aa3b175015d865a6fc050b4b18942e4c3713
author: Yaowu Xu <[email protected]>
date: Wed Mar 11 06:41:20 EDT 2015
Merge "Separate rd_thresh adaption by ref_frame"
--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -1052,6 +1052,7 @@
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];