{"id":14684,"url":"https://patchwork.libcamera.org/api/covers/14684/?format=json","web_url":"https://patchwork.libcamera.org/cover/14684/","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":"<20211123091451.67404-1-jeanmichel.hautbois@ideasonboard.com>","date":"2021-11-23T09:14:40","name":"[libcamera-devel,v2,00/11] Introduce AGC for RkISP1","submitter":{"id":75,"url":"https://patchwork.libcamera.org/api/people/75/?format=json","name":"Jean-Michel Hautbois","email":"jeanmichel.hautbois@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/cover/14684/mbox/","series":[{"id":2741,"url":"https://patchwork.libcamera.org/api/series/2741/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2741","date":"2021-11-23T09:14:40","name":"Introduce AGC for RkISP1","version":2,"mbox":"https://patchwork.libcamera.org/series/2741/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/14684/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 A78C5BDB13\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 23 Nov 2021 09:15:00 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 39A7C60376;\n\tTue, 23 Nov 2021 10:14:59 +0100 (CET)","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 137AB60121\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 23 Nov 2021 10:14:57 +0100 (CET)","from tatooine.ideasonboard.com (unknown\n\t[IPv6:2a01:e0a:169:7140:3c3b:9149:b:8aa9])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 9BA29A1B;\n\tTue, 23 Nov 2021 10:14:56 +0100 (CET)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"uKj2mi8K\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1637658896;\n\tbh=p4iBPmacD3VX3QdKcxeLGR1CszcEFTrNyx6o26JMGQo=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=uKj2mi8K577qWtXUyeLyXrOkOlq+clK+fifvIQk1vQgoJai3AzEU5v15jP6xeuvEi\n\t9ttVIKCW3Pgn6+u/byBJI1RDiKEYCX3LeFJivo41jTOcazTTy2eRLhRWwWMqattAbv\n\tja0SXq5tCpcoF/l8YHUxcc+bXhZJ2AS2DYU1sASw=","From":"Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Tue, 23 Nov 2021 10:14:40 +0100","Message-Id":"<20211123091451.67404-1-jeanmichel.hautbois@ideasonboard.com>","X-Mailer":"git-send-email 2.32.0","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v2 00/11] Introduce AGC for RkISP1","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\nThis is the v2 of the RkISP1 AGC series.\n\nIn this version, a template for the Algorithm class is introduced in\npatch 6/11 and 7/11 for the doc missing.\n\nNow that AGC is working pretty nicely on IPU3, make it work on RkISP1\ntoo.\n\nFor that purpose, patches 1/11 to 5/11 reuse the concepts of Algorithm and\nIPAContext and make those part of the rkisp1 IPA. The effective sensor\ncontrols can then be reported with patch 8/11.\n\nPatch 9/11 is a small adaptation of the IPU3 AGC: we reuse the relative\nluminance estimation, basing it on the Y mean measured by the ISP, and\nremoves the histogram based calculation for now.\n\nIn v2 the improvements from Laurent's series \"ipa: ipu3: agc: Misc\nimprovements\" are also included.\n\nPatch 10/11 introduces a new prepare() call from the Algorithm class in\nAGC, and patch 11/11 is making it revision independant.\n\nJean-Michel Hautbois (11):\n  libipa: Correct IMX219 in CameraSensorHelper\n  ipa: rkisp1: Pass IPASettings at init call\n  ipa: Do not modify the sensor limits\n  ipa: rkisp1: Instantiate CameraSensorHelper\n  ipa: rkisp1: Introduce IPAContext\n  ipa: libipa: Introduce Algorithm class template\n  ipa: ipu3: Document AWB Algorithm overriden functions\n  ipa: rkisp1: Report and use sensor controls\n  ipa: rkisp1: Introduce AGC\n  ipa: rkisp1: agc: Introduce prepare call\n  ipa: rkisp1: agc: Configure the number of cells used by HW\n\n include/libcamera/ipa/rkisp1.mojom            |   6 +-\n src/ipa/ipu3/algorithms/algorithm.h           |  12 +-\n src/ipa/ipu3/algorithms/awb.cpp               |   9 +\n src/ipa/ipu3/algorithms/meson.build           |   1 -\n src/ipa/ipu3/ipu3.cpp                         |   4 +-\n .../{ipu3/algorithms => libipa}/algorithm.cpp |  35 +--\n src/ipa/libipa/algorithm.h                    |  41 +++\n src/ipa/libipa/camera_sensor_helper.cpp       |   2 +-\n src/ipa/libipa/meson.build                    |   1 +\n src/ipa/rkisp1/algorithms/agc.cpp             | 286 ++++++++++++++++++\n src/ipa/rkisp1/algorithms/agc.h               |  58 ++++\n src/ipa/rkisp1/algorithms/algorithm.h         |  28 ++\n src/ipa/rkisp1/algorithms/meson.build         |   5 +\n src/ipa/rkisp1/ipa_context.cpp                | 110 +++++++\n src/ipa/rkisp1/ipa_context.h                  |  51 ++++\n src/ipa/rkisp1/meson.build                    |  11 +-\n src/ipa/rkisp1/rkisp1.cpp                     | 128 ++++----\n src/libcamera/pipeline/rkisp1/rkisp1.cpp      |   5 +-\n 18 files changed, 701 insertions(+), 92 deletions(-)\n rename src/ipa/{ipu3/algorithms => libipa}/algorithm.cpp (74%)\n create mode 100644 src/ipa/libipa/algorithm.h\n create mode 100644 src/ipa/rkisp1/algorithms/agc.cpp\n create mode 100644 src/ipa/rkisp1/algorithms/agc.h\n create mode 100644 src/ipa/rkisp1/algorithms/algorithm.h\n create mode 100644 src/ipa/rkisp1/algorithms/meson.build\n create mode 100644 src/ipa/rkisp1/ipa_context.cpp\n create mode 100644 src/ipa/rkisp1/ipa_context.h"}