From 3325c7a912adda0b890315d8a9b8586907f2c73f Mon Sep 17 00:00:00 2001 From: Anton Kindestam Date: Tue, 13 Feb 2018 18:40:47 +0100 Subject: context_drm_egl: Introduce 30bpp support This introduces the option --drm-format (currently used only by context_drm_egl, vo_drm implementation is pending) which allows you to pick between a xrgb8888 or a xrgb2101010 visual for --gpu-context=drm. Requires a recent mesa (18.0.0_rc4 or later) to work. This also fixes a bug when using --gpu-context=drm on a 30bpp-enabled mesa (allow_rgb10_configs set to true). Previously it would've set up an XRGB8888 format at the DRM/GBM level, while a 30bpp EGLConfig would be picked, resulting in a garbled image. --- DOCS/man/vo.rst | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'DOCS') diff --git a/DOCS/man/vo.rst b/DOCS/man/vo.rst index d5a4ef9b26..8e8b9803be 100644 --- a/DOCS/man/vo.rst +++ b/DOCS/man/vo.rst @@ -484,7 +484,7 @@ Available video output drivers are: (default: empty) ``--drm-mode=`` - Mode ID to use (resolution, bit depth and frame rate). + Mode ID to use (resolution and frame rate). (default: 0) ``--drm-overlay=`` @@ -492,6 +492,19 @@ Available video output drivers are: Overlay index is zero based, and related to crtc. (default: 0) + ``--drm-format=`` + Select the DRM format to use (default: xrgb8888). This allows you to + choose the bit depth of the DRM mode. xrgb8888 is your usual 24 bit per + pixel/8 bits per channel packed RGB format with 8 bits of padding. + xrgb2101010 is a packed 30 bits per pixel/10 bits per channel packed RGB + format with 2 bits of padding. + + Unless you have an intel graphics card, a recent kernel and a recent + version of mesa (>=18) xrgb2101010 is unlikely to work for you. + + This currently only has an effect when used together with the ``drm`` + backend for the ``gpu`` VO. The ``drm`` VO always uses xrgb8888. + ``mediacodec_embed`` (Android) Renders ``IMGFMT_MEDIACODEC`` frames directly to an ``android.view.Surface``. Requires ``--hwdec=mediacodec`` for hardware decoding, along with -- cgit v1.2.3