Remove the symbol counts for intra with EC_ADAPT.
This commit has no change to metrics.
Change-Id: I363f18698117dc9c3de10e3ae46cbc5a6ce840d0
diff --git a/av1/decoder/decodemv.c b/av1/decoder/decodemv.c
index 7139887..0de16c7 100644
--- a/av1/decoder/decodemv.c
+++ b/av1/decoder/decodemv.c
@@ -145,8 +145,13 @@
aom_reader *r, int size_group) {
const PREDICTION_MODE y_mode =
read_intra_mode(r, ec_ctx->y_mode_cdf[size_group]);
+#if !CONFIG_EC_ADAPT || CONFIG_ENTROPY_STATS
FRAME_COUNTS *counts = xd->counts;
if (counts) ++counts->y_mode[size_group][y_mode];
+#else
+ /* TODO(negge): Can we remove this parameter? */
+ (void)xd;
+#endif // !CONFIG_EC_ADAPT || CONFIG_ENTROPY_STATS
return y_mode;
}
@@ -155,8 +160,13 @@
PREDICTION_MODE y_mode) {
const PREDICTION_MODE uv_mode =
read_intra_mode(r, ec_ctx->uv_mode_cdf[y_mode]);
+#if !CONFIG_EC_ADAPT || CONFIG_ENTROPY_STATS
FRAME_COUNTS *counts = xd->counts;
if (counts) ++counts->uv_mode[y_mode][uv_mode];
+#else
+ /* TODO(negge): Can we remove this parameter? */
+ (void)xd;
+#endif // !CONFIG_EC_ADAPT || CONFIG_ENTROPY_STATS
return uv_mode;
}