From patchwork Fri Mar 24 14:29:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Semkowicz X-Patchwork-Id: 18451 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 56C4BC329F for ; Fri, 24 Mar 2023 14:29:38 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id D1FCC6272A; Fri, 24 Mar 2023 15:29:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1679668178; 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=oMYRwhlCeOWcTiPRvoXgLup9/0V7JyCPVXK+9IKEwkE+CE/48RCsUxyNL6wiYdSQm lUOqZDZ4RwOt7j1UBmNdS1qV7zm27781SgodriNc9kDhWI+hiotNlRVngW/q/pVBhw Hg6tOavVnMxeAxAE1S8gUb1+BvAWDFs0wjlDMjI29dPOHiiWFT6YWu9kOOu2IOpvnM dK8tosupouOF05LegEyIdAp6nmPT1Vjzil1dEvPuu6RbDl2TUxpQXbvA9R8h0ebuon JF5iCj+9MLmvNfUM/q9n3A8oQE4zM8A54BuKEvhkGwWjW6nKuUnSwAXu6bfTohPwQK hWxK7xQfHdmng== Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 490996271B for ; Fri, 24 Mar 2023 15:29:29 +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="Z1xMZxJv"; dkim-atps=neutral Received: by mail-lj1-x232.google.com with SMTP id z42so1889661ljq.13 for ; Fri, 24 Mar 2023 07:29:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20210112.gappssmtp.com; s=20210112; t=1679668168; 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=Z1xMZxJvBCHqUBKHJIZeSA5iRdi8dBv62IN+wQuyQf6ci0StDuc/A7Wfmkt58XeJIp dP6rPN1R+YieHFbwXFE5O3htba7jiXhWrfl0+EBaNefzw/fY2dLNEJ/UnxDGNlznWT32 6UtbwcaTmxqQBPp/sUf+fDO+zjr6uZZVO6ehxPG2uA3tTZhxuBPjuWuuQmwX04qxJ0GY fstXq2mp8yqFnHVlP6j9XzL5ICagqGbtLgp2pkQOb6RM/OtI1JWg2wgtToCH4MGdfUoU WD5aIKdRxl8bMPifhz4bFm3ruG7+/J43Qb4usHwc6/Sgx2wNmqGS2F2WlhS/+kStsxnU p4Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679668168; 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=2lGqogAEJBDg1FCofPzXzPq0Ngk+Ny+cJDOm+toYmRk82dhEfotMSSm7yY0VNv4Ihr d3uzGE7XccAwE3KcQetilUQPqSedLGpUhKd9PNKKKoM9ZVCpHNMQ8gw9SVaKXBFml0K8 s3jO6N5EboOAKE3/LJ3e4uiSgwFQTHxjTU0jWTcs79duuj7DlNWyQaNFHpvQdqGy63fo swHIYnnfmLrJcDaFgFjPq1Ec5tDuad+qtZN+9mHRzweN2OVsf2vhDE7EnmWd81hQVqMu BTeUOJqivpKFjh+OD2d+MjFvSd4+XL0anBTduWvocvke54mF4noBYzIP4gIMY9L7jljw CI8g== X-Gm-Message-State: AAQBX9e11PYsL/6XbL7a0eGK+jJZ3KihuF9MbavXIpVei8Isu/kKdAEO zQgJxQSfXwvdsKa1gu02aGYFngceeDIl18nAnF4= X-Google-Smtp-Source: AKy350ZAqpO2Xy9dJ71gg5O7EWBnCA6mrrwWGYu+V994vUpCsE3cAUGQ/4JJ49sNOOcQIUeu/8unvQ== X-Received: by 2002:a2e:a0c2:0:b0:29d:ce75:5d06 with SMTP id f2-20020a2ea0c2000000b0029dce755d06mr821459ljm.32.1679668168425; Fri, 24 Mar 2023 07:29:28 -0700 (PDT) Received: from localhost.localdomain ([91.90.166.178]) by smtp.gmail.com with ESMTPSA id j21-20020a2e8515000000b002a10b2ea089sm981714lji.16.2023.03.24.07.29.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Mar 2023 07:29:28 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Fri, 24 Mar 2023 15:29:06 +0100 Message-Id: <20230324142908.64224-9-dse@thaumatec.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230324142908.64224-1-dse@thaumatec.com> References: <20230324142908.64224-1-dse@thaumatec.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v5 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 Reviewed-by: Jacopo Mondi --- 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) },