Encoder: Reduce max resident set size by 23%

We reduce max stack size from 16 to 8.

Memory reduction:
- peak usage for 1080p video: 2.328 GB → 1.788 GB
- sizeof ref_mv_stack: 6144 → 3072
- sizeof(MB_MODE_INFO_EXT): 6456 → 3384
- sizeof(PICK_MODE_CONTEXT):8056 → 5000
- sizeof(PC_TREE): 201440 → 125040

Compression performance is roughly neutral:
- AWCY objective-1-fast: +0.03
- Google lowres: 0.0
- Google midres: -0.006

BUG=aomedia:940

Change-Id: Ifd38359c58e40b1c94552c5034618da8ce510f62
diff --git a/av1/common/enums.h b/av1/common/enums.h
index 2a3368a..25fa057 100644
--- a/av1/common/enums.h
+++ b/av1/common/enums.h
@@ -676,7 +676,7 @@
 /* Segment Feature Masks */
 #define MAX_MV_REF_CANDIDATES 2
 
-#define MAX_REF_MV_STACK_SIZE 16
+#define MAX_REF_MV_STACK_SIZE 8
 #if CONFIG_EXT_PARTITION
 #define REF_CAT_LEVEL 640
 #else