diff options
author | Carl Eugen Hoyos | 2017-09-15 21:24:48 +0100 |
---|---|---|
committer | Mark Thompson | 2017-09-19 22:47:06 +0100 |
commit | f952edaa73ee8618fcc8c105b57b9032ca0d1cec (patch) | |
tree | ea63665eff32083eb2c0f815707e7284456d2779 /libavdevice/kmsgrab.c | |
parent | b0ece2b31fdf6914bf31d02b7e5a007095d436d3 (diff) |
kmsgrab: Add more DRM plane formats
Diffstat (limited to 'libavdevice/kmsgrab.c')
-rw-r--r-- | libavdevice/kmsgrab.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavdevice/kmsgrab.c b/libavdevice/kmsgrab.c index e54534006e..11f23d8af7 100644 --- a/libavdevice/kmsgrab.c +++ b/libavdevice/kmsgrab.c @@ -207,7 +207,18 @@ static const struct { #endif #ifdef DRM_FORMAT_R16 { AV_PIX_FMT_GRAY16LE, DRM_FORMAT_R16 }, + { AV_PIX_FMT_GRAY16BE, DRM_FORMAT_R16 | DRM_FORMAT_BIG_ENDIAN }, #endif + { AV_PIX_FMT_RGB8, DRM_FORMAT_RGB332 }, + { AV_PIX_FMT_BGR8, DRM_FORMAT_BGR233 }, + { AV_PIX_FMT_RGB555LE, DRM_FORMAT_XRGB1555 }, + { AV_PIX_FMT_RGB555BE, DRM_FORMAT_XRGB1555 | DRM_FORMAT_BIG_ENDIAN }, + { AV_PIX_FMT_BGR555LE, DRM_FORMAT_XBGR1555 }, + { AV_PIX_FMT_BGR555BE, DRM_FORMAT_XBGR1555 | DRM_FORMAT_BIG_ENDIAN }, + { AV_PIX_FMT_RGB565LE, DRM_FORMAT_RGB565 }, + { AV_PIX_FMT_RGB565BE, DRM_FORMAT_RGB565 | DRM_FORMAT_BIG_ENDIAN }, + { AV_PIX_FMT_BGR565LE, DRM_FORMAT_BGR565 }, + { AV_PIX_FMT_BGR565BE, DRM_FORMAT_BGR565 | DRM_FORMAT_BIG_ENDIAN }, { AV_PIX_FMT_RGB24, DRM_FORMAT_RGB888 }, { AV_PIX_FMT_BGR24, DRM_FORMAT_BGR888 }, { AV_PIX_FMT_0RGB, DRM_FORMAT_BGRX8888 }, |