| Index: source/libvpx/vp9/encoder/vp9_encodemb.c
|
| ===================================================================
|
| --- source/libvpx/vp9/encoder/vp9_encodemb.c (revision 223100)
|
| +++ source/libvpx/vp9/encoder/vp9_encodemb.c (working copy)
|
| @@ -147,7 +147,7 @@
|
| TX_SIZE tx_size) {
|
| MACROBLOCKD *const xd = &mb->e_mbd;
|
| struct macroblockd_plane *pd = &xd->plane[plane];
|
| - const int ref = is_inter_block(&xd->mode_info_context->mbmi);
|
| + const int ref = is_inter_block(&xd->this_mi->mbmi);
|
| vp9_token_state tokens[1025][2];
|
| unsigned best_index[1025][2];
|
| const int16_t *coeff_ptr = BLOCK_OFFSET(mb->plane[plane].coeff, block);
|
| @@ -199,7 +199,7 @@
|
|
|
| /* Now set up a Viterbi trellis to evaluate alternative roundings. */
|
| rdmult = mb->rdmult * err_mult;
|
| - if (mb->e_mbd.mode_info_context->mbmi.ref_frame[0] == INTRA_FRAME)
|
| + if (mb->e_mbd.mi_8x8[0]->mbmi.ref_frame[0] == INTRA_FRAME)
|
| rdmult = (rdmult * 9) >> 4;
|
| rddiv = mb->rddiv;
|
| /* Initialize the sentinel node of the trellis. */
|
| @@ -385,8 +385,8 @@
|
| const BLOCK_SIZE plane_bsize = get_plane_block_size(bsize, pd);
|
| const int num_4x4_w = num_4x4_blocks_wide_lookup[plane_bsize];
|
| const int num_4x4_h = num_4x4_blocks_high_lookup[plane_bsize];
|
| - const MB_MODE_INFO *mbmi = &xd->mode_info_context->mbmi;
|
| - const TX_SIZE tx_size = plane ? get_uv_tx_size(mbmi) : mbmi->txfm_size;
|
| + const MB_MODE_INFO *mbmi = &xd->this_mi->mbmi;
|
| + const TX_SIZE tx_size = plane ? get_uv_tx_size(mbmi) : mbmi->tx_size;
|
| int i;
|
|
|
| switch (tx_size) {
|
| @@ -569,7 +569,7 @@
|
| struct encode_b_args* const args = arg;
|
| MACROBLOCK *const x = args->x;
|
| MACROBLOCKD *const xd = &x->e_mbd;
|
| - MB_MODE_INFO *mbmi = &xd->mode_info_context->mbmi;
|
| + MB_MODE_INFO *mbmi = &xd->this_mi->mbmi;
|
| struct macroblock_plane *const p = &x->plane[plane];
|
| struct macroblockd_plane *const pd = &xd->plane[plane];
|
| int16_t *coeff = BLOCK_OFFSET(p->coeff, block);
|
| @@ -635,8 +635,8 @@
|
| vp9_short_fht16x16(src_diff, coeff, bw * 4, tx_type);
|
| else
|
| x->fwd_txm16x16(src_diff, coeff, bw * 8);
|
| - vp9_quantize_b(coeff, 256, x->skip_block, p->zbin, p->round, p->quant,
|
| - p->quant_shift, qcoeff, dqcoeff,
|
| + vp9_quantize_b(coeff, 256, x->skip_block, p->zbin, p->round,
|
| + p->quant, p->quant_shift, qcoeff, dqcoeff,
|
| pd->dequant, p->zbin_extra, eob, scan, iscan);
|
| if (!x->skip_encode && *eob) {
|
| if (tx_type == DCT_DCT)
|
| @@ -679,7 +679,7 @@
|
| scan = get_scan_4x4(tx_type);
|
| iscan = get_iscan_4x4(tx_type);
|
| if (mbmi->sb_type < BLOCK_8X8 && plane == 0)
|
| - mode = xd->mode_info_context->bmi[block].as_mode;
|
| + mode = xd->this_mi->bmi[block].as_mode;
|
| else
|
| mode = plane == 0 ? mbmi->mode : mbmi->uv_mode;
|
|
|
|
|