EC_ADAPT: Perform backwards updates directly on CDFs.
The initial CDF for each frame is stored in
the frame context. CDFs for actual coding are
stored in the tile structures, and these are
what get adapted. The initial CDF is replaced
by an average CDF derived from these tile CDFs.
This is carried forward to future frames when
backward adaptation is on.
CDFs are no longer set from the 8 bit probabilities
in backwards adaptation.
For now, 8 bit probabilities are maintained for
use in the encoder and for symbols which do not
have a CDF.
Change-Id: I106b30510bfad1fa57d077f7702acc1864378a09
diff --git a/av1/encoder/bitstream.c b/av1/encoder/bitstream.c
index ccf485f..00ae1fd 100644
--- a/av1/encoder/bitstream.c
+++ b/av1/encoder/bitstream.c
@@ -4832,6 +4832,7 @@
#endif // CONFIG_GLOBAL_MOTION
}
#if CONFIG_EC_MULTISYMBOL
+#if !CONFIG_EC_ADAPT
#if CONFIG_NEW_TOKENSET
av1_coef_head_cdfs(fc);
#endif
@@ -4844,6 +4845,7 @@
#if CONFIG_EC_MULTISYMBOL
av1_set_mode_cdfs(cm);
#endif
+#endif // !CONFIG_EC_ADAPT
#endif
#if CONFIG_ANS
aom_buf_ans_flush(header_bc);