Move FRAME_INFO and init_frame_info() to encoder

These were declared/defined in common but only used by the encoder.

BUG=aomedia:2610

Change-Id: I3943d0d5f5b1582a6ab8fe3513c02671df5b5022
diff --git a/av1/common/av1_common_int.h b/av1/common/av1_common_int.h
index e8149f4..10fe15b 100644
--- a/av1/common/av1_common_int.h
+++ b/av1/common/av1_common_int.h
@@ -287,19 +287,6 @@
 } SequenceHeader;
 
 typedef struct {
-  int frame_width;
-  int frame_height;
-  int mi_rows;
-  int mi_cols;
-  int mb_rows;
-  int mb_cols;
-  int num_mbs;
-  aom_bit_depth_t bit_depth;
-  int subsampling_x;
-  int subsampling_y;
-} FRAME_INFO;
-
-typedef struct {
   int skip_mode_allowed;
   int skip_mode_flag;
   int ref_frame_idx_0;
@@ -1509,22 +1496,6 @@
           seq_level_idx != SEQ_LEVEL_7_2 && seq_level_idx != SEQ_LEVEL_7_3);
 }
 
-static INLINE void init_frame_info(FRAME_INFO *frame_info,
-                                   const AV1_COMMON *const cm) {
-  const CommonModeInfoParams *const mi_params = &cm->mi_params;
-  const SequenceHeader *const seq_params = &cm->seq_params;
-  frame_info->frame_width = cm->width;
-  frame_info->frame_height = cm->height;
-  frame_info->mi_cols = mi_params->mi_cols;
-  frame_info->mi_rows = mi_params->mi_rows;
-  frame_info->mb_cols = mi_params->mb_cols;
-  frame_info->mb_rows = mi_params->mb_rows;
-  frame_info->num_mbs = mi_params->MBs;
-  frame_info->bit_depth = seq_params->bit_depth;
-  frame_info->subsampling_x = seq_params->subsampling_x;
-  frame_info->subsampling_y = seq_params->subsampling_y;
-}
-
 #ifdef __cplusplus
 }  // extern "C"
 #endif
diff --git a/av1/encoder/encoder.c b/av1/encoder/encoder.c
index 09f7241..55bf534 100644
--- a/av1/encoder/encoder.c
+++ b/av1/encoder/encoder.c
@@ -2985,6 +2985,22 @@
   cpi->tpl_frame = &cpi->tpl_stats_buffer[REF_FRAMES + 1];
 }
 
+static INLINE void init_frame_info(FRAME_INFO *frame_info,
+                                   const AV1_COMMON *const cm) {
+  const CommonModeInfoParams *const mi_params = &cm->mi_params;
+  const SequenceHeader *const seq_params = &cm->seq_params;
+  frame_info->frame_width = cm->width;
+  frame_info->frame_height = cm->height;
+  frame_info->mi_cols = mi_params->mi_cols;
+  frame_info->mi_rows = mi_params->mi_rows;
+  frame_info->mb_cols = mi_params->mb_cols;
+  frame_info->mb_rows = mi_params->mb_rows;
+  frame_info->num_mbs = mi_params->MBs;
+  frame_info->bit_depth = seq_params->bit_depth;
+  frame_info->subsampling_x = seq_params->subsampling_x;
+  frame_info->subsampling_y = seq_params->subsampling_y;
+}
+
 AV1_COMP *av1_create_compressor(AV1EncoderConfig *oxcf, BufferPool *const pool,
                                 FIRSTPASS_STATS *frame_stats_buf,
                                 COMPRESSOR_STAGE stage, int num_lap_buffers,
diff --git a/av1/encoder/encoder.h b/av1/encoder/encoder.h
index 55430a0..e1d7c24 100644
--- a/av1/encoder/encoder.h
+++ b/av1/encoder/encoder.h
@@ -826,6 +826,19 @@
   int valid;
 } MV_STATS;
 
+typedef struct {
+  int frame_width;
+  int frame_height;
+  int mi_rows;
+  int mi_cols;
+  int mb_rows;
+  int mb_cols;
+  int num_mbs;
+  aom_bit_depth_t bit_depth;
+  int subsampling_x;
+  int subsampling_y;
+} FRAME_INFO;
+
 typedef struct AV1_COMP {
   QUANTS quants;
   ThreadData td;