History

avfilter/vf_showinfo: print more Stereo 3D fields

James Almer committed 2 years ago

Commit 3478cf21 parent 3e6c7941 file · +10 −0Browse files

Unified · Split

libavfilter/vf_showinfo.c+10−0
@@ -121,6 +121,16 @@ static void dump_stereo3d(AVFilterContext *ctx, const AVFrameSideData *sd) · 120 unmodified lines
121121
122122 if (stereo->flags & AV_STEREO3D_FLAG_INVERT)
123123 av_log(ctx, AV_LOG_INFO, " (inverted)");
124+
125+ av_log(ctx, AV_LOG_INFO, ", view - %s, primary_eye - %s", av_stereo3d_view_name(stereo->view),
126+ av_stereo3d_primary_eye_name(stereo->primary_eye));
127+ if (stereo->baseline)
128+ av_log(ctx, AV_LOG_INFO, ", baseline: %"PRIu32"", stereo->baseline);
129+ if (stereo->horizontal_disparity_adjustment.num && stereo->horizontal_disparity_adjustment.den)
130+ av_log(ctx, AV_LOG_INFO, ", horizontal_disparity_adjustment: %0.4f",
131+ av_q2d(stereo->horizontal_disparity_adjustment));
132+ if (stereo->horizontal_field_of_view.num && stereo->horizontal_field_of_view.den)
133+ av_log(ctx, AV_LOG_INFO, ", horizontal_field_of_view: %0.3f", av_q2d(stereo->horizontal_field_of_view));
124134 }
125135
126136 static void dump_s12m_timecode(AVFilterContext *ctx, AVRational frame_rate, const AVFrameSideData *sd)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t