Fix compiling for supertx
Change-Id: I0a067e89d544f72d7ce08b0e4cccb77c4c3c9497
This commit is contained in:
Родитель
1f89d0f880
Коммит
41a36ded53
|
@ -2690,6 +2690,7 @@ static void write_modes_sb(AV1_COMP *const cpi, const TileInfo *const tile,
|
|||
int skip;
|
||||
const int bsw = mi_size_wide[bsize];
|
||||
const int bsh = mi_size_high[bsize];
|
||||
|
||||
xd->mi = cm->mi_grid_visible + mi_offset;
|
||||
supertx_size = mbmi->tx_size;
|
||||
#if CONFIG_DEPENDENT_HORZTILES
|
||||
|
@ -2711,6 +2712,11 @@ static void write_modes_sb(AV1_COMP *const cpi, const TileInfo *const tile,
|
|||
get_ext_tx_set(supertx_size, bsize, 1, cm->reduced_tx_set_used);
|
||||
if (eset > 0) {
|
||||
#if CONFIG_EC_MULTISYMBOL
|
||||
#if CONFIG_EC_ADAPT
|
||||
FRAME_CONTEXT *ec_ctx = xd->tile_ctx;
|
||||
#else
|
||||
FRAME_CONTEXT *ec_ctx = cm->fc;
|
||||
#endif
|
||||
aom_write_symbol(w, av1_ext_tx_inter_ind[eset][mbmi->tx_type],
|
||||
ec_ctx->inter_ext_tx_cdf[eset][supertx_size],
|
||||
ext_tx_cnt_inter[eset]);
|
||||
|
|
|
@ -10819,19 +10819,20 @@ void av1_rd_pick_inter_mode_sb(const AV1_COMP *cpi, TileDataEnc *tile_data,
|
|||
*returnrate_nocoef -= av1_cost_bit(av1_get_intra_inter_prob(cm, xd),
|
||||
mbmi->ref_frame[0] != INTRA_FRAME);
|
||||
#if CONFIG_MOTION_VAR || CONFIG_WARPED_MOTION
|
||||
#if CONFIG_MOTION_VAR && CONFIG_WARPED_MOTION
|
||||
MODE_INFO *const mi = xd->mi[0];
|
||||
const MOTION_MODE motion_allowed = motion_mode_allowed(
|
||||
#if CONFIG_GLOBAL_MOTION && SEPARATE_GLOBAL_MOTION
|
||||
0, xd->global_motion,
|
||||
#endif // CONFIG_GLOBAL_MOTION && SEPARATE_GLOBAL_MOTION
|
||||
mi);
|
||||
#if CONFIG_MOTION_VAR && CONFIG_WARPED_MOTION
|
||||
if (motion_allowed == WARPED_CAUSAL)
|
||||
#endif // CONFIG_MOTION_VAR && CONFIG_WARPED_MOTION
|
||||
*returnrate_nocoef -= cpi->motion_mode_cost[bsize][mbmi->motion_mode];
|
||||
#if CONFIG_MOTION_VAR && CONFIG_WARPED_MOTION
|
||||
else if (motion_allowed == OBMC_CAUSAL)
|
||||
*returnrate_nocoef -=
|
||||
cpi->motion_mode_cost1[bsize][mbmi->motion_mode];
|
||||
#else
|
||||
*returnrate_nocoef -= cpi->motion_mode_cost[bsize][mbmi->motion_mode];
|
||||
#endif // CONFIG_MOTION_VAR && CONFIG_WARPED_MOTION
|
||||
#endif // CONFIG_MOTION_VAR || CONFIG_WARPED_MOTION
|
||||
#endif // CONFIG_SUPERTX
|
||||
|
|
Загрузка…
Ссылка в новой задаче