{"id":22634,"url":"https://patchwork.libcamera.org/api/1.1/covers/22634/?format=json","web_url":"https://patchwork.libcamera.org/cover/22634/","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":"<20250123140727.458567-1-dan.scally@ideasonboard.com>","date":"2025-01-23T14:07:24","name":"[v2,0/3] Add flicker mitigation controls to AgcMeanLuminance","submitter":{"id":156,"url":"https://patchwork.libcamera.org/api/1.1/people/156/?format=json","name":"Dan Scally","email":"dan.scally@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/cover/22634/mbox/","series":[{"id":4968,"url":"https://patchwork.libcamera.org/api/1.1/series/4968/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=4968","date":"2025-01-23T14:07:24","name":"Add flicker mitigation controls to AgcMeanLuminance","version":2,"mbox":"https://patchwork.libcamera.org/series/4968/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/22634/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 63703BDE6B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 23 Jan 2025 14:07:48 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 724F26855B;\n\tThu, 23 Jan 2025 15:07:47 +0100 (CET)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 8D1E761878\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 23 Jan 2025 15:07:45 +0100 (CET)","from mail.ideasonboard.com\n\t(cpc141996-chfd3-2-0-cust928.12-3.cable.virginm.net [86.13.91.161])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id BDE6289A;\n\tThu, 23 Jan 2025 15:06:41 +0100 (CET)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"bGrGXLlr\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1737641201;\n\tbh=bC9ULQiz/qlkf83VYs2ziwvo7/0ltfsj901AxdQCJ+U=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=bGrGXLlr5jqyp0bBAckurmTHCvPgMEd6AZpg2ZwrQ5KL5bsDOPr8X9d+6+WIo2RvE\n\tYhO9jlrq8ww2M3vxhxOuE0Fho0NAJt1KvNg3zqVsuN+8HVLDAkfQlrNpGGn0q73G7u\n\tMDQXOip9v8AqPxKAV7EvRhVgMsA8ttXHoxap9D5c=","From":"Daniel Scally <dan.scally@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Cc":"Daniel Scally <dan.scally@ideasonboard.com>","Subject":"[PATCH v2 0/3] Add flicker mitigation controls to AgcMeanLuminance","Date":"Thu, 23 Jan 2025 14:07:24 +0000","Message-Id":"<20250123140727.458567-1-dan.scally@ideasonboard.com>","X-Mailer":"git-send-email 2.34.1","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":"Hello all\n\nThis short series adds flicker mitigation controls to each IPA that derives its\nAGC algorithm from AgcMeanLuminance. The mitigation works by adding\nAeFlickerMode and AeFlickerPeriod controls to AgcMeanLuminance - with the mode\nset to FlickerManual exposure time is capped at a multiple of AeFlickerPeriod,\nwith the reduction in exposure time offset by increases to analogue and digital\ngain.\n\nThe first patch is purely to make patch #3 slightly tidier; we have to add the\nnew function call to the algorithms queueRequest() function in the same commit\nas introducing the new controls or we end up with a commit where the IPAs are\nadvertising a control they don't actually support.\n\nThanks\nDan\n\nDaniel Scally (3):\n  ipa: ipu3: Add skeleton Agc::queueRequest() function\n  ipa: libipa: Adjust for flicker in ExposureModeHelper\n  ipa: libipa: Add flicker controls to AgcMeanLuminance\n\n src/ipa/ipu3/algorithms/agc.cpp         | 11 ++++++\n src/ipa/ipu3/algorithms/agc.h           |  3 ++\n src/ipa/libipa/agc_mean_luminance.cpp   | 48 ++++++++++++++++++++++++-\n src/ipa/libipa/agc_mean_luminance.h     |  5 +++\n src/ipa/libipa/exposure_mode_helper.cpp | 37 ++++++++++++++++---\n src/ipa/libipa/exposure_mode_helper.h   |  6 +++-\n src/ipa/mali-c55/algorithms/agc.cpp     |  2 ++\n src/ipa/rkisp1/algorithms/agc.cpp       |  2 ++\n 8 files changed, 108 insertions(+), 6 deletions(-)"}