From 68e7e89835f1489194c219ebb78f57738cac1c29 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 23 Jun 2015 15:20:21 +0200 Subject: command: export stereo 3D tags Fixes #2066. --- DOCS/man/input.rst | 3 +++ player/command.c | 4 ++++ 2 files changed, 7 insertions(+) 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} }; -- cgit v1.2.3