aom_wb_write_literal(wb, data, get_unsigned_bits(max));
}
-#if !CONFIG_EC_ADAPT
+#if !CONFIG_EC_ADAPT || !CONFIG_DAALA_EC
static void prob_diff_update(const aom_tree_index *tree,
aom_prob probs[/*n - 1*/],
const unsigned int counts[/*n - 1*/], int n,
#else
#if !CONFIG_EC_ADAPT
-
static void update_ext_tx_probs(AV1_COMMON *cm, aom_writer *w) {
const int savings_thresh = av1_cost_one(GROUP_DIFF_UPDATE_PROB) -
av1_cost_zero(GROUP_DIFF_UPDATE_PROB);
if (mode != TX_MODE_SELECT) aom_wb_write_literal(wb, mode, 2);
}
+#if !CONFIG_EC_ADAPT
static void update_txfm_probs(AV1_COMMON *cm, aom_writer *w,
FRAME_COUNTS *counts) {
#if CONFIG_TILE_GROUPS
counts->tx_size[i][j], i + 2, probwt, w);
}
}
+#endif
static void write_interp_filter(InterpFilter filter,
struct aom_write_bit_buffer *wb) {
#if CONFIG_LOOP_RESTORATION
encode_restoration(cm, header_bc);
#endif // CONFIG_LOOP_RESTORATION
-
+#if !CONFIG_EC_ADAPT
update_txfm_probs(cm, header_bc, counts);
-
+#endif
update_coef_probs(cpi, header_bc);
#if CONFIG_VAR_TX