summaryrefslogtreecommitdiff
path: root/avtools
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2017-02-10 15:26:55 -0500
committerVittorio Giovara <vittorio.giovara@gmail.com>2017-03-07 11:07:02 -0500
commit6bce6aa17d7f22bf46fde0d4610a41d2af0c0e48 (patch)
treed73f9112fdc68ce4c748dce8e3126c6842d10201 /avtools
parent114324b9e04505c71d9a3ffd854f25062fa3678f (diff)
spherical: Add tiled equirectangular type and projection-specific properties
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'avtools')
-rw-r--r--avtools/avprobe.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/avtools/avprobe.c b/avtools/avprobe.c
index 613e090be6..68f19220c8 100644
--- a/avtools/avprobe.c
+++ b/avtools/avprobe.c
@@ -792,11 +792,23 @@ static void show_stream(InputFile *ifile, InputStream *ist)
spherical = (AVSphericalMapping *)sd->data;
probe_object_header("spherical");
- if (spherical->projection == AV_SPHERICAL_EQUIRECTANGULAR)
+ if (spherical->projection == AV_SPHERICAL_EQUIRECTANGULAR) {
probe_str("projection", "equirectangular");
- else if (spherical->projection == AV_SPHERICAL_CUBEMAP)
+ } else if (spherical->projection == AV_SPHERICAL_CUBEMAP) {
probe_str("projection", "cubemap");
- else
+ probe_int("padding", spherical->padding);
+ } else if (spherical->projection == AV_SPHERICAL_EQUIRECTANGULAR_TILE) {
+ size_t l, t, r, b;
+ av_spherical_tile_bounds(spherical, par->width, par->height,
+ &l, &t, &r, &b);
+ probe_str("projection", "tiled equirectangular");
+ probe_object_header("bounding");
+ probe_int("left", l);
+ probe_int("top", t);
+ probe_int("right", r);
+ probe_int("bottom", b);
+ probe_object_footer("bounding");
+ } else
probe_str("projection", "unknown");
probe_object_header("orientation");