From 0ec35fa111391b8069640ba2f616746a1b5530a5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 17 Nov 2015 21:07:41 +0100 Subject: videotoolbox: make decoder format customizable Because apparently there's no ideal universally working format. The weird OpenGL texture format for kCVPixelFormatType_32BGRA is from: http://stackoverflow.com/questions/22077544/draw-an-iosurface-to-an-opengl-context (Which apparently got it from the linked Apple example code.) --- DOCS/man/options.rst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'DOCS/man/options.rst') diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index fe76296d5f..cdc0e75094 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -618,6 +618,14 @@ Video to temporarily set the ``hwdec`` option just during OpenGL context initialization with ``mpv_opengl_cb_init_gl()``. +``--videotoolbox-format=`` + Set the internal pixel format used by ``--hwdec=videotoolbox`` on OSX. The + choice of the format can influence performance considerably. On the other + hand, there doesn't appear to be a good way to detect the best format for + the given hardware. ``nv12``, the default works better on modern hardware, + while ``uyvy422`` appears to be better for old hardware. ``rgb0`` also + works. + ``--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 -- cgit v1.2.3