{"id":20770,"url":"https://patchwork.libcamera.org/api/1.1/covers/20770/?format=json","web_url":"https://patchwork.libcamera.org/cover/20770/","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":"<20240805120522.1613342-1-stefan.klug@ideasonboard.com>","date":"2024-08-05T12:05:01","name":"[v1,0/6] rkisp1: Add manual colour temperature control","submitter":{"id":184,"url":"https://patchwork.libcamera.org/api/1.1/people/184/?format=json","name":"Stefan Klug","email":"stefan.klug@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/cover/20770/mbox/","series":[{"id":4486,"url":"https://patchwork.libcamera.org/api/1.1/series/4486/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=4486","date":"2024-08-05T12:05:01","name":"rkisp1: Add manual colour temperature control","version":1,"mbox":"https://patchwork.libcamera.org/series/4486/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/20770/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 F33E1C323E\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon,  5 Aug 2024 12:05:53 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id D690A63381;\n\tMon,  5 Aug 2024 14:05:52 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 4922B6195D\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon,  5 Aug 2024 14:05:50 +0200 (CEST)","from ideasonboard.com (unknown\n\t[IPv6:2a00:6020:448c:6c00:30ff:e7b4:349c:44ce])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id ED7E7581;\n\tMon,  5 Aug 2024 14:04:58 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"P5cKVzZG\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1722859499;\n\tbh=t6oKOsXSmqPxj7z53kjsgMecclmK2k0+SiB6nx8/jHM=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=P5cKVzZGoxkfpxwxH1r4JCK9cSsiF/NC3iXGR4zssbawlQFnExpMdc9IGExI6kHT4\n\tEQ51lRt3yeh+OuRyjf//v/cuGl22KpCm1WREd9B/wI36c5oTfEb7iuSOnaj4ETBoBm\n\tooU/tVPvVsUXbC1IJKM9ynadaAj+/dMChdWIyKuU=","From":"Stefan Klug <stefan.klug@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Cc":"David Plowman <david.plowman@raspberrypi.com>,\n\tStefan Klug <stefan.klug@ideasonboard.com>","Subject":"[PATCH v1 0/6] rkisp1: Add manual colour temperature control","Date":"Mon,  5 Aug 2024 14:05:01 +0200","Message-ID":"<20240805120522.1613342-1-stefan.klug@ideasonboard.com>","X-Mailer":"git-send-email 2.43.0","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","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":"This series adds the ability to manually set the colour temperature\ncontrol. It is a partial resurrection of the \"libcamera: controls:\nUpdate the ColourTemperature control to be writable\" series by David\nPlowman [1], but with a implementation for the rkisp1 instead of the\nrpi.\n\nPatch 1 updates the control id documentation. Patches 2-3 implement the\ncontrol for the rkisp1. Patches 4-6 update the tuning scripts\naccordingly. \n\nIt depends on the \"Two small tuning script cleanups\" series [2].  Please\nsee the individual commit messages for more details.\n\nBest regards,\nStefan\n\n[1] https://patchwork.libcamera.org/project/libcamera/list/?series=4083 \n[2] https://patchwork.libcamera.org/project/libcamera/list/?series=4484\n\n\nStefan Klug (6):\n  libcamera: controls: Update the ColourTemperature control to be\n    writable\n  ipa: rkisp1: awb: Load white balance gains from tuning file\n  ipa: rkisp1: awb: Implement ColourTemperature control\n  libtuning: Modify ctt_awb.awb() so that it can run in our context\n  libtuning: Add initial AWB module\n  utils: tuning: rkisp1: Replace static AWB with new AWB module\n\n src/ipa/rkisp1/algorithms/awb.cpp             | 38 +++++++++++++\n src/ipa/rkisp1/algorithms/awb.h               |  6 ++\n src/libcamera/control_ids_core.yaml           | 24 ++++++--\n utils/tuning/libtuning/ctt_awb.py             | 55 ++++++++++---------\n .../tuning/libtuning/modules/awb/__init__.py  |  6 ++\n utils/tuning/libtuning/modules/awb/awb.py     | 42 ++++++++++++++\n utils/tuning/libtuning/modules/awb/rkisp1.py  | 27 +++++++++\n utils/tuning/rkisp1.py                        |  4 +-\n 8 files changed, 170 insertions(+), 32 deletions(-)\n create mode 100644 utils/tuning/libtuning/modules/awb/__init__.py\n create mode 100644 utils/tuning/libtuning/modules/awb/awb.py\n create mode 100644 utils/tuning/libtuning/modules/awb/rkisp1.py"}