mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
render/pixel-format: add various new formats
This commit is contained in:
parent
ad165f7daf
commit
e97ce5f459
1 changed files with 42 additions and 0 deletions
|
@ -52,6 +52,18 @@ static const struct wlr_pixel_format_info pixel_format_info[] = {
|
||||||
.bpp = 32,
|
.bpp = 32,
|
||||||
.has_alpha = true,
|
.has_alpha = true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.drm_format = DRM_FORMAT_R8,
|
||||||
|
.bpp = 8,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.drm_format = DRM_FORMAT_GR88,
|
||||||
|
.bpp = 16,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.drm_format = DRM_FORMAT_RGB888,
|
||||||
|
.bpp = 24,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
.drm_format = DRM_FORMAT_BGR888,
|
.drm_format = DRM_FORMAT_BGR888,
|
||||||
.opaque_substitute = DRM_FORMAT_INVALID,
|
.opaque_substitute = DRM_FORMAT_INVALID,
|
||||||
|
@ -70,6 +82,16 @@ static const struct wlr_pixel_format_info pixel_format_info[] = {
|
||||||
.bpp = 16,
|
.bpp = 16,
|
||||||
.has_alpha = true,
|
.has_alpha = true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.drm_format = DRM_FORMAT_BGRX4444,
|
||||||
|
.bpp = 16,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.drm_format = DRM_FORMAT_BGRA4444,
|
||||||
|
.opaque_substitute = DRM_FORMAT_BGRX4444,
|
||||||
|
.bpp = 16,
|
||||||
|
.has_alpha = true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
.drm_format = DRM_FORMAT_RGBX5551,
|
.drm_format = DRM_FORMAT_RGBX5551,
|
||||||
.opaque_substitute = DRM_FORMAT_INVALID,
|
.opaque_substitute = DRM_FORMAT_INVALID,
|
||||||
|
@ -82,6 +104,26 @@ static const struct wlr_pixel_format_info pixel_format_info[] = {
|
||||||
.bpp = 16,
|
.bpp = 16,
|
||||||
.has_alpha = true,
|
.has_alpha = true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.drm_format = DRM_FORMAT_BGRX5551,
|
||||||
|
.bpp = 16,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.drm_format = DRM_FORMAT_BGRA5551,
|
||||||
|
.opaque_substitute = DRM_FORMAT_BGRX5551,
|
||||||
|
.bpp = 16,
|
||||||
|
.has_alpha = true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.drm_format = DRM_FORMAT_XRGB1555,
|
||||||
|
.bpp = 16,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.drm_format = DRM_FORMAT_ARGB1555,
|
||||||
|
.opaque_substitute = DRM_FORMAT_XRGB1555,
|
||||||
|
.bpp = 16,
|
||||||
|
.has_alpha = true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
.drm_format = DRM_FORMAT_RGB565,
|
.drm_format = DRM_FORMAT_RGB565,
|
||||||
.opaque_substitute = DRM_FORMAT_INVALID,
|
.opaque_substitute = DRM_FORMAT_INVALID,
|
||||||
|
|
Loading…
Reference in a new issue