From 8fc21fd0d5aa733eb4388c68d22c8f1748f16e33 Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Thu, 5 Oct 2017 11:58:37 -0700 Subject: 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). --- DOCS/man/vo.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'DOCS/man/vo.rst') 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``. -- cgit v1.2.3