[PATCH 0/4] Weston: add support for YUV buffers

Gwenole Beauchesne gb.devel at gmail.com
Fri Apr 20 23:04:14 PDT 2012


2012/4/20 Gwenole Beauchesne <gb.devel at gmail.com>:

> Issues:
> - EXT_texture_rg requirement, could be fixed with an extra EGL attribute.
> - Use shaders to render from YUV even if some HW could sample from YUV textures directly.

Actually, I now think both cases could be handled with the same attribute.

EGL_WAYLAND_BUFFER_FORMAT_WL could specify the desired format of the
underlying plane. Should there be a HW that could sample from YUV
textures directly, we then could use the corresponding native type,
e.g. some GL_{NV12,YUV420}_MESA. If not, eglCreateImageKHR() would
return NULL, and rendering from N textures could be used instead. We
don't even need to change the rest of the patches, only the
weston_surface init function with an extra condition.


More information about the wayland-devel mailing list