ref: 0e119457549fa7c295554890c875052bb21c9d8a
parent: a313c8e7bef2d2d9dc0a92ca43e9e4c2cbf85978
parent: 5386df41ba702490d6c1ef7f827213cdf2c3349b
author: Jingning Han <[email protected]>
date: Mon Aug 18 05:28:04 EDT 2014
Merge "Remove unused variables in vp9_rd_pick_inter_mode_sb"
--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -2523,7 +2523,6 @@
int64_t dist_uv[TX_SIZES];
int skip_uv[TX_SIZES];
PREDICTION_MODE mode_uv[TX_SIZES];
- int64_t mode_distortions[MB_MODE_COUNT] = {-1};
int intra_cost_penalty = 20 * vp9_dc_quant(cm->base_qindex, cm->y_dc_delta_q);
int best_skip2 = 0;
int mode_skip_mask = 0;
@@ -2893,12 +2892,6 @@
best_pred_rd[i] = MIN(best_pred_rd[i], this_rd);
for (i = 0; i < SWITCHABLE_FILTER_CONTEXTS; i++)
best_filter_rd[i] = MIN(best_filter_rd[i], this_rd);
- }
-
- // Store the respective mode distortions for later use.
- if (mode_distortions[this_mode] == -1
- || distortion2 < mode_distortions[this_mode]) {
- mode_distortions[this_mode] = distortion2;
}
// Did this mode help.. i.e. is it the new best mode