From f1909bc23123461982eba611ae4c5cd3d16c1630 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 18 Dec 2015 11:02:10 +0100 Subject: vf_stereo3d: add alternating modes Signed-off-by: Paul B Mahol --- video/filter/vf_stereo3d.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/video/filter/vf_stereo3d.c b/video/filter/vf_stereo3d.c index c47898035f..bde261712e 100644 --- a/video/filter/vf_stereo3d.c +++ b/video/filter/vf_stereo3d.c @@ -63,6 +63,8 @@ typedef enum stereo_code { INTERLEAVE_ROWS_LR, //row-interleave (left eye has top row) INTERLEAVE_ROWS_RL, //row-interleave (right eye has top row) STEREO_AUTO, //use video metadata info (for input) + ALTERNATING_LR, //alternating frames (left first) + ALTERNATING_RL, //alternating frames (right first) STEREO_CODE_COUNT //no value set - TODO: needs autodetection } stereo_code; @@ -125,6 +127,8 @@ const struct m_opt_choice_alternatives stereo_code_names[] = { {"interleave_rows_left_first", INTERLEAVE_ROWS_LR}, {"irr", INTERLEAVE_ROWS_RL}, {"interleave_rows_right_first", INTERLEAVE_ROWS_RL}, + {"al", ALTERNATING_LR}, + {"ar", ALTERNATING_RL}, // convenience alias for MP_STEREO3D_MONO {"mono", MONO_L}, // for filter auto-insertion -- cgit v1.2.3