summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-23 15:20:21 +0200
committerwm4 <wm4@nowhere>2015-06-23 15:20:21 +0200
commit68e7e89835f1489194c219ebb78f57738cac1c29 (patch)
treeab36fa16c12d342711e2a23afc95b61179962378
parent62269871aa7b52fa08ca08ea91b76ecfd61166e4 (diff)
downloadmpv-68e7e89835f1489194c219ebb78f57738cac1c29.tar.bz2
mpv-68e7e89835f1489194c219ebb78f57738cac1c29.tar.xz
command: export stereo 3D tags
Fixes #2066.
-rw-r--r--DOCS/man/input.rst3
-rw-r--r--player/command.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst
index aa0c0593f1..80e00a4ede 100644
--- a/DOCS/man/input.rst
+++ b/DOCS/man/input.rst
@@ -1349,6 +1349,9 @@ Property list
``video-params/rotate``
Intended display rotation in degrees (clockwise).
+ ``video-params/stereo-in``
+ Source file stereo 3D mode. (See ``--video-stereo-mode`` option.)
+
When querying the property with the client API using ``MPV_FORMAT_NODE``,
or with Lua ``mp.get_property_native``, this will return a mpv_node with
the following contents:
diff --git a/player/command.c b/player/command.c
index 900e0cd6ed..6bc2047250 100644
--- a/player/command.c
+++ b/player/command.c
@@ -2391,6 +2391,10 @@ static int property_imgparams(struct mp_image_params p, int action, void *arg)
SUB_PROP_STR(m_opt_choice_str(mp_csp_trc_names, p.gamma))},
{"chroma-location",
SUB_PROP_STR(m_opt_choice_str(mp_chroma_names, p.chroma_location))},
+ {"stereo-in",
+ SUB_PROP_STR(m_opt_choice_str(mp_stereo3d_names, p.stereo_in))},
+ {"stereo-out",
+ SUB_PROP_STR(m_opt_choice_str(mp_stereo3d_names, p.stereo_out))},
{"rotate", SUB_PROP_INT(p.rotate)},
{0}
};