ffprobe: always print all Stereo3D fields

ffprobe is meant to generate parseable output, and if a field is present, it
should be printed even if it has a default value.

Signed-off-by: James Almer <jamrial@gmail.com>
release/7.1
James Almer 7 months ago
parent 3a5202d026
commit 5140d8334e
  1. 3
      fftools/ffprobe.c
  2. 3
      tests/ref/fate/matroska-spherical-mono
  3. 6
      tests/ref/fate/matroska-spherical-mono-remux
  4. 12
      tests/ref/fate/matroska-stereo_mode
  5. 3
      tests/ref/fate/matroska-vp8-alpha-remux
  6. 3
      tests/ref/fate/mov-spherical-mono

@ -2546,11 +2546,8 @@ static void print_pkt_side_data(WriterContext *w,
print_int("inverted", !!(stereo->flags & AV_STEREO3D_FLAG_INVERT)); print_int("inverted", !!(stereo->flags & AV_STEREO3D_FLAG_INVERT));
print_str("view", av_stereo3d_view_name(stereo->view)); print_str("view", av_stereo3d_view_name(stereo->view));
print_str("primary_eye", av_stereo3d_primary_eye_name(stereo->primary_eye)); print_str("primary_eye", av_stereo3d_primary_eye_name(stereo->primary_eye));
if (stereo->baseline)
print_int("baseline", stereo->baseline); print_int("baseline", stereo->baseline);
if (stereo->horizontal_disparity_adjustment.num && stereo->horizontal_disparity_adjustment.den)
print_q("horizontal_disparity_adjustment", stereo->horizontal_disparity_adjustment, '/'); print_q("horizontal_disparity_adjustment", stereo->horizontal_disparity_adjustment, '/');
if (stereo->horizontal_field_of_view)
print_int("horizontal_field_of_view", stereo->horizontal_field_of_view); print_int("horizontal_field_of_view", stereo->horizontal_field_of_view);
} else if (sd->type == AV_PKT_DATA_SPHERICAL) { } else if (sd->type == AV_PKT_DATA_SPHERICAL) {
const AVSphericalMapping *spherical = (AVSphericalMapping *)sd->data; const AVSphericalMapping *spherical = (AVSphericalMapping *)sd->data;

@ -5,6 +5,9 @@ type=2D
inverted=0 inverted=0
view=packed view=packed
primary_eye=none primary_eye=none
baseline=0
horizontal_disparity_adjustment=0/0
horizontal_field_of_view=0
[/SIDE_DATA] [/SIDE_DATA]
[SIDE_DATA] [SIDE_DATA]
side_data_type=Spherical Mapping side_data_type=Spherical Mapping

@ -29,6 +29,9 @@ type=2D
inverted=0 inverted=0
view=packed view=packed
primary_eye=none primary_eye=none
baseline=0
horizontal_disparity_adjustment=0/0
horizontal_field_of_view=0
[/SIDE_DATA] [/SIDE_DATA]
[SIDE_DATA] [SIDE_DATA]
side_data_type=Spherical Mapping side_data_type=Spherical Mapping
@ -55,6 +58,9 @@ type=2D
inverted=0 inverted=0
view=packed view=packed
primary_eye=none primary_eye=none
baseline=0
horizontal_disparity_adjustment=0/0
horizontal_field_of_view=0
[/SIDE_DATA] [/SIDE_DATA]
[SIDE_DATA] [SIDE_DATA]
side_data_type=Spherical Mapping side_data_type=Spherical Mapping

@ -134,6 +134,9 @@ type=side by side
inverted=0 inverted=0
view=packed view=packed
primary_eye=none primary_eye=none
baseline=0
horizontal_disparity_adjustment=0/0
horizontal_field_of_view=0
[/SIDE_DATA] [/SIDE_DATA]
[/STREAM] [/STREAM]
[STREAM] [STREAM]
@ -151,6 +154,9 @@ type=top and bottom
inverted=1 inverted=1
view=packed view=packed
primary_eye=none primary_eye=none
baseline=0
horizontal_disparity_adjustment=0/0
horizontal_field_of_view=0
[/SIDE_DATA] [/SIDE_DATA]
[/STREAM] [/STREAM]
[STREAM] [STREAM]
@ -166,6 +172,9 @@ type=interleaved lines
inverted=1 inverted=1
view=packed view=packed
primary_eye=none primary_eye=none
baseline=0
horizontal_disparity_adjustment=0/0
horizontal_field_of_view=0
[/SIDE_DATA] [/SIDE_DATA]
[/STREAM] [/STREAM]
[STREAM] [STREAM]
@ -182,6 +191,9 @@ type=interleaved columns
inverted=1 inverted=1
view=packed view=packed
primary_eye=none primary_eye=none
baseline=0
horizontal_disparity_adjustment=0/0
horizontal_field_of_view=0
[/SIDE_DATA] [/SIDE_DATA]
[/STREAM] [/STREAM]
[STREAM] [STREAM]

@ -37,5 +37,8 @@ type=2D
inverted=0 inverted=0
view=packed view=packed
primary_eye=none primary_eye=none
baseline=0
horizontal_disparity_adjustment=0/0
horizontal_field_of_view=0
[/SIDE_DATA] [/SIDE_DATA]
[/STREAM] [/STREAM]

@ -5,6 +5,9 @@ type=2D
inverted=0 inverted=0
view=packed view=packed
primary_eye=none primary_eye=none
baseline=0
horizontal_disparity_adjustment=0/0
horizontal_field_of_view=0
[/SIDE_DATA] [/SIDE_DATA]
[SIDE_DATA] [SIDE_DATA]
side_data_type=Spherical Mapping side_data_type=Spherical Mapping

Loading…
Cancel
Save