Extend the eob context model
Account for 1-D/2-D transform kernels for the eob modeling. To
maintain a smaller context cardinality, set the two 1-D transform
kernels in the same category. The difference in directions should
be largely covered by the scan order.
This and the previous CLs on nz_map context modeling together
improve the compression performance of level-map coefficient coding
system by 0.4% for lowres.
Change-Id: I8c4f03ca01ce3d248950d04bd1266f445b4227a0
diff --git a/av1/decoder/decodetxb.c b/av1/decoder/decodetxb.c
index 5006b19..d7732e5 100644
--- a/av1/decoder/decodetxb.c
+++ b/av1/decoder/decodetxb.c
@@ -324,7 +324,7 @@
int is_equal = 0;
for (int i = 1; i < max_eob_pt; i++) {
- int eob_pos_ctx = get_eob_pos_ctx(i);
+ int eob_pos_ctx = av1_get_eob_pos_ctx(tx_type, i);
is_equal = av1_read_record_bin(
counts, r, ec_ctx->eob_flag_cdf[txs_ctx][plane_type][eob_pos_ctx], 2,
ACCT_STR);