mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 03:45:58 +01:00
render/pixel-format: add YVYU and VYUY
This commit is contained in:
parent
96f3f3c92e
commit
17b10746b4
1 changed files with 12 additions and 0 deletions
|
@ -158,6 +158,18 @@ static const struct wlr_pixel_format_info pixel_format_info[] = {
|
||||||
.bytes_per_block = 8,
|
.bytes_per_block = 8,
|
||||||
.has_alpha = true,
|
.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 =
|
static const size_t pixel_format_info_size =
|
||||||
|
|
Loading…
Reference in a new issue