aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Paul B Mahol <onemda@gmail.com>2015-12-18 11:02:10 +0100
committerGravatar wm4 <wm4@nowhere>2015-12-18 15:35:06 +0100
commitf1909bc23123461982eba611ae4c5cd3d16c1630 (patch)
treea7928864f8c48346f81613cc7bd6259167bcf7e7
parent5dd5dc66c174a5c3c4a8789572445466fd04f2e7 (diff)
vf_stereo3d: add alternating modes
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--video/filter/vf_stereo3d.c4
1 files changed, 4 insertions, 0 deletions
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