aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-05-08 22:22:45 +0200
committerSimon Ser <contact@emersion.fr>2023-05-21 20:28:45 +0000
commit17b10746b44e847e6f6b55d5f9d40d536d10c96c (patch)
tree3cb12ae0051385b4824c36cdf48c23736b3017ed
parent96f3f3c92e8db16f9acc551b2673db70108988f2 (diff)
render/pixel-format: add YVYU and VYUY
-rw-r--r--render/pixel_format.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/render/pixel_format.c b/render/pixel_format.c
index f3bec1d1..b81f561d 100644
--- a/render/pixel_format.c
+++ b/render/pixel_format.c
@@ -158,6 +158,18 @@ static const struct wlr_pixel_format_info pixel_format_info[] = {
.bytes_per_block = 8,
.has_alpha = true,
},
+ {
+ .drm_format = DRM_FORMAT_YVYU,
+ .bytes_per_block = 4,
+ .block_width = 2,
+ .block_height = 1,
+ },
+ {
+ .drm_format = DRM_FORMAT_VYUY,
+ .bytes_per_block = 4,
+ .block_width = 2,
+ .block_height = 1,
+ },
};
static const size_t pixel_format_info_size =