vp8_quantize_mbuv(x);
- if (x->optimize==2 ||(x->optimize && x->rddiv > 1))
+ if (x->optimize)
vp8_optimize_mbuv(x, rtcd);
vp8_inverse_transform_mbuv(IF_RTCD(&rtcd->common->idct), &x->e_mbd);
}
if (cpi->sf.optimize_coefficients == 1)
- cpi->mb.optimize = 1 + cpi->is_next_src_alt_ref;
+ cpi->mb.optimize = 1;
else
cpi->mb.optimize = 0;
// YX Temp
cpi->alt_ref_source = NULL;
cpi->is_src_frame_alt_ref = 0;
- cpi->is_next_src_alt_ref = 0;
+
#if 0
// Experimental RD Code
cm->show_frame = 0;
cpi->source_alt_ref_pending = FALSE; // Clear Pending altf Ref flag.
cpi->is_src_frame_alt_ref = 0;
- cpi->is_next_src_alt_ref = 0;
}
}
#endif
cpi->is_src_frame_alt_ref = cpi->alt_ref_source
&& (cpi->source == cpi->alt_ref_source);
- cpi->is_next_src_alt_ref = cpi->alt_ref_source
- && (vp8_lookahead_peek(cpi->lookahead, 0)
- == cpi->alt_ref_source);
if(cpi->is_src_frame_alt_ref)
cpi->alt_ref_source = NULL;
}
int source_alt_ref_active; // an alt ref frame has been encoded and is usable
int is_src_frame_alt_ref; // source of frame to encode is an exact copy of an alt ref frame
- int is_next_src_alt_ref; // source of next frame to encode is an exact copy of an alt ref frame
int gold_is_last; // golden frame same as last frame ( short circuit gold searches)
int alt_is_last; // Alt reference frame same as last ( short circuit altref search)