[PATCH 0/6] Add YUV formats support to dmabuf, and a v4l2 client

Emmanuel Gil Peyrot emmanuel.peyrot at collabora.com
Tue Nov 24 11:28:23 PST 2015


This series makes the gl-renderer accept the YUYV, NV12 and YUV420
dmabuf formats using the existing shader path.  There is no
implementation in pixman-renderer, nor any drm passthrough in case the
hardware supports this.

It also adds a new client, weston-simple-dmabuf-v4l, which retrieves
dmabuf fds from V4L2 and sends them to the compositor.  It supports
both single- and multi-planar v4l2 APIs, and was tested against both
the uvcvideo and the vivid module in Linux 4.2 and 4.3.

I also renamed the old Intel-specific simple-dmabuf to
simple-dmabuf-intel, and fixed a few deficiencies found during the
development of simple-dmabuf-v4l.

Emmanuel Gil Peyrot (6):
  linux-dmabuf: Move the attributes part of linux_dmabuf_buffer into its
    own struct
  gl-renderer: introduce a new struct dmabuf_image
  gl-renderer: Add support for a few YUV dmabuf formats
  clients: rename simple-dmabuf into simple-dmabuf-intel
  clients: Fix a few issues in simple-dmabuf-intel
  clients: add simple-v4l-dmabuf client

 .gitignore                    |   3 +-
 Makefile.am                   |  27 +-
 clients/simple-dmabuf-intel.c | 588 ++++++++++++++++++++++++++
 clients/simple-dmabuf-v4l.c   | 939 ++++++++++++++++++++++++++++++++++++++++++
 clients/simple-dmabuf.c       | 591 --------------------------
 configure.ac                  |  34 +-
 src/compositor-drm.c          |  12 +-
 src/gl-renderer.c             | 413 +++++++++++++++----
 src/linux-dmabuf.c            |  58 +--
 src/linux-dmabuf.h            |  14 +-
 10 files changed, 1947 insertions(+), 732 deletions(-)
 create mode 100644 clients/simple-dmabuf-intel.c
 create mode 100644 clients/simple-dmabuf-v4l.c
 delete mode 100644 clients/simple-dmabuf.c

-- 
2.6.2



More information about the wayland-devel mailing list