1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-11 08:37:59 +00:00

command: export rotation parameter

For completeness.
This commit is contained in:
wm4 2014-04-21 22:54:43 +02:00
parent dd39b47f7c
commit c57e51097b
2 changed files with 5 additions and 0 deletions

View File

@ -925,6 +925,9 @@ Property list
``video-params/chroma-location`` ``video-params/chroma-location``
Chroma location as string. (Exact values subject to change.) Chroma location as string. (Exact values subject to change.)
``video-params/rotate``
Intended display rotation in degrees (clockwise).
When querying the property with the client API using ``MPV_FORMAT_NODE``, 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 or with Lua ``mp.get_property_native``, this will return a mpv_node with
the following contents: the following contents:
@ -943,6 +946,7 @@ Property list
"colormatrix" MPV_FORMAT_STRING "colormatrix" MPV_FORMAT_STRING
"colorlevels" MPV_FORMAT_STRING "colorlevels" MPV_FORMAT_STRING
"chroma-location" MPV_FORMAT_STRING "chroma-location" MPV_FORMAT_STRING
"rotate" MPV_FORMAT_INT64
``dwidth``, ``dheight`` ``dwidth``, ``dheight``
Video display size. This is the video size after filters and aspect scaling Video display size. This is the video size after filters and aspect scaling

View File

@ -1789,6 +1789,7 @@ static int property_imgparams(struct mp_image_params p, int action, void *arg)
{"colormatrix", SUB_PROP_STR(mp_csp_names[p.colorspace])}, {"colormatrix", SUB_PROP_STR(mp_csp_names[p.colorspace])},
{"colorlevels", SUB_PROP_STR(mp_csp_levels_names[p.colorlevels])}, {"colorlevels", SUB_PROP_STR(mp_csp_levels_names[p.colorlevels])},
{"chroma-location", SUB_PROP_STR(mp_chroma_names[p.chroma_location])}, {"chroma-location", SUB_PROP_STR(mp_chroma_names[p.chroma_location])},
{"rotate", SUB_PROP_INT(p.rotate)},
{0} {0}
}; };