From patchwork Fri Oct 13 07:48:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 19144 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 DD859C32C3 for ; Fri, 13 Oct 2023 07:49:11 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8C4B1629A7; Fri, 13 Oct 2023 09:49:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1697183351; bh=qWYFKgKt+M35FD/oyMfU26xNozgblvrSu93pmLzVqfc=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=J+OaEyyYpY75XnIFSBRSUXomQAgXZHIRDL4D+1hmXvAIto55j7qQSYZ8Y2Kpgotny X08rOUOMelHVxCOW7/2kbDguqN1aZcWNidTtPbNsEES9ytZ7OTYG0AaEf0VZGiCcHc J9mv2Yj+wrLwP4pXMkrEHirzQbkOiTUK38LW6lpus4gHyaY5KJZYrjoP3fh2hxqIAF 76ZcmOhFBBDq04uZlc1HnfSLLSfbAuekf1BcFajYmYhH2k0O+55HQgOrUj37iOH4W0 n2OvRsBbn62lMMCf8gVNAQRZnRy2ZS+SDxVmFjCrPgwBvLjsBf+uxr1a3f+t3U0XIb QtE7UOYrwZALw== Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 68A5062980 for ; Fri, 13 Oct 2023 09:49:01 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="lafyLJGS"; dkim-atps=neutral Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-405361bba99so18181555e9.2 for ; Fri, 13 Oct 2023 00:49:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1697183341; x=1697788141; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=I5J8mlsHtCYzdntwDAWvg8yYk6A3l+isJ5W7v+jGlFs=; b=lafyLJGSEmAZhmW7OVVTHtnKJlzbdpbH4ouS43Wtee3dTsUC+x214Nz8rV5x0/GtKp Mte1MrcsOR5C5LgbapsYe0Y+gYHZUN7wdd2e4G7iZf4qVtyqXHVsMGF5fn9kGx4fWZIu d2JHyCrK0wRHSO6RAljGmQzLe3FN9IYDk+4faw5SUsLnBk5MpFQ73jwi7NYNYHbSx9ip qJtdjuEffdv4aO5EBPyl3j/6Ao+yXLHeMeR2LCr0Q3GBZYODKLNTGh0LoXvJrSRQNrGx FeUgH7uKObJaSeInJ0SsR5qPol3rsAePlqJfd+J4jvbdE+B3D9EW9noNz9tMvbmOL6tX pCtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697183341; x=1697788141; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=I5J8mlsHtCYzdntwDAWvg8yYk6A3l+isJ5W7v+jGlFs=; b=bAX7fWiQjGUy5yLm18palzoVlJeuYIGZL0o5Rst8LPQWxXOisiDAjJ0arJqkuWv9dL H9o/1/luN3En8u/NmZ1A2EV5Y5ikgwa4CVxrT2J3rc5sD2BEngpwR5W6Ic9Egvy7m5A7 svgtwiyM6uup6+itigBhW9S4Fxo6NvZJQZz1Dy/NNllOkj7nTQiPG6Fqu0b9HovVnB09 IX4RpYPr9/XnN9ptE1KOYp4cJgWQxh4/8mtfKhDKzKgkkQVVluTpnPFvxM5ckv+2ztq2 /JOH1L4pHJZh3W7vblflwpJF0RRHjW19AzUCC/uYlhggJqkpldxPq7qM7cnxk0UX7Lkn jbuA== X-Gm-Message-State: AOJu0Yz2RAdWmC209CWMbYbNR8xg8J3yXr1W280xCPB6GCxdNpJ0Rpvl ZgnlMaWu1zS5iWTO27QG8ZWSO3QAACcUeRUD+SlQ3w== X-Google-Smtp-Source: AGHT+IGnf1n1iZGT/joIzUzLMuJ5mBYxbTT0SMShTOoCDDdtskdP7YvV7UV7fh56ysZvPakjqR4RXg== X-Received: by 2002:a05:600c:214f:b0:405:3251:47a1 with SMTP id v15-20020a05600c214f00b00405325147a1mr22927731wml.40.1697183340867; Fri, 13 Oct 2023 00:49:00 -0700 (PDT) Received: from localhost.localdomain ([93.93.133.154]) by smtp.gmail.com with ESMTPSA id m16-20020a7bca50000000b003fee6e170f9sm1791890wml.45.2023.10.13.00.49.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 00:49:00 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Fri, 13 Oct 2023 08:48:41 +0100 Message-Id: <20231013074841.16972-21-naush@raspberrypi.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231013074841.16972-1-naush@raspberrypi.com> References: <20231013074841.16972-1-naush@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 20/20] ipa: rpi: agc: When AGC channels are changed, start with the 1st channel 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: , X-Patchwork-Original-From: Naushir Patuck via libcamera-devel From: Naushir Patuck Reply-To: Naushir Patuck Cc: Jacopo Mondi Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Whenever the AGC active channels are changed, start with the first channel listed. This allows applications to rely on a particular channel being generated first. For example, multi-exposure HDR always wants the short channel first. Signed-off-by: Naushir Patuck Reviewed-by: David Plowman Reviewed-by: Jacopo Mondi --- src/ipa/rpi/controller/rpi/agc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ipa/rpi/controller/rpi/agc.cpp b/src/ipa/rpi/controller/rpi/agc.cpp index 758da0719b9b..32eb36242268 100644 --- a/src/ipa/rpi/controller/rpi/agc.cpp +++ b/src/ipa/rpi/controller/rpi/agc.cpp @@ -203,6 +203,7 @@ void Agc::setActiveChannels(const std::vector &activeChannels) LOG(RPiAgc, Debug) << "setActiveChannels " << activeChannels; activeChannels_ = activeChannels; + index_ = 0; } void Agc::switchMode(CameraMode const &cameraMode,