Removed unnecessary MB_MODE_INFO copies

These copies occurred for each macroblock in the encoder and decoder.
Thetemp MB_MODE_INFO mbmi was removed from MACROBLOCKD.  As a result,
a large number compile errors had to be fixed.

Change-Id: I4cf0ffae3ce244f6db04a4c217d52dd256382cf3
This commit is contained in:
Scott LaVarnway
2010-08-12 16:25:43 -04:00
parent f5615b6149
commit 9c7a0090e0
16 changed files with 216 additions and 246 deletions

View File

@@ -78,9 +78,9 @@ int vp8_encode_intra(VP8_COMP *cpi, MACROBLOCK *x, int use_dc_pred)
if (use_dc_pred)
{
x->e_mbd.mbmi.mode = DC_PRED;
x->e_mbd.mbmi.uv_mode = DC_PRED;
x->e_mbd.mbmi.ref_frame = INTRA_FRAME;
x->e_mbd.mode_info_context->mbmi.mode = DC_PRED;
x->e_mbd.mode_info_context->mbmi.uv_mode = DC_PRED;
x->e_mbd.mode_info_context->mbmi.ref_frame = INTRA_FRAME;
vp8_encode_intra16x16mby(IF_RTCD(&cpi->rtcd), x);
}
@@ -565,6 +565,8 @@ void vp8_first_pass(VP8_COMP *cpi)
xd->pre = *lst_yv12;
xd->dst = *new_yv12;
xd->mode_info_context = cm->mi;
vp8_build_block_offsets(x);
vp8_setup_block_dptrs(&x->e_mbd);