summaryrefslogtreecommitdiffstats
path: root/DOCS/man/input.rst
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-04-20 23:11:03 +0200
committerwm4 <wm4@nowhere>2015-04-20 23:11:03 +0200
commita3680d1b2d137461008d38486cdb2d5013291e61 (patch)
treee3bafaac8a13edf57ff3456333a26fd057ac0790 /DOCS/man/input.rst
parentccfe4d64184ae4c2983ae6b099c7c7ebb3770d0f (diff)
downloadmpv-a3680d1b2d137461008d38486cdb2d5013291e61.tar.bz2
mpv-a3680d1b2d137461008d38486cdb2d5013291e61.tar.xz
client API: add a screenshot_raw command
Requested. The wild code for setting up the mpv_node probably deserves to be cleaned up later. Fixes #1800.
Diffstat (limited to 'DOCS/man/input.rst')
-rw-r--r--DOCS/man/input.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst
index 3c8c51e87b..e1c3a58421 100644
--- a/DOCS/man/input.rst
+++ b/DOCS/man/input.rst
@@ -631,6 +631,15 @@ Input Commands that are Possibly Subject to Change
unseekable streams that are going out of sync.
This command might be changed or removed in the future.
+``screenshot_raw [subtitles|video|window]``
+ Return a screenshot in memory. This can be used only through the client
+ API. The MPV_FORMAT_NODE_MAP returned by this command has the ``w``, ``h``,
+ ``stride`` fields set to obvious contents. A ``format`` field is set to
+ ``bgr0`` by default. This format is organized as ``B8G8R8X8`` (where ``B``
+ is the LSB). The contents of the padding ``X`` is undefined. The ``data``
+ field is of type MPV_FORMAT_BYTE_ARRAY with the actual image data. The image
+ is freed as soon as the result node is freed.
+
Undocumented commands: ``tv_last_channel`` (TV/DVB only),
``get_property`` (deprecated), ``ao_reload`` (experimental/internal).