Commit 2c2e5616 authored by Michael Bebenita's avatar Michael Bebenita

Add tile support to inspection API

Change-Id: I7b6847adb031d1c866742eec0c512ef9cc26f2c8
parent 8636da61
......@@ -39,6 +39,8 @@ int ifd_inspect(insp_frame_data *fd, void *decoder) {
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
......
......@@ -58,6 +58,8 @@ struct insp_frame_data {
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
......
......@@ -461,6 +461,10 @@ void inspect(void *pbi, void *data) {
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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment