{"id":17555,"url":"https://patchwork.libcamera.org/api/1.1/covers/17555/?format=json","web_url":"https://patchwork.libcamera.org/cover/17555/","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":"<20221006230747.11688-1-laurent.pinchart@ideasonboard.com>","date":"2022-10-06T23:07:43","name":"[libcamera-devel,v2,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/17555/mbox/","series":[{"id":3541,"url":"https://patchwork.libcamera.org/api/1.1/series/3541/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3541","date":"2022-10-06T23:07:43","name":"libcamera: Improve handling of fixed-size array controls","version":2,"mbox":"https://patchwork.libcamera.org/series/3541/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/17555/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 1798BBD16B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu,  6 Oct 2022 23:07:55 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 9336762CFD;\n\tFri,  7 Oct 2022 01:07:54 +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 7C8F6603D7\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri,  7 Oct 2022 01:07:53 +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 BC5D46D6;\n\tFri,  7 Oct 2022 01:07:52 +0200 (CEST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1665097674;\n\tbh=VrIlySdh6nxGSgR+FfjRqgQytDPM6rXi7VNW7fH9kmw=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=x88PRuebRwqTBPQeYZDy0S1LyoPhNs5X4CopWeJbU9h7Zwwuc6GjpmCn6LBOZ/qUf\n\tbX5cWl/7fIlJu+T+xBYxM4pDf4BupSdaJa9YZ3TU3BEP/mZosEvCsIqlHL81IkAYX5\n\tLpoc+2fAhFpMcyVVb2hDJZQzjqwpBe7RXVCRbZbM2mIhktcovjC4FmMkn45TsgtXHB\n\t6mqOxSMFZDxT5h2dc/FDpDa6Xi6E2xKhGvWVA1YHIjKh6uLXV3yFJr5/Bt3njUnJWU\n\t0sB9IghQgUv7ZosnpCJOAaFf42tm3eDPqkojwnUsNcSXkak3tPsUxu7uGdZdH6hx5g\n\trux0ezBVDB1XQ==","v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1665097673;\n\tbh=VrIlySdh6nxGSgR+FfjRqgQytDPM6rXi7VNW7fH9kmw=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=wI40zPWM81+zVPPTh30mmMS0JW6SUHPWWtGjA2ncS2ruPNQ3cVAOuCNm71VreQulR\n\tRf5WGa6Uynuj/hsYG+LDjbQZJ/sDo1IKNWHSgILOG2RkPYNNw1825KTsld9Wp1Vfjk\n\tFPWJaJRfdK1yaE/XLFvRLn/yR0zrFQEB5iIr9b+k="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"wI40zPWM\"; dkim-atps=neutral","To":"libcamera-devel@lists.libcamera.org","Date":"Fri,  7 Oct 2022 02:07:43 +0300","Message-Id":"<20221006230747.11688-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 v2 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 \"libcamera: 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 improves the Control::set() function to\nconstruct the Span using the size provided by the Control class\ndefinition. The result is patch 4/4, which reverts usage of the explicit\nSpan constructor in the Rapsberry Pi IPA module.\n\nCompared to v1, the intrusive 3/4 patch got replaced with a much simpler\nversion.\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: Construct Span with size for array controls\n  ipa: raspberrypi: Remove unneeded Span casts\n\n include/libcamera/controls.h        |   6 +-\n src/ipa/raspberrypi/raspberrypi.cpp |  19 ++-\n src/libcamera/control_ids.yaml      |   2 +-\n src/libcamera/controls.cpp          |   2 +-\n src/libcamera/property_ids.yaml     |   4 +-\n utils/gen-controls.py               | 175 ++++++++++++++++++++--------\n 6 files changed, 141 insertions(+), 67 deletions(-)\n\n\nbase-commit: 8c2b092a20ec0c6bcfc4af489fb6b4b7ab656d63"}