Add gm parameter coding based on ref parameters

Change-Id: Ic2344a6475b967fa07f70b3ffad2714de657bb49
diff --git a/av1/common/mv.h b/av1/common/mv.h
index 67f36b6..d516934 100644
--- a/av1/common/mv.h
+++ b/av1/common/mv.h
@@ -121,6 +121,7 @@
 //
 // XX_MIN, XX_MAX are also computed to avoid repeated computation
 
+#define SUBEXPFIN_K 3
 #define GM_TRANS_PREC_BITS 6
 #define GM_ABS_TRANS_BITS 12
 #define GM_ABS_TRANS_ONLY_BITS (GM_ABS_TRANS_BITS - GM_TRANS_PREC_BITS + 3)
diff --git a/av1/common/onyxc_int.h b/av1/common/onyxc_int.h
index f5558b2..7079cdd 100644
--- a/av1/common/onyxc_int.h
+++ b/av1/common/onyxc_int.h
@@ -108,6 +108,9 @@
   MV_REF *mvs;
   int mi_rows;
   int mi_cols;
+#if CONFIG_GLOBAL_MOTION
+  WarpedMotionParams global_motion[TOTAL_REFS_PER_FRAME];
+#endif  // CONFIG_GLOBAL_MOTION
   aom_codec_frame_buffer_t raw_frame_buffer;
   YV12_BUFFER_CONFIG buf;
 #if CONFIG_TEMPMV_SIGNALING