From patchwork Fri Oct 6 13:20:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 19122 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 02E54C32B9 for ; Fri, 6 Oct 2023 13:20:25 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id ACF356296F; Fri, 6 Oct 2023 15:20:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1696598425; bh=Uzn4lVqtWjaQ8Sb+MKfJXTauUyz0RMz4BqtMjjUX6gM=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=E0iYA+UCNG2136+oodcOeSYQsF0o5PMKI3ofiaMv4uPwUtWq/IgIfnJqzXMSYsSXD hYiraZbzNuJGU5kzyAe7W6SBLvrfvC9JpWtI+VagX0Cq7ahrpTg3Ka1M6tdZhle7tx uNYLHeYOAnUEithQMq8RlIzPuoGQ2QwtYcGsCkwnTsFoET/neNMB+ezXzCZ3lwRR3t qWmRmEKYLoxzINsYhQMJDzkTl3qNhz0MRQ/DA6LgptOeqJRHZD7wuRo/70urd6YwTP vLSlC0WcsDG8Wg1TBQksxpCw2nfOEVPUSOuX0CoqKkJ0ypLIhVZaycygREwBZZy/Fe FfwHWJM2hOMJw== Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2484F62973 for ; Fri, 6 Oct 2023 15:20:22 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="aXyMqC8J"; dkim-atps=neutral Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-31c5cac3ae2so1847429f8f.3 for ; Fri, 06 Oct 2023 06:20:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1696598421; x=1697203221; 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=yNBJCUYXo4LXGeLxzlT54YfPdDc3yVuc6878WBeD0Qg=; b=aXyMqC8J/zprDNboWHe/ciNCqDlkePwYoyVNTKnnfHZWIGYmpto5T85es4+Cl/xyns qG4Ggc3ndjwOsQezfyuLRCS5lgQ6OOtceo6ccptoZulWgNlJXduv5F+fAiPtCcHOXioV PFfksuLJ+ts0lndAL8Z3eoqWukZH6oLX1MqsAI5caziCp5Jyr97HEWv6EiOnkGpZGpZ7 Mpb0DIuE8vKm73VsmDvsi6K+76gRgcuiocDzk0aUBxMQf2Vk5EI+rVXVvydNcCe1F1bc pC9xST22M2EwrHbd4dKepBVqVcAMZHUN4j8qU7XFafgdc8FHKmKBoI0ZCvv+JYxg3YW9 4uIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696598421; x=1697203221; 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=yNBJCUYXo4LXGeLxzlT54YfPdDc3yVuc6878WBeD0Qg=; b=k+WG7P1hGpAbq4B6pR3r9dRtg6iDyxa1Wt+zPV5fdSmYdtGZRsRMuf/+Y4zhZCDmd8 JtJvL1VLAwss1bCozkQeDWRc7c2JbC/GoVHUgi8Hnmi7WyvZ36Q+7p7OFVcIRo3feaMf +3dPWOC9Ge2svBB0OnXugHiVDRadfqje+xGA7TUQmDSpdq6BrvBp2zQSObwAWhI1z2da jj/28KkyKerJM24Viy7amIVWPdiQTX0dMSwnCkT5pyfg9vz3PzbIuiRNuoWHZ7U49FIA pOBmpXgpIAVDB7PJ7pHQHzPqY90H0AdY0EFeOwU2E/G56Qkgv02dFox/fIjvNc6aH1JO Se6A== X-Gm-Message-State: AOJu0Yy2FhxNUG3rGffnmOKoh1lctT2Ux9RUrm5GDcFOgizd/KzrR+fR LO5WNtGasN1+l7wVVNfJ+OKePPs3ImVDh+4As7y4Sw== X-Google-Smtp-Source: AGHT+IFWQRFoPZfSp8ts4n3vBTyMEci6mfCzM0Xvt07F4BAVxC31jWyFItfxmXrEAtA1Hu5YJ3UWsg== X-Received: by 2002:adf:f4c6:0:b0:320:5ad:2b9c with SMTP id h6-20020adff4c6000000b0032005ad2b9cmr7330590wrp.2.1696598421523; Fri, 06 Oct 2023 06:20:21 -0700 (PDT) Received: from localhost.localdomain ([93.93.133.154]) by smtp.gmail.com with ESMTPSA id m8-20020a056000180800b00321773bb933sm1639478wrh.77.2023.10.06.06.20.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 06:20:20 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Fri, 6 Oct 2023 14:20:00 +0100 Message-Id: <20231006132000.23504-21-naush@raspberrypi.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231006132000.23504-1-naush@raspberrypi.com> References: <20231006132000.23504-1-naush@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 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 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,