From 63575a5d205d9824b71f8d630c0c8c7d798e82b4 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 7 Jun 2023 18:18:56 +0200 Subject: [PATCH] render/pixel-format: add YUYV and UYVY --- render/pixel_format.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/render/pixel_format.c b/render/pixel_format.c index b81f561df..c30b8bfd9 100644 --- a/render/pixel_format.c +++ b/render/pixel_format.c @@ -158,12 +158,24 @@ static const struct wlr_pixel_format_info pixel_format_info[] = { .bytes_per_block = 8, .has_alpha = true, }, + { + .drm_format = DRM_FORMAT_YUYV, + .bytes_per_block = 4, + .block_width = 2, + .block_height = 1, + }, { .drm_format = DRM_FORMAT_YVYU, .bytes_per_block = 4, .block_width = 2, .block_height = 1, }, + { + .drm_format = DRM_FORMAT_UYVY, + .bytes_per_block = 4, + .block_width = 2, + .block_height = 1, + }, { .drm_format = DRM_FORMAT_VYUY, .bytes_per_block = 4,