Add tile support to inspection API

Change-Id: I7b6847adb031d1c866742eec0c512ef9cc26f2c8
diff --git a/av1/decoder/inspection.c b/av1/decoder/inspection.c
index 174d4f4..af1fee7 100644
--- a/av1/decoder/inspection.c
+++ b/av1/decoder/inspection.c
@@ -39,6 +39,8 @@
   fd->show_frame = cm->show_frame;
   fd->frame_type = cm->frame_type;
   fd->base_qindex = cm->base_qindex;
+  fd->tile_mi_cols = cm->tile_width;
+  fd->tile_mi_rows = cm->tile_height;
 #if CONFIG_ACCOUNTING
   fd->accounting = &pbi->accounting;
 #endif
diff --git a/av1/decoder/inspection.h b/av1/decoder/inspection.h
index 5ef8b61..8a0eaf2 100644
--- a/av1/decoder/inspection.h
+++ b/av1/decoder/inspection.h
@@ -58,6 +58,8 @@
   int base_qindex;
   int mi_rows;
   int mi_cols;
+  int tile_mi_rows;
+  int tile_mi_cols;
   int16_t y_dequant[MAX_SEGMENTS][2];
   int16_t uv_dequant[MAX_SEGMENTS][2];
 #if CONFIG_CDEF
diff --git a/examples/inspect.c b/examples/inspect.c
index af1794d..c108e3d 100644
--- a/examples/inspect.c
+++ b/examples/inspect.c
@@ -461,6 +461,10 @@
                   frame_data.frame_type);
   buf += snprintf(buf, MAX_BUFFER, "  \"baseQIndex\": %d,\n",
                   frame_data.base_qindex);
+  buf += snprintf(buf, MAX_BUFFER, "  \"tileCols\": %d,\n",
+                  frame_data.tile_mi_cols);
+  buf += snprintf(buf, MAX_BUFFER, "  \"tileRows\": %d,\n",
+                  frame_data.tile_mi_rows);
   buf += put_str(buf, "  \"config\": {");
   buf += put_map(buf, config_map);
   buf += put_str(buf, "},\n");