Scale up the codec to operate in unit of 2x2 transform block
Scale the counting scheme to operate in the unit of 2x2 transform
block size and 4x4 coding block size.
Change-Id: I7c4155c3b29df109278187d5ce0aa78d85a6245e
diff --git a/av1/common/enums.h b/av1/common/enums.h
index ac39c66..0b238d6 100644
--- a/av1/common/enums.h
+++ b/av1/common/enums.h
@@ -35,7 +35,11 @@
#define MIN_SB_SIZE_LOG2 6
// Pixels per Mode Info (MI) unit
+#if CONFIG_CB4X4
+#define MI_SIZE_LOG2 2
+#else
#define MI_SIZE_LOG2 3
+#endif
#define MI_SIZE (1 << MI_SIZE_LOG2)
// MI-units per max superblock (MI Block - MIB)