This is to prevent the evaluation of a mode from using values left
over from a mode evaluated prior in the loop.
Change-Id: Ife2c6ceb76d2f7365fd262515d3ae48229033c2d
// These variables hold are rolling total cost and distortion for this mode
rate2 = 0;
distortion2 = 0;
+ rate_y = 0;
+ rate_uv =0;
this_mode = vp8_mode_order[mode_index];
x->e_mbd.mode_info_context->mbmi.mode = this_mode;
int mb_skippable;
int mb_skip_allowed;
int has_y2 = ( this_mode!=SPLITMV
- &&this_mode!=B_PRED
- &&this_mode!=I8X8_PRED);
+ &&this_mode!=B_PRED
+ &&this_mode!=I8X8_PRED);
if((cpi->common.txfm_mode == ALLOW_8X8) && has_y2)
{
cpi->rd_thresh_mult[mode_index] = (cpi->rd_thresh_mult[mode_index] >= (MIN_THRESHMULT + 2)) ? cpi->rd_thresh_mult[mode_index] - 2 : MIN_THRESHMULT;
cpi->rd_threshes[mode_index] = (cpi->rd_baseline_thresh[mode_index] >> 7) * cpi->rd_thresh_mult[mode_index];
}
-
// If the mode did not help improve the best error case then raise the threshold for testing that mode next time around.
else
{