diff mbox series

[FFmpeg-devel,2/2] fftools/ffprobe: print some basic Tile Grid Stream Group parameters

Message ID 20240302190321.1851-2-jamrial@gmail.com
State New
Headers show
Series [FFmpeg-devel,1/2] fftools/ffprobe: add support for Stream Groups | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 fail Make fate failed
andriy/make_x86 success Make finished
andriy/make_fate_x86 fail Make fate failed

Commit Message

James Almer March 2, 2024, 7:03 p.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
 fftools/ffprobe.c | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c
index ec3c713849..6e66f4dfa8 100644
--- a/fftools/ffprobe.c
+++ b/fftools/ffprobe.c
@@ -3362,7 +3362,15 @@  static void print_stream_group_params(WriterContext *w, AVStreamGroup *stg)
     else if (stg->type == AV_STREAM_GROUP_PARAMS_IAMF_MIX_PRESENTATION)
         print_str("type", "IAMF Mix Presentation");
     else if (stg->type == AV_STREAM_GROUP_PARAMS_TILE_GRID) {
+        AVStreamGroupTileGrid *tile_grid = stg->params.tile_grid;
         print_str("type", "Tile Grid");
+        print_int("nb_tiles",          tile_grid->nb_tiles);
+        print_int("coded_width",       tile_grid->coded_width);
+        print_int("coded_height",      tile_grid->coded_height);
+        print_int("horizontal_offset", tile_grid->horizontal_offset);
+        print_int("vertical_offset",   tile_grid->vertical_offset);
+        print_int("width",             tile_grid->width);
+        print_int("height",            tile_grid->height);
     } else
         print_str_opt("type", "unknown");
 }