Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

support RGB when exporting a surface to a Wayland buffer #357

Open
@ceyusa

Description

@ceyusa

This is a follow up of https://bugzilla.gnome.org/show_bug.cgi?id=775698

The main issue is that mutter, the Wayland compositor for GNOME doesn't support non RGB buffers (see https://gitlab.gnome.org/GNOME/mutter/blob/master/src/wayland/meta-wayland-buffer.c#L232)

The reason why mutter cat import EGL images non-RGB is because cogl, the library that wraps GL for clutter and mutter, doesn't handle YUV textures.

Nonetheless, Weston supports YUV textures (through shaders that convert the frame's color format, as far as I understand).

As exposed in the gstreamer-vaapi bug, it is hard to force all the possible Wayland compositors to support YUV textures, it would be easier to add support the exportation of RGB EGLImages from the Intel VA-API driver (https://github.com/intel/intel-vaapi-driver/blob/master/src/i965_output_wayland.c#L267).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions