From patchwork Wed Aug 5 10:03:52 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 27613 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 2D93ABDE4C for ; Wed, 5 Aug 2026 10:05:09 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 3FC45680D7; Wed, 5 Aug 2026 12:05:08 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="TFt8U/c6"; dkim-atps=neutral Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 8DB1467EC4 for ; Wed, 5 Aug 2026 12:05:06 +0200 (CEST) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-4955c545a94so397355e9.3 for ; Wed, 05 Aug 2026 03:05:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1785924306; x=1786529106; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=uE2J6GKhKU+N7/C7xRth4EDgmylX1Q9Rrbaqc27nJbk=; b=TFt8U/c656hZgf9Ts2LuBszsKwtp73yuUiJBLa1DuyLIZhCgSwxlO0XJdx+6yet6Wu 54tYJXBkF6B3MBazSfpQedGegjEwHLGCspgv7I/fIU3WAYpyFoYRHoKK/oRieAxPB7G5 rU9OMJFOgh/ukdCxykn2fpV2pY1T9RGcErUoxsdSm1agkVtwBNkR46J7/o2/1E2kNG47 be1tz2Hb/w8I0O0DHr/A+/2KLDloKH9czT28RRADSudoM9S4KqiX55T3bGqIpVTvlzCl XmtM5k6WLcMuiX8l4B6sA7qlrzMoPSpX06SnFDhEvGC+I71cKkB6KyvzboMJgrORL1JY rl7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785924306; x=1786529106; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=uE2J6GKhKU+N7/C7xRth4EDgmylX1Q9Rrbaqc27nJbk=; b=F9HrnARvOpwd5JiGixbYg/vgZA9PWvvdLQS6ZZ0QLF46MtA0cnxxLOGCTsBrnDzWlf TM+jBLTzAYrEI8S/oyS3it0mwlyRTa5FRN2Tq+Lx7W8c72UJmrbIw6LpE64IAFgIwdwx 6czeMFfoMQMGb6oHod2XEJYed5L2WRXW/QQ/N6yJJ65whdbYhfjwL0NGrQW2CM4jV54Y ybAwKNo3AcSm5Spvvqed5NXP8I/8/znsyXYa1Hlk/MTsj064OVxMVviO7A/JAeA91LyL bdrBoMXkCKVKUUkY7kWy/lRDTDY5Op78buUcrL1j0uzX9s8eieEYCboanGO7AZJb5ckC S8zQ== X-Gm-Message-State: AOJu0YxGPQEgkpve3EczeSQ8yVOpxEAzt9o9ktj/YSL0MShbSfN4sYDW 8uIcWuLDcC+S9yydpnB8/N3UIWaU3wOMdtDsvVa+iLK2C52AOPi0qbTL2culMmn94N5N5hQvaJM 7lCbS0r0= X-Gm-Gg: AR+sD11o9DmY7Nj4Q59upgBtJWK0o8U/fdANptwBwZ25o+CwmrhxcTScP25eD7BLcO5 Hgd4B4nJIlGi5C3e4eS5EusmQM0Zfd6BX8+qK3gDmEoN8IbHOAAtEMNUkvvtvFWxlHsoxc+7kyC 8/3dQd7eih0gwzvJd9DfP+hERyEmQHp6PdoTMWtMX/xWlwt39BMfoUqijLQDmTWgyhXi0jr88uj hS59+q4ENOKoX4QWEj+iLyQnUj7SfQBZsbbGx8beOFXM5JuTtLCnhenucNuODlEnQzNKzoS1KUf Q9SDZFjO8Q3j2YNL5ylQiWC/DX1/OMBaQFKjtoVOhniBe/9Pa2JnY5KJJvAIp193T5CQ+2tmeyk PX4zyrocCCWSaNmHMKLBRNQiK/4GeS9lAdWfQAPA3fr+6PWk4B/H7DWLLglKzvH+KleRPmSqFTB v+mcBJ+nvX72WIIE06gx0c7y3WSsUSsc5pp+uZhC/2+W8Lp1ufLOfFNDhEsEq/ztUBCsYydUBns uPUHeSNV/7+8LpiOL/yUO2lV50esIybuxmxhPibhEa1pZl/pd5oeleU17wY6kEnEeGhbMRkNkCh xMUVOZjMZObaQkYlTCilAMFUefA5rTl41zbB0zZ743mdyKPDt8WWSD1a2BEVv/bsItAU4pMroXk 8BdhIbmXxs6Mt42+ZPiYwbIJAMPcfoW2aS9uy X-Received: by 2002:a05:600c:4f8b:b0:499:4d41:cd13 with SMTP id 5b1f17b1804b1-4994e6c1a5bmr35687105e9.0.1785924305752; Wed, 05 Aug 2026 03:05:05 -0700 (PDT) Received: from naush-dell.pitowers.org ([2a00:1098:3142:1f:7130:ff97:e57d:5cf8]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4994e04c2a1sm79185785e9.14.2026.08.05.03.05.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2026 03:05:05 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Cc: david.plowman@raspberrypi.com, Naushir Patuck Subject: [PATCH v1 0/2] Raspberry Pi: Fix algorithm gating Date: Wed, 5 Aug 2026 11:03:52 +0100 Message-ID: <20260805100502.1947139-1-naush@raspberrypi.com> X-Mailer: git-send-email 2.53.0 MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi, Hopefully a self explanitory patch series that addresses a bug reported at: https://github.com/raspberrypi/libcamera/issues/345 We should run the IPA algorithms uncondiationally on startup instead of being gated by possibly invalid metadata. This is completely safe, as we get the metadata values (gain/exposure) from the DelayedControls list by default. Regards, Naush Naushir Patuck (2): ipa: rpi: Rename mistrustFramesStartup() to mistrustMetadataStartup() ipa: rpi: Gate CamHelper::prepare() by the mistrust count src/ipa/rpi/cam_helper/cam_helper.cpp | 4 ++-- src/ipa/rpi/cam_helper/cam_helper.h | 4 ++-- src/ipa/rpi/cam_helper/cam_helper_ov5647.cpp | 4 ++-- src/ipa/rpi/common/ipa_base.cpp | 25 +++++++------------- 4 files changed, 15 insertions(+), 22 deletions(-)