Cover Letter Detail
Show a cover letter.
GET /api/1.1/covers/13139/?format=api
{ "id": 13139, "url": "https://patchwork.libcamera.org/api/1.1/covers/13139/?format=api", "web_url": "https://patchwork.libcamera.org/cover/13139/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20210728161116.64489-1-jacopo@jmondi.org>", "date": "2021-07-28T16:11:11", "name": "[libcamera-devel,v2,0/5] libcamera: Initialize controls in the IPA", "submitter": { "id": 3, "url": "https://patchwork.libcamera.org/api/1.1/people/3/?format=api", "name": "Jacopo Mondi", "email": "jacopo@jmondi.org" }, "mbox": "https://patchwork.libcamera.org/cover/13139/mbox/", "series": [ { "id": 2288, "url": "https://patchwork.libcamera.org/api/1.1/series/2288/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=2288", "date": "2021-07-28T16:11:11", "name": "libcamera: Initialize controls in the IPA", "version": 2, "mbox": "https://patchwork.libcamera.org/series/2288/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/covers/13139/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 0495BC322E\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 28 Jul 2021 16:10:33 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 6F6DE687C3;\n\tWed, 28 Jul 2021 18:10:32 +0200 (CEST)", "from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net\n\t[217.70.183.195])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id E0EC360506\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 28 Jul 2021 18:10:31 +0200 (CEST)", "(Authenticated sender: jacopo@jmondi.org)\n\tby relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 67A8960009;\n\tWed, 28 Jul 2021 16:10:31 +0000 (UTC)" ], "From": "Jacopo Mondi <jacopo@jmondi.org>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Wed, 28 Jul 2021 18:11:11 +0200", "Message-Id": "<20210728161116.64489-1-jacopo@jmondi.org>", "X-Mailer": "git-send-email 2.32.0", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v2 0/5] libcamera: Initialize controls in\n\tthe IPA", "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>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Hello,\n this v2 re-proses \"libcamera: Initialize controls in the IPA\"\nwith a few patches before that aims to support lookup by ControlId *\nin de-serialized ControlInfoMap.\n\nDuring the review of v1 it has been pointed out by Umang that:\n\n# LIBCAMERA_IPA_FORCE_ISOLATION=1 cam -c1 --list-controls\n[0:10:59.880617099] [11495] ERROR IPU3 ipu3.cpp:1201 Exposure control not initializaed by the IPA\nCamera 1 not found\n\nThe issue boils down to the fact the control deserialization procedure\nre-creates ControlId to populate the deserialized ControlIdMap.\n\nAs we have globally available ControlIdMap, the ControlId * should be taken from\nthere when possible, in order to allow lookup by id.\n\nWith the new patches:\n\n# LIBCAMERA_IPA_FORCE_ISOLATION=1 cam -c1 --list-controls\nUsing camera \\_SB_.PCI0.I2C2.CAM0 as cam0\nControl: ScalerCrop: [(0x0)/1344x736..(0x0)/4224x3136]\nControl: PipelineDepth: [2..3]\nControl: TestPatternMode: [0..2]\nControl: FrameDurationLimits: [31425..320388]\nControl: ExposureTime: [41..33306]\n\nNext, when addressing the update of ControlInfoMap due to a camera configuration\nthe de-serializer caching mechanism will probably play a role. But that's for\nlater.\n\nI get a weird warning from Doxygen 1.9.2\nsrc/libcamera/ipa_controls.cpp:138: warning: Documentation for undefined enum 'IdMapType' found.\ninclude/libcamera/ipa/ipa_controls.h:18: warning: Member IdMapType (enumeration) of file ipa_controls.h is not documented.\n\nAlthough the field is documented. Maybe a doxygen bug ? I checked and scoped\nenums seems to be documented as regular enums with \\enum...\n\nv1->v2:\n- [1/5]. [2/5], [3/5]: new patches\n- [4/5]\n - Do not remove IPASettings but include it it IPAInitInfo\n - Rework a todo item as suggested by Laurent\n - Remove an non necessay initialization\n - [5/5]\n - Collect tags\n\nThanks\n j\n\n\nJacopo Mondi (5):\n libcamera: controls: Create ControlInfoMap with ControlIdMap\n libcamera: controls: Use ControlIdMap in deserialization\n test: control serialization: Test lookup by ControlId\n libcamera: ipu3: Initialize controls in the IPA\n ipa: ipu3: Tidy-up includes\n\n include/libcamera/controls.h | 13 +--\n .../libcamera/internal/control_serializer.h | 1 +\n include/libcamera/internal/v4l2_device.h | 1 +\n include/libcamera/ipa/ipa_controls.h | 9 +-\n include/libcamera/ipa/ipu3.mojom | 9 +-\n include/libcamera/ipa/raspberrypi.h | 40 +++----\n src/ipa/ipu3/ipu3.cpp | 78 ++++++++++++-\n src/ipa/ipu3/ipu3_agc.cpp | 2 +-\n src/ipa/ipu3/ipu3_agc.h | 3 -\n src/ipa/ipu3/ipu3_awb.cpp | 3 +-\n src/libcamera/control_serializer.cpp | 76 +++++++++++--\n src/libcamera/controls.cpp | 82 +++-----------\n src/libcamera/ipa_controls.cpp | 31 ++++++\n src/libcamera/pipeline/ipu3/ipu3.cpp | 103 ++++++++----------\n src/libcamera/pipeline/rkisp1/rkisp1.cpp | 3 +-\n src/libcamera/pipeline/uvcvideo/uvcvideo.cpp | 2 +-\n src/libcamera/pipeline/vimc/vimc.cpp | 2 +-\n src/libcamera/v4l2_device.cpp | 3 +-\n test/serialization/control_serialization.cpp | 22 ++++\n .../ipa_data_serializer_test.cpp | 4 +-\n 20 files changed, 307 insertions(+), 180 deletions(-)\n\n--\n2.32.0" }