{"id":17061,"url":"https://patchwork.libcamera.org/api/1.1/covers/17061/?format=json","web_url":"https://patchwork.libcamera.org/cover/17061/","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":"<20220810002906.5406-1-laurent.pinchart@ideasonboard.com>","date":"2022-08-10T00:29:02","name":"[libcamera-devel,0/4] libcamera: Improve handling of fixed-size array controls","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/1.1/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/cover/17061/mbox/","series":[{"id":3401,"url":"https://patchwork.libcamera.org/api/1.1/series/3401/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3401","date":"2022-08-10T00:29:02","name":"libcamera: Improve handling of fixed-size array controls","version":1,"mbox":"https://patchwork.libcamera.org/series/3401/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/17061/comments/","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 4061AC3272\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 10 Aug 2022 00:29:22 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 998FD6332D;\n\tWed, 10 Aug 2022 02:29:20 +0200 (CEST)","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 1349061FA9\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 10 Aug 2022 02:29:19 +0200 (CEST)","from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi\n\t[62.78.145.57])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 627BC481;\n\tWed, 10 Aug 2022 02:29:18 +0200 (CEST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1660091360;\n\tbh=08poPdMZNXc+OeG5SY0glgzdV+tlhrwhu0UqyevsiZg=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=XwawVj/3AGfPST2kGCzoHc3++4ZUBglTtD+Jwc3J5q5vP5Om3Xp48iYfy97526u21\n\tQ9yiykqCDQi8gy5+IXFdtx/si9KFdS2b+pcvEL3D3ra6qQccoFmNhWaUL6BQ9RV0iB\n\tHKFlE9bArqBvU5IhKEtTeEBcf7gUOU9l2TGfkBfFqQYLYAxkBNNmlDJawlLkpMHobb\n\tK1J9PG0ai/l9evj/hzgtKM7HvrP3cVEgl6EvLRwUxicTQ72Ow2XCfTit1LIOtW2DNs\n\tqrLlVyywBB8Jb1tdRE2pGqDGFTcVa4e3m42NoJr58L8HA0Ec5NPmUJD+50OEd8HpYY\n\tHRI+rO7qo2adg==","v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1660091358;\n\tbh=08poPdMZNXc+OeG5SY0glgzdV+tlhrwhu0UqyevsiZg=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=H6P2CG0wAEm9sc195YrTYRju9+Tn1IacZAZHYvfhR/7h39veMoeK6NWXofcoPpQVv\n\t0d1f8MGSafq1DP32q0GhqYk1QRNPuJOAHCvGoJusVALvXrdbmcdgJQ2CcVlAhoPLs1\n\tRXLxAqr0RhrokddOQPFvGwedotNNxFUoH31IWCq0="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"H6P2CG0w\"; dkim-atps=neutral","To":"libcamera-devel@lists.libcamera.org","Date":"Wed, 10 Aug 2022 03:29:02 +0300","Message-Id":"<20220810002906.5406-1-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.35.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 0/4] libcamera: Improve handling of\n\tfixed-size array controls","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>","From":"Laurent Pinchart via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Hello,\n\nThis patch series builds up on top of Christian's \"ibcamera: controls:\nGenerate and use fixed-sized Span types\" patch to improve support of\nfixed-size array controls. It started as an itch I wanted to scratch,\nbeing bothered by the explicit Span construction in the Raspberry Pi IPA\nmodule.\n\nThe series starts with patch 1/4 that refactors the gen-controls.py\nscript to make it (hopefully) more readable, without any functional\nchange. Patch 2/4 then improves the YAML notation for variable-size\narray controls, and patch 3/4 extends the Control class to provide\naccess, at compilation time, to the control size in addition to its\ntype. The result is patch 4/4, which reverts usage of the explicit Span\nconstructor in the Rapsberry Pi IPA module.\n\nAs described in patch 3/4, this could be extended with the ability to\nperform runtime checks on control sizes, but that's an exercise I'll\nleave for later.\n\nLaurent Pinchart (4):\n  utils: gen-controls: Factor out YAML data handling in classes\n  utils: gen-controls: Improve YAML notation for variable-size array\n    controls\n  libcamera: controls: Store array control size in Control class\n  ipa: raspberrypi: Remove unneeded Span casts\n\n include/libcamera/controls.h        |  20 +--\n src/ipa/raspberrypi/raspberrypi.cpp |  19 ++-\n src/libcamera/control_ids.yaml      |   2 +-\n src/libcamera/controls.cpp          |  37 ++++--\n src/libcamera/property_ids.yaml     |   4 +-\n utils/gen-controls.py               | 195 +++++++++++++++++++++-------\n 6 files changed, 197 insertions(+), 80 deletions(-)\n\n\nbase-commit: e1ca213609abb99cc1b6e6f16214bf5a0936f3b7"}