summaryrefslogtreecommitdiff
path: root/avprobe.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2016-04-21 17:24:08 -0400
committerVittorio Giovara <vittorio.giovara@gmail.com>2016-05-17 12:25:27 -0400
commit8e757716c61e0563a63829e30b02d5ba2a422ad6 (patch)
treea0cac24ac341a9e43dfc04c4e5c0c8682c2d3d16 /avprobe.c
parent0c4468dc185fa8b9e7d6add914595c5e928b24fd (diff)
avprobe: Print stereo3d information
Diffstat (limited to 'avprobe.c')
-rw-r--r--avprobe.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/avprobe.c b/avprobe.c
index cc82b239d2..abaaee1374 100644
--- a/avprobe.c
+++ b/avprobe.c
@@ -27,6 +27,7 @@
#include "libavutil/display.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
+#include "libavutil/stereo3d.h"
#include "libavutil/dict.h"
#include "libavutil/libm.h"
#include "libavdevice/avdevice.h"
@@ -723,9 +724,12 @@ static void show_stream(InputFile *ifile, InputStream *ist)
if (stream->nb_side_data) {
int i, j;
+
probe_object_header("sidedata");
for (i = 0; i < stream->nb_side_data; i++) {
const AVPacketSideData* sd = &stream->side_data[i];
+ AVStereo3D *stereo;
+
switch (sd->type) {
case AV_PKT_DATA_DISPLAYMATRIX:
probe_object_header("displaymatrix");
@@ -737,6 +741,14 @@ static void show_stream(InputFile *ifile, InputStream *ist)
av_display_rotation_get((int32_t *)sd->data));
probe_object_footer("displaymatrix");
break;
+ case AV_PKT_DATA_STEREO3D:
+ stereo = (AVStereo3D *)sd->data;
+ probe_object_header("stereo3d");
+ probe_str("type", av_stereo3d_type_name(stereo->type));
+ probe_int("inverted",
+ !!(stereo->flags & AV_STEREO3D_FLAG_INVERT));
+ probe_object_footer("stereo3d");
+ break;
}
}
probe_object_footer("sidedata");