From patchwork Thu Jan 19 08:41:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Semkowicz X-Patchwork-Id: 18145 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 9F4DBC3294 for ; Thu, 19 Jan 2023 08:42:16 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 29361625F5; Thu, 19 Jan 2023 09:42:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1674117736; bh=IZZ5Wh2pvaVQNIJJ8KSNaIOZYWKPqd9L61yGyhai0do=; 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=DHZ1T8SevMbm4sDA5W8b9kc56RX3DOjAdIZHkhp5Cmbf98V32RTPMcz937uaJgSUr X/HdojQk6VzZ3ywnCoDTtc4yJKbFVDMEvO+TMbWyYBi65Tauwge4tMJYClc6Z5COvE OjNtCD4/RwlPocq4YJSlMqQ8aEQPbwxt802J9w8KgD9kKPwcKdiRiqCdQqAgDSEuXC 952Wcun0NNhc5htzLAdxhEWIKpMTIeIbmeFjFakBPxEl+fhQ2DJ61meGyZNilIckHF 1u4EaOIXD07YDz2GIIdHU8lN/yyK+VAH6RY3yeeIn5+4rGYHWvL04I7d7jCf4rF8jv SA6hm9OReqPKg== Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id B35F5625EA for ; Thu, 19 Jan 2023 09:42:12 +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="RHddAhf2"; dkim-atps=neutral Received: by mail-wm1-x330.google.com with SMTP id c10-20020a05600c0a4a00b003db0636ff84so709546wmq.0 for ; Thu, 19 Jan 2023 00:42:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20210112.gappssmtp.com; s=20210112; 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=8Rg5efG+ONNAzDMKsRD/WP/E/KL6zi12dSbPHOjcxRc=; b=RHddAhf2T1BywXkCChFzkAu2BQHXGbU6zBhSCMpngDfjl68PvNBzogLYceVyDQ+QOK JakaNTSE4fAv9qK9zfl/IqF2e5oe40/IZbRNV11gxFKvXyBTU7QERvVjRSbC9/eG/9+o mAzZTXedpa+YDDJ6mC/RmT1vqIuMXNkP/isYUzwc+Dq5nr7fcrKJPIsxATDeQ7G9bcaU Rx33oi/jPwMKCSGAsMPPPxmYD7PHnVQwW8Xmjpw64kATMU+CbB1+F52fTCpNFlR3YSjs QbK3LV2jkdRUeOcZS5GJ5QJgd3TEg2TI0fq9LI5sgqEKQ4zU2WAhy6KwMuaOSMpgnPxw IQBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=8Rg5efG+ONNAzDMKsRD/WP/E/KL6zi12dSbPHOjcxRc=; b=8PWqyElp9k3MaKgp1hYkCWaTzmGCZ25cP0ZdEECyGD3ibkvvJF3jucRLQzeg/LpvuR r4egMr1Ceqj+K8/vtYaVBNCKkOqV4pN1w61EZP/0wQ3HItCip75hzQo43PvRN7i1onxf vc9gybJAJe4UV6lCy8DEfFvPvBZvZWnq1wl105HdxeyZw8zG0APmqTiptPH/3KRZReDJ EwktTyFh44o5NwE6b8yRj4qYIZEg3EMjQ3UVA/dKzyOCpjFMhoDkt2n0hIAn7BgEi9ra uI3AljfQ/0EjGor/OvxkIwkZuiMnMEHVWfwvWadbbS3ZjrDiZaazNamM+kjnJNt97Zon RgfA== X-Gm-Message-State: AFqh2kpVtTmFA1fLrCUrBFqggm9URbtB0r4EyqK1mLufUQcQhMjvNNeh c2EAjJHTPgm8Gk/QkNAHjaxSUbxjYeOZEeEtbUM= X-Google-Smtp-Source: AMrXdXtH6rONd7NGfcgFTCtWuW5OnKDSkXnZf5+G7hpIxEjYu4P9WKZh1oqK8iQo2cEJt8ticTp+yg== X-Received: by 2002:a05:600c:540c:b0:3da:fa18:a535 with SMTP id he12-20020a05600c540c00b003dafa18a535mr9457239wmb.29.1674117732412; Thu, 19 Jan 2023 00:42:12 -0800 (PST) Received: from localhost.localdomain (ip092042140082.rev.nessus.at. [92.42.140.82]) by smtp.gmail.com with ESMTPSA id j10-20020a05600c074a00b003db0ee277b2sm3935754wmn.5.2023.01.19.00.42.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 00:42:12 -0800 (PST) To: libcamera-devel@lists.libcamera.org Date: Thu, 19 Jan 2023 09:41:10 +0100 Message-Id: <20230119084112.20564-7-dse@thaumatec.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230119084112.20564-1-dse@thaumatec.com> References: <20230119084112.20564-1-dse@thaumatec.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 6/8] pipeline: rkisp1: Add basic AF controls to the supported controls list 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 Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" This will expose the AF controls and will allow controlling them using the top level API. Signed-off-by: Daniel Semkowicz --- src/ipa/rkisp1/rkisp1.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ipa/rkisp1/rkisp1.cpp b/src/ipa/rkisp1/rkisp1.cpp index 297161b2..bc2508a2 100644 --- a/src/ipa/rkisp1/rkisp1.cpp +++ b/src/ipa/rkisp1/rkisp1.cpp @@ -101,10 +101,14 @@ namespace { /* List of controls handled by the RkISP1 IPA */ const ControlInfoMap::Map rkisp1Controls{ { &controls::AeEnable, ControlInfo(false, true) }, + { &controls::AfMode, ControlInfo(controls::AfModeValues) }, + { &controls::AfPause, ControlInfo(controls::AfPauseValues) }, + { &controls::AfTrigger, ControlInfo(controls::AfTriggerValues) }, { &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) },