summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-07-07 14:53:58 +0200
committerwm4 <wm4@nowhere>2015-07-07 15:05:32 +0200
commit92727e7332cd8c9237552675fd8e8dba9b1a4127 (patch)
treeca66eb301794513652a994eeb3bd0eb56cb4b1c0 /DOCS
parent1d29177c5c150e700cace0c875185c6fa5e92d3c (diff)
downloadmpv-92727e7332cd8c9237552675fd8e8dba9b1a4127.tar.bz2
mpv-92727e7332cd8c9237552675fd8e8dba9b1a4127.tar.xz
vo_opengl_cb, vo_opengl: add option for preloading hwdec context
See manpage additions. This is mainly useful for vo_opengl_cb, but can also be applied to vo_opengl. On a side note, gl_hwdec_load_api() should stop using a name string, and instead always use the IDs. This should be cleaned up another time.
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/interface-changes.rst1
-rw-r--r--DOCS/man/options.rst16
2 files changed, 17 insertions, 0 deletions
diff --git a/DOCS/interface-changes.rst b/DOCS/interface-changes.rst
index c0fe2cd7cb..48e25fb7b2 100644
--- a/DOCS/interface-changes.rst
+++ b/DOCS/interface-changes.rst
@@ -20,6 +20,7 @@ Interface changes
::
--- mpv 0.10.0 will be released ---
+ - add --hwdec-preload
- add ao coreaudio exclusive suboption
- add ``track-list/N/forced`` property
- add audio-params/channel-count and ``audio-params-out/channel-count props.
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index 4086475e77..da0038bfbf 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -579,6 +579,22 @@ Video
codecs. See ``--hwdec-codecs`` to enable hardware decoding for more
codecs.
+``--hwdec-preload=<api>``
+ This is useful for the ``opengl`` and ``opengl-cb`` VOs for creating the
+ hardware decoding OpenGL interop context, but without actually enabling
+ hardware decoding itself (like ``--hwdec`` does).
+
+ If set to ``no`` (default), the ``--hwdec`` option is used.
+
+ For ``opengl``, if set, do not create the interop context on demand, but
+ when the VO is created.
+
+ For ``opengl-cb``, if set, load the interop context as soon as the OpenGL
+ context is created. Since ``opengl-cb`` has no on-demand loading, this
+ allows enabling hardware decoding at runtime at all, without having to
+ to temporarily set the ``hwdec`` option just during OpenGL context
+ initialization with ``mpv_opengl_cb_init_gl()``.
+
``--panscan=<0.0-1.0>``
Enables pan-and-scan functionality (cropping the sides of e.g. a 16:9
video to make it fit a 4:3 display without black bands). The range