[Mesa-dev] [PATCH 0/5] dri2: extended DRI image for YUV + interlaced videos

Gwenole Beauchesne gb.devel at gmail.com
Tue Apr 24 08:21:49 PDT 2012


Hi,

2012/4/23 Rob Clark <rob.clark at linaro.org>:
> On Mon, Apr 23, 2012 at 4:54 AM, Gwenole Beauchesne <gb.devel at gmail.com> wrote:

>> This patch series corresponds to the DRI2 changes needed for my new
>> refactored Wayland and VA/EGL proposals to handle YUV buffers and also
>> a means to differentiate progressive/interlaced contents.
>
> fwiw, for x11 side of things, I had previously made some patches to
> push yuv buffers to xserver via an extension to dri2 proto:

I once considered attaching this kind of info right to DRM buffers
through appropriate ioctl(), but I backtracked as the fewer
dependencies are changed, the better I feel.

> looks like your changes are mainly intended for wayland, but I suppose
> there should be some way to make this work in x11 as well, to keep
> things more similar looking for the stuff on top of the winsys
> backend..

It's not intended for Wayland only but rather for anybodoy willing to
import foreign DRM buffers which could have YUV layout. This indeed
implies Wayland but also MESA_drm_image (with some plane id spec), and
VA-API for buffers sharing between VA and GL stacks.

Mapping individual YUV components is interesting for postprocessing
client side.e.g. applying image enhancement filters (sharpening, noise
reduction, etc.) to any program that generates YUV or VA surfaces,
even if this program is a proprietary plug-in for example. In other
words, bringing this filtering logic to the main application (GLX), or
even the compositor level (for Wayland).

Regards,
Gwenole.


More information about the mesa-dev mailing list