adapt_scan experiment
Performance improvement
BDRate
lowres 0.921%
midres 0.730%
hdres 1.019%
Change-Id: I26208d6c0531937bff44de505b4ea355c7852802
diff --git a/av1/encoder/tokenize.c b/av1/encoder/tokenize.c
index 7707e8f..821adba 100644
--- a/av1/encoder/tokenize.c
+++ b/av1/encoder/tokenize.c
@@ -534,6 +534,14 @@
*tp = t;
+#if CONFIG_ADAPT_SCAN
+ // Since dqcoeff is not available here, we pass qcoeff into
+ // av1_update_scan_count_facade(). The update behavior should be the same
+ // because av1_update_scan_count_facade() only cares if coefficients are zero
+ // or not.
+ av1_update_scan_count_facade((AV1_COMMON *)cm, tx_size, tx_type, qcoeff, c);
+#endif
+
av1_set_contexts(xd, pd, tx_size, c > 0, blk_col, blk_row);
}