From 5463d3eeff0aeff4f9c6d7634ace157ceb2cec57 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 18 Oct 2021 16:50:39 +0200 Subject: vo_gpu: hwdec: add Android hwdec utilizing AImageReader --- DOCS/man/options.rst | 10 ++++++++-- DOCS/man/vo.rst | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'DOCS') diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index c2b715c1ce..0d18784b26 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -1264,7 +1264,8 @@ Video :dxva2-copy: copies video back to system RAM (Windows only) :vdpau: requires ``--vo=gpu`` with X11, or ``--vo=vdpau`` (Linux only) :vdpau-copy: copies video back into system RAM (Linux with some GPUs only) - :mediacodec: requires ``--vo=mediacodec_embed`` (Android only) + :mediacodec: requires ``--vo=gpu --gpu-context=android`` + or ``--vo=mediacodec_embed`` (Android only) :mediacodec-copy: copies video back to system RAM (Android only) :mmal: requires ``--vo=gpu`` (Raspberry Pi only - default if available) :mmal-copy: copies video back to system RAM (Raspberry Pi only) @@ -1364,6 +1365,11 @@ Video ``rpi`` always uses the hardware overlay renderer, even with ``--vo=gpu``. + ``mediacodec`` is not safe. It forces RGB conversion (not with ``-copy``) + and how well it handles non-standard colorspaces is not known. + In the rare cases where 10-bit is supported the bit depth of the output + will be reduced to 8. + ``cuda`` should usually be safe, but depending on how a file/stream has been mixed, it has been reported to corrupt the timestamps causing glitched, flashing frames. It can also sometimes cause massive @@ -3317,7 +3323,7 @@ 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, or with - ``--vo=gpu --gpu-context=android`` (with or without ``--hwdec=mediacodec-copy``). + ``--vo=gpu --gpu-context=android`` (with or without ``--hwdec=mediacodec``). ``--no-window-dragging`` Don't move the window when clicking on it and moving the mouse pointer. diff --git a/DOCS/man/vo.rst b/DOCS/man/vo.rst index 13d4050dc4..5e5b1394d9 100644 --- a/DOCS/man/vo.rst +++ b/DOCS/man/vo.rst @@ -676,8 +676,8 @@ Available video output drivers are: 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``. + To use hardware decoding with ``--vo=gpu`` instead, use ``--hwdec=mediacodec`` + or ``mediacodec-copy`` along with ``--gpu-context=android``. ``wlshm`` (Wayland only) Shared memory video output driver without hardware acceleration that works -- cgit v1.2.3