summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2017-10-05 11:58:37 -0700
committerwm4 <wm4@nowhere>2017-10-09 18:36:54 +0200
commit8fc21fd0d5aa733eb4388c68d22c8f1748f16e33 (patch)
treeed8cd273727edd72f3cac74bba764409c08d551c /DOCS
parente80a2a572dd7a426fc11b3776985b99460214d75 (diff)
downloadmpv-8fc21fd0d5aa733eb4388c68d22c8f1748f16e33.tar.bz2
mpv-8fc21fd0d5aa733eb4388c68d22c8f1748f16e33.tar.xz
vo_gpu: add android opengl backend
At the moment, rendering on Android requires ``--vo=opengl-cb`` and a lot of java<->c++ bridging code to receive the receive and react to the render callback in java. Performance also suffers with opengl-cb, due to the overhead of context switching in JNI. With this patch, Android can render using ``--vo=gpu --gpu-context=android`` (after setting ``--wid`` to point to an android.view.Surface on-screen).
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/man/options.rst5
-rw-r--r--DOCS/man/vo.rst3
2 files changed, 7 insertions, 1 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index c047e6d2d4..bf097dab42 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -2483,7 +2483,8 @@ Window
On Android, the ID is interpreted as ``android.view.Surface``. Pass it as a
value cast to ``intptr_t``. Use with ``--vo=mediacodec_embed`` and
- ``--hwdec=mediacodec`` for direct rendering using MediaCodec.
+ ``--hwdec=mediacodec`` for direct rendering using MediaCodec, or with
+ ``--vo=gpu --gpu-context=android`` (with or without ``--hwdec=mediacodec-copy``).
``--no-window-dragging``
Don't move the window when clicking on it and moving the mouse pointer.
@@ -4637,6 +4638,8 @@ The following video options are currently all specific to ``--vo=gpu`` and
DRM/EGL
x11egl
X11/EGL
+ android
+ Android/EGL. Requires ``--wid`` be set to an ``android.view.Surface``.
mali-fbdev
Direct fbdev/EGL support on some ARM/MALI devices.
vdpauglx
diff --git a/DOCS/man/vo.rst b/DOCS/man/vo.rst
index 5dac65a38a..5d22ab15e7 100644
--- a/DOCS/man/vo.rst
+++ b/DOCS/man/vo.rst
@@ -512,3 +512,6 @@ Available video output drivers are:
Since this video output driver uses native decoding and rendering routines,
many of mpv's features (subtitle rendering, OSD/OSC, video filters, etc)
are not available with this driver.
+
+ To use hardware decoding with ``--vo-gpu`` instead, use
+ ``--hwdec=mediacodec-copy`` along with ``--gpu-context=android``.