summaryrefslogtreecommitdiffstats
path: root/DOCS/man
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2024-03-11 20:46:00 +0100
committersfan5 <sfan5@live.de>2024-03-16 13:27:34 +0100
commitaa75a0e9d29e401dd048f6ec077b8c3c4129efee (patch)
treed6066197cf4179884292fe036d5c4e39b603247e /DOCS/man
parentbc8038cffd2b2181f19fa9b07a99b61eba1fe6a1 (diff)
downloadmpv-aa75a0e9d29e401dd048f6ec077b8c3c4129efee.tar.bz2
mpv-aa75a0e9d29e401dd048f6ec077b8c3c4129efee.tar.xz
vo_drm: add support for YUYV format
As the first aligned format this required a fix to reconfig(). Adding the other component-swapped formats in this group would be trivial but I checked the DRM database [1] and no driver exists that supports one of those but not YUYV and this is quite fringe as-is, so I opted not to. [1] <https://drmdb.emersion.fr/formats>
Diffstat (limited to 'DOCS/man')
-rw-r--r--DOCS/man/vo.rst15
1 files changed, 9 insertions, 6 deletions
diff --git a/DOCS/man/vo.rst b/DOCS/man/vo.rst
index 2c9390114d..84c18f89bd 100644
--- a/DOCS/man/vo.rst
+++ b/DOCS/man/vo.rst
@@ -627,17 +627,20 @@ Available video output drivers are:
lower resolution (the video when handled by the hwdec will be on the
drmprime-video plane and at full 4K resolution)
- ``--drm-format=<xrgb8888|xrgb2101010>``
+ ``--drm-format=<xrgb8888|xbgr8888|xrgb2101010|xbgr2101010|yuyv>``
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.
+ choose the bit depth and color type of the DRM mode.
+
+ xrgb8888 is your usual 24bpp packed RGB format with 8 bits of padding.
+ xrgb2101010 is a 30bpp packed RGB format with 2 bits of padding.
+ yuyv is a 32bpp packed YUV 4:2:2 format. No planar formats are currently
+ supported.
There are cases when xrgb2101010 will work with the ``drm`` VO, but not
with the ``drm`` backend for the ``gpu`` VO. This is because with the
``gpu`` VO, in addition to requiring support in your DRM driver,
- requires support for xrgb2101010 in your EGL driver
+ requires support for xrgb2101010 in your EGL driver.
+ yuyv only ever works with the ``drm`` VO.
``--drm-draw-surface-size=<[WxH]>``
Sets the size of the surface used on the draw plane. The surface will