ref: 19b52001720ad2f69068e8665091efd6e5bd9345
parent: ad943aa817b78b73cfe63dcbc8737abe264b3c9c
parent: eccae1de1901ca3f3a4f5fcf4225c785ac6006cd
author: Dmitry Kovalev <[email protected]>
date: Fri May 30 07:24:25 EDT 2014
Merge "Removing unused ref_frame_mask local var."
--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -3665,7 +3665,6 @@
int_mv seg_mvs[4][MAX_REF_FRAMES];
b_mode_info best_bmodes[4];
int best_skip2 = 0;
- int ref_frame_mask = 0;
int mode_skip_mask = 0;
x->skip_encode = cpi->sf.skip_encode_frame && x->q_index < QIDX_SKIP_THRESH;
@@ -3698,17 +3697,6 @@
}
frame_mv[NEWMV][ref_frame].as_int = INVALID_MV;
frame_mv[ZEROMV][ref_frame].as_int = 0;
- }
-
- for (ref_frame = LAST_FRAME;
- ref_frame <= ALTREF_FRAME && cpi->sf.reference_masking; ++ref_frame) {
- int i;
- for (i = LAST_FRAME; i <= ALTREF_FRAME; ++i) {
- if ((x->pred_mv_sad[ref_frame] >> 1) > x->pred_mv_sad[i]) {
- ref_frame_mask |= (1 << ref_frame);
- break;
- }
- }
}
for (ref_index = 0; ref_index < MAX_REFS; ++ref_index) {