{"id":2238,"url":"https://patchwork.libcamera.org/api/1.1/covers/2238/?format=json","web_url":"https://patchwork.libcamera.org/cover/2238/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20191027234312.35284-1-jacopo@jmondi.org>","date":"2019-10-27T23:43:02","name":"[libcamera-devel,00/10] libcamera: Use DRM_FORMAT_* fourcc codes","submitter":{"id":3,"url":"https://patchwork.libcamera.org/api/1.1/people/3/?format=json","name":"Jacopo Mondi","email":"jacopo@jmondi.org"},"mbox":"https://patchwork.libcamera.org/cover/2238/mbox/","series":[{"id":559,"url":"https://patchwork.libcamera.org/api/1.1/series/559/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=559","date":"2019-10-27T23:43:02","name":"libcamera: Use DRM_FORMAT_* fourcc codes","version":1,"mbox":"https://patchwork.libcamera.org/series/559/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/2238/comments/","headers":{"Return-Path":"<jacopo@jmondi.org>","Received":["from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net\n\t[217.70.183.200])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 58E266017C\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 28 Oct 2019 00:41:25 +0100 (CET)","from uno.localdomain (143.121.2.93.rev.sfr.net [93.2.121.143])\n\t(Authenticated sender: jacopo@jmondi.org)\n\tby relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 10A7620003;\n\tSun, 27 Oct 2019 23:41:24 +0000 (UTC)"],"X-Originating-IP":"93.2.121.143","From":"Jacopo Mondi <jacopo@jmondi.org>","To":"libcamera-devel@lists.libcamera.org","Date":"Mon, 28 Oct 2019 00:43:02 +0100","Message-Id":"<20191027234312.35284-1-jacopo@jmondi.org>","X-Mailer":"git-send-email 2.23.0","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 00/10] libcamera: Use DRM_FORMAT_* fourcc\n\tcodes","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Sun, 27 Oct 2019 23:41:25 -0000"},"content":"Hello,\n   this series moves libcamera to use the DRM/KMS defined DRM_FORMAT_*\nfourcc codes towards applications.\n\nThe series starts by updating the kernel headers to v5.2 and importing the\nDRM/KMS required headers.\n\nIt then introduces a PixelFormat type that aliases an uint32_t, which is used in\nall application facing types. The numerical fourcc codes used for PixelFormat\nare the DRM/KMS defined DRM_FORMAT_* fourcc codes.\n\nHelpers for conversion to/from PixelFormat and V4L2_PIX_FMT_* are provided in\nthe V4L2 video device and used in all pipeline handlers. Finally the test\napplication and QCam are ported to use te DRM/KMS defined pixel codes.\n\nThanks Laurent for having looked at the series and fixed the nasty DRM/V4L2 RBG\nformat conversion issues.\n\nThanks\n   j\n\nJacopo Mondi (9):\n  include: linux: Update headers to Linux v5.2\n  include: linux: Import DRM/KMS headers from Linux v5.2\n  include: drm_fourcc: Add Motion-JPEG fourcc code\n  libcamera: Define PixelFormat type\n  libcamera: stream: Use the newly defined PixelFormat\n  libcamera: v4l2_videodevice: Add PixelFormat conversion\n  libcamera: pipeline: Use PixelFormat for application formats\n  qcam: Convert to use DRM formats\n  test: camera: buffer_import: Use DRM/KMS format\n\nLaurent Pinchart (1):\n  libcamera: formats: Write libcamera in lowercase\n\n include/libcamera/meson.build            |    1 +\n include/libcamera/pixelformats.h         |   18 +\n include/libcamera/stream.h               |   13 +-\n include/linux/drm.h                      | 1042 ++++++++++++++++++++++\n include/linux/drm_fourcc.h               |  765 ++++++++++++++++\n include/linux/drm_mode.h                 | 1032 +++++++++++++++++++++\n include/linux/media-bus-format.h         |    4 +-\n include/linux/media.h                    |   27 +-\n include/linux/v4l2-controls.h            |   29 +\n include/linux/videodev2.h                |   31 +-\n src/libcamera/formats.cpp                |    2 +-\n src/libcamera/include/formats.h          |    2 +-\n src/libcamera/include/v4l2_videodevice.h |    5 +\n src/libcamera/meson.build                |    1 +\n src/libcamera/pipeline/ipu3/ipu3.cpp     |    7 +-\n src/libcamera/pipeline/rkisp1/rkisp1.cpp |   25 +-\n src/libcamera/pipeline/uvcvideo.cpp      |    4 +-\n src/libcamera/pipeline/vimc.cpp          |   15 +-\n src/libcamera/pixelformats.cpp           |   28 +\n src/libcamera/stream.cpp                 |   17 +-\n src/libcamera/v4l2_videodevice.cpp       |  141 +++\n src/qcam/format_converter.cpp            |   30 +-\n test/camera/buffer_import.cpp            |    4 +-\n 23 files changed, 3170 insertions(+), 73 deletions(-)\n create mode 100644 include/libcamera/pixelformats.h\n create mode 100644 include/linux/drm.h\n create mode 100644 include/linux/drm_fourcc.h\n create mode 100644 include/linux/drm_mode.h\n create mode 100644 src/libcamera/pixelformats.cpp\n\n--\n2.23.0"}