Use default CDF tables when initialising coef probs.
When creating the CDF head, do not use 8-bit probabilities
to make the CDF tables, but load them directly.
CDF tail values are created from the ONE_TOKEN relative
probability as before.
No change to BDR.
Change-Id: I7386b8952f6f69cc9b77aa1b2bee71cf8e3cc9ff
diff --git a/av1/encoder/bitstream.c b/av1/encoder/bitstream.c
index 7aa459e..7a9f04d 100644
--- a/av1/encoder/bitstream.c
+++ b/av1/encoder/bitstream.c
@@ -3302,9 +3302,6 @@
const TX_MODE tx_mode = cpi->common.tx_mode;
const TX_SIZE max_tx_size = tx_mode_to_biggest_tx_size[tx_mode];
TX_SIZE tx_size;
-#if CONFIG_EC_MULTISYMBOL
- int update = 0;
-#endif // CONFIG_EC_MULTISYMBOL
#if CONFIG_ENTROPY
AV1_COMMON *cm = &cpi->common;
SUBFRAME_STATS *subframe_stats = &cpi->subframe_stats;
@@ -3352,18 +3349,12 @@
update_coef_probs_subframe(w, cpi, tx_size, cpi->branch_ct_buf,
frame_coef_probs);
-#if CONFIG_EC_MULTISYMBOL
- update = 1;
-#endif // CONFIG_EC_MULTISYMBOL
} else {
#endif // CONFIG_ENTROPY
build_tree_distribution(cpi, tx_size, frame_branch_ct,
frame_coef_probs);
update_coef_probs_common(w, cpi, tx_size, frame_branch_ct,
frame_coef_probs);
-#if CONFIG_EC_MULTISYMBOL
- update = 1;
-#endif // CONFIG_EC_MULTISYMBOL
#if CONFIG_ENTROPY
}
#endif // CONFIG_ENTROPY
@@ -3390,9 +3381,6 @@
av1_copy(cm->counts.eob_branch, eob_counts_copy);
}
#endif // CONFIG_ENTROPY
-#if CONFIG_EC_MULTISYMBOL
- if (update) av1_coef_pareto_cdfs(cpi->common.fc);
-#endif // CONFIG_EC_MULTISYMBOL
}
#endif
#endif // !CONFIG_EC_ADAPT
@@ -4886,6 +4874,9 @@
#endif // CONFIG_GLOBAL_MOTION
}
#if CONFIG_EC_MULTISYMBOL
+#if CONFIG_NEW_TOKENSET
+ av1_coef_head_cdfs(fc);
+#endif
av1_coef_pareto_cdfs(fc);
#if CONFIG_REF_MV
for (i = 0; i < NMV_CONTEXTS; ++i) av1_set_mv_cdfs(&fc->nmvc[i]);