From patchwork Tue Mar 14 14:48:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Semkowicz X-Patchwork-Id: 18400 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 CA7E3C329F for ; Tue, 14 Mar 2023 14:50:07 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 5664A6273D; Tue, 14 Mar 2023 15:50:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1678805407; bh=BjcrFEiQTZSm9P/GWdlS61dbmdphmJsI4G6x4WDNV8k=; 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=rZrX2t8JgCQYrq0dNud90arpH5n4O2gKnxj4IjfwXNnEA8jwgrtoAgCHULD5v+vnl zfuh9tMLzEf5saIF78lerpQaE0u55y3kQrKHvz5BXLpZZgbMMDFWhOWv7FjA+hJz04 AP+SJjaZ5rp7t3OJJXLzdHR2A9e+W/DDXm2IC7ksRl3RNXoXYReS2cMkpzDUQYmHUB 3Td6W2K+k/Ktdc8nt7NV065ba6FwpBY8t5VInH4slhsQyl/FG0d7E8iwz1mecpZzb8 nqkBb1qVaaMT8PCw5hGUjtZDmYXF950fxCZgPRz+gFkyXCpQmC0BYvV5pN1zU3RefF bt47IQoJpwvIA== Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id AC76362717 for ; Tue, 14 Mar 2023 15:49:56 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=thaumatec-com.20210112.gappssmtp.com header.i=@thaumatec-com.20210112.gappssmtp.com header.b="llo8xF8D"; dkim-atps=neutral Received: by mail-lj1-x230.google.com with SMTP id g18so16322041ljl.3 for ; Tue, 14 Mar 2023 07:49:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20210112.gappssmtp.com; s=20210112; t=1678805395; 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=LRgW1NFPu4viMTf/MJ3llUErEThVQZNmL7f3XB7nmj0=; b=llo8xF8DBh4d4Nv3tE+yoEbzYTBRSdcVldWOiX7IbNrD5/GseRgbf7mc2qS2hunhdD 0xY7HBgWhpIPjzTNfFQ7ccefILJWbMEb2nITkMndIpT7/zvTTGeGLlbrccr2DsTByARu eXnTlZMXkeKIwP97Y0k7hmNiBy+gQzScrJyL3ifo0m9TuN7p0wQ/frkGseMldRooZaQT 5yqXB6x7MNTc0lbCMHgGVtyaoA6LI+8mRPHHYOS2Ki2FrJNmUK/pC8ePagmdLoGYF1g6 oBC/4JRbOy+HpDaCk3XliZr5rDl/SHCib64iOE3HtbQvv+boQ0gBZRDoYJ4yCNA2yWi7 tS5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678805395; 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=LRgW1NFPu4viMTf/MJ3llUErEThVQZNmL7f3XB7nmj0=; b=70nX30buugHTriL+JHM+KlKcXtJ68MY+PCBGSrqtor5ctfjvvCngtuPTraNuJBns5p lwIA8W4uXze3rF34687jiXTEcxVMWTWWEJXS3DVuItl/0cj3ljgHv4TdBw8FksHsG3Qp eeRTnmoL6u+toyvvgRJdHYU/WV85B7A8P9RKsdXF6k3LiFMJTNmJqXgmspgrc+vaisnp M5Tigq7Tc2aahhyHdDZ64oQjDU+kUG2iegRKMP6jSgUUnyBoI4g6sHYNcE9VQT/JKBHq m8RayO62s/Nb6/MiM02lI1hUd61WmfSXBBZaZR/vXTz6Oza2lASV3ns7PIbXBQrVN/I6 lndQ== X-Gm-Message-State: AO0yUKUXeodpTky9qrMb1z202He5Co7YeSVrS2MvwQ7N6Y4IYid17fZO tRxi7OJw4Ax8wUe9P+eoAMIpRn4wGKiK3CS32r0= X-Google-Smtp-Source: AK7set8QzPqibHMyzRPO6KSDAtwfhwxeAVGpWcNkKsN+6U/vJpFXMnqViPhh2II6D4t7RBQ3RIOp5g== X-Received: by 2002:a05:651c:2125:b0:293:2cec:9ebc with SMTP id a37-20020a05651c212500b002932cec9ebcmr15823042ljq.14.1678805395260; Tue, 14 Mar 2023 07:49:55 -0700 (PDT) Received: from localhost.localdomain ([91.90.166.178]) by smtp.gmail.com with ESMTPSA id q25-20020a2eb4b9000000b00295a35f30e1sm470961ljm.115.2023.03.14.07.49.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 07:49:55 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Tue, 14 Mar 2023 15:48:32 +0100 Message-Id: <20230314144834.85193-9-dse@thaumatec.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230314144834.85193-1-dse@thaumatec.com> References: <20230314144834.85193-1-dse@thaumatec.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v4 08/10] ipa: rkisp1: Add AF controls to the RkISP1 IPA 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: Daniel Semkowicz via libcamera-devel From: Daniel Semkowicz Reply-To: Daniel Semkowicz Cc: jacopo.mondi@ideasonboard.com Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add controls supported by the AF algorithm to the list of controls supported by the RkISP1 IPA. This exposes the AF controls to the user and allows controlling the AF algorithm using the top level API. Signed-off-by: Daniel Semkowicz --- src/ipa/rkisp1/rkisp1.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ipa/rkisp1/rkisp1.cpp b/src/ipa/rkisp1/rkisp1.cpp index cd1fbae3..4b30844f 100644 --- a/src/ipa/rkisp1/rkisp1.cpp +++ b/src/ipa/rkisp1/rkisp1.cpp @@ -101,10 +101,16 @@ namespace { /* List of controls handled by the RkISP1 IPA */ const ControlInfoMap::Map rkisp1Controls{ { &controls::AeEnable, ControlInfo(false, true) }, + { &controls::AfMetering, ControlInfo(controls::AfMeteringValues) }, + { &controls::AfMode, ControlInfo(controls::AfModeValues) }, + { &controls::AfPause, ControlInfo(controls::AfPauseValues) }, + { &controls::AfTrigger, ControlInfo(controls::AfTriggerValues) }, + { &controls::AfWindows, ControlInfo(Rectangle{}, Rectangle(65535, 65535, 65535, 65535), Rectangle{}) }, { &controls::AwbEnable, ControlInfo(false, true) }, { &controls::ColourGains, ControlInfo(0.0f, 3.996f, 1.0f) }, { &controls::Brightness, ControlInfo(-1.0f, 0.993f, 0.0f) }, { &controls::Contrast, ControlInfo(0.0f, 1.993f, 1.0f) }, + { &controls::LensPosition, ControlInfo(0.0f, 2147483647.0f) }, { &controls::Saturation, ControlInfo(0.0f, 1.993f, 1.0f) }, { &controls::Sharpness, ControlInfo(0.0f, 10.0f, 1.0f) }, { &controls::draft::NoiseReductionMode, ControlInfo(controls::draft::NoiseReductionModeValues) },