int i;
#if CONFIG_T8X8
- int tx_type = get_seg_tx_type(xd, xd->mode_info_context->mbmi.segment_id);
+ int tx_type = get_seg_tx_type( xd,
+ xd->mode_info_context->mbmi.segment_id);
+ xd->mode_info_context->mbmi.txfm_size = tx_type;
#endif
-
if (xd->mode_info_context->mbmi.mb_skip_coeff)
{
vp8_reset_mb_tokens_context(xd);
#if CONFIG_T8X8
int tx_type = get_seg_tx_type(&x->e_mbd,
x->e_mbd.mode_info_context->mbmi.segment_id);
+ x->e_mbd.mode_info_context->mbmi.txfm_size = tx_type;
#endif
RECON_INVOKE(&rtcd->common->recon, build_intra_predictors_mby)(&x->e_mbd);
#if CONFIG_T8X8
int tx_type = get_seg_tx_type(&x->e_mbd,
x->e_mbd.mode_info_context->mbmi.segment_id);
+ x->e_mbd.mode_info_context->mbmi.txfm_size = tx_type;
#endif
RECON_INVOKE(&rtcd->common->recon, build_intra_predictors_mbuv)(&x->e_mbd);
// Where relevant assume segment data is delta data
xd->mb_segement_abs_delta = SEGMENT_DELTADATA;
-#if CONFIG_T8X8
- // 8x8TX test code.
- // This assignment does not necessarily make sense but is
- // just to test the mechanism for now.
- enable_segfeature(xd, 0, SEG_LVL_TRANSFORM);
- set_segdata( xd, 0, SEG_LVL_TRANSFORM, TX_4X4 );
- enable_segfeature(xd, 1, SEG_LVL_TRANSFORM);
- set_segdata( xd, 1, SEG_LVL_TRANSFORM, TX_8X8 );
-#endif
}
}
-
// All other frames if segmentation has been enabled
else if ( xd->segmentation_enabled )
{
// No updeates.. leave things as they are.
xd->update_mb_segmentation_map = 0;
xd->update_mb_segmentation_data = 0;
+
+#if CONFIG_T8X8
+ {
+ vp8_disable_segmentation((VP8_PTR)cpi);\r
+ clearall_segfeatures(xd);
+ vp8_enable_segmentation((VP8_PTR)cpi);
+ // 8x8TX test code.
+ // This assignment does not necessarily make sense but is
+ // just to test the mechanism for now.
+ enable_segfeature(xd, 0, SEG_LVL_TRANSFORM);
+ set_segdata( xd, 0, SEG_LVL_TRANSFORM, TX_4X4 );
+ enable_segfeature(xd, 1, SEG_LVL_TRANSFORM);
+ set_segdata( xd, 1, SEG_LVL_TRANSFORM, TX_8X8 );
+ /* force every mb to use 8x8 transform for testing*/
+ vpx_memset(cpi->segmentation_map, 1,
+ cpi->common.mb_rows * cpi->common.mb_cols);
+
+ }
+#endif
}
}
}