{"id":3084,"url":"https://patchwork.libcamera.org/api/covers/3084/?format=json","web_url":"https://patchwork.libcamera.org/cover/3084/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/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":"<20200313233856.25202-1-laurent.pinchart@ideasonboard.com>","date":"2020-03-13T23:38:48","name":"[libcamera-devel,0/8] Simple pipeline handler","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/cover/3084/mbox/","series":[{"id":718,"url":"https://patchwork.libcamera.org/api/series/718/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=718","date":"2020-03-13T23:38:48","name":"Simple pipeline handler","version":1,"mbox":"https://patchwork.libcamera.org/series/718/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/3084/comments/","headers":{"Return-Path":"<laurent.pinchart@ideasonboard.com>","Received":["from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 0F53F62826\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 14 Mar 2020 00:39:05 +0100 (CET)","from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi\n\t[81.175.216.236])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 3AC852D6;\n\tSat, 14 Mar 2020 00:39:04 +0100 (CET)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1584142744;\n\tbh=vWW/pv9lEAEbiweJV2ShejTZq/GBSsHomfLI+4sntw8=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=H8uqgc3f5xCA+4Z2MZJrxVob+UR1dTqOiWoJB27qC5iVqbyoH30SbwBzaAuIHG5kA\n\tunq8dGFEZyii32uZD89pKwFpMwpRbsGfaZOPZNrdmo59dDmSP6UBqjDqAN2kYvQu3c\n\thMDnWqwuZMS07apGbG8khVpb3Ilp035IOI4CxLtI=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Cc":"Martijn Braam <martijn@brixit.nl>,\n\tAndrey Konovalov <andrey.konovalov@linaro.org>,\n\tMickael GUENE <mickael.guene@st.com>,\n\tBenjamin GAIGNARD <benjamin.gaignard@st.com>","Date":"Sat, 14 Mar 2020 01:38:48 +0200","Message-Id":"<20200313233856.25202-1-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.24.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 0/8] Simple pipeline handler","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":"Fri, 13 Mar 2020 23:39:05 -0000"},"content":"Hello,\n\nThis patch series builds on Martijn's work to implement a pipeline\nhandler for simpler pipelines. Additional information about the pipeline\nhandler itself can be found in patch 8/8.\n\nPatch 1/8 adds a V4L2 API extension required for pipeline\nauto-configuration, which has been posted as an RFC but not merged in\nthe mainline kernel yet. Patches 2/8 to 7/8 than add a new utility\nfunction and small extensions to the V4L2-related classes. Patch 8/8\nadds the new simple pipeline handler.\n\nThe code has been tested on an i.MX7 platform with a greyscale sensor.\nI've kept sun6i-csi from Martijn's work in the list of supported\ndrivers, but supporting that platform will require extending the\ncorresponding driver to support the VIDIOC_ENUM_FMT extension. Once\ndone, if all goes well, the platform should work out of the box.\n\nBenjamin, Mickael, this is meant to be compatible with the stm32 and\nqcom-camss that you have previously submitted pipeline handlers for. You\nwill need to add the respective drivers to the drivers array in\nSimplePipelineHandler::match(), and, as for sun6i-csi, you will need to\nimplement support for the VIDIOC_ENUM_FMT extension, which should be\nfairly easy.\n\nLaurent Pinchart (7):\n  [DNI] include: linux: Extend VIDIOC_ENUM_FMT to support MC-centric\n    devices\n  libcamera: utils: Add string join function\n  libcamera: v4l2_subdevice: Extend [gs]etFormat() to specify format\n    type\n  libcamera: v4l2_videodevice: Support filtering formats by media bus\n    code\n  libcamera: v4l2_videodevice: Expose the device capabilities\n  libcamera: v4l2_videodevice: Downgrade 4CC conversion errors to\n    warnings\n  libcamera: v4l2_videodevice: Map V4L2_PIX_FMT_GREY to DRM FourCC\n\nMartijn Braam (1):\n  libcamera: pipeline: Add a simple pipeline handler\n\n include/linux/videodev2.h                 |   4 +-\n src/libcamera/include/utils.h             |  44 ++\n src/libcamera/include/v4l2_subdevice.h    |  11 +-\n src/libcamera/include/v4l2_videodevice.h  |   6 +-\n src/libcamera/pipeline/meson.build        |   1 +\n src/libcamera/pipeline/simple/meson.build |   3 +\n src/libcamera/pipeline/simple/simple.cpp  | 693 ++++++++++++++++++++++\n src/libcamera/utils.cpp                   |  16 +\n src/libcamera/v4l2_subdevice.cpp          |  23 +-\n src/libcamera/v4l2_videodevice.cpp        |  36 +-\n test/utils.cpp                            |   7 +-\n 11 files changed, 828 insertions(+), 16 deletions(-)\n create mode 100644 src/libcamera/pipeline/simple/meson.build\n create mode 100644 src/libcamera/pipeline/simple/simple.cpp"}