command: export stereo 3D tags

Fixes #2066.
This commit is contained in:
wm4 2015-06-23 15:20:21 +02:00
parent 62269871aa
commit 68e7e89835
2 changed files with 7 additions and 0 deletions

View File

@ -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:

View File

@ -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}
};