From patchwork Tue Apr 26 05:58:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kate Hsuan X-Patchwork-Id: 15709 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 F0FC3C3260 for ; Tue, 26 Apr 2022 05:59:18 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 6203F6042D; Tue, 26 Apr 2022 07:59:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1650952757; bh=4LBd2TC/GF0igXCiaoC9JjQZrdR0nKj35eMZ6NLbLvc=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=a3HDR8ANbR7TM3SNPRExPzGEYVqVzZLeoDHYhXvlPO5NOTQ+luMwr+flb2nkUfwr9 HQ/K96drp6mVBNGw6Urp4E5Nr9Lzd/5ekNJKQw1Ds+mCqTEWcYdj045K6IVGH7r5YJ AQ05FB5g0CUCz66Ay8AwUyMWDUVw+a7qR1h5pMe2fzaLlg9HtvdNINzTq2JNwZEB7z z65AmzTfKvpRvl0nqymMjKmvUNfaUJvVrR8jGDUZvzAVurA4zTTbwVvbTQNumWkQas DfT5qzs1EW9YN8F8h7kbXTc0La5joUa39oErwd+TeD+YypbGCLmo0I10E4/cD9TD9z noweoyDrAqsNw== Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 283C16563E for ; Tue, 26 Apr 2022 07:59:15 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="bdnBd6Qa"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650952753; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=b00kF1lTuFVZr0hiZX8NQcGtQQsdgyn1TgMMSvjh6UE=; b=bdnBd6QaZ+XABGmy+cMRa3/XDD0MWVdNGKNEJ23T+bnCxOVXOfDYThrwy6oyL5x7S9KzHw qgbzBJ5KoCoq+WaXIC48OIzb9cpkIPcSzXwDT1DsO26u4Jpny+YTRh+HKcx89DbsefjYoZ 8ZOSjTGUAmBHzkuW2FahZyL5T6AsAsQ= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-599-g9eKtM4DMvGXDi3jI_F5rA-1; Tue, 26 Apr 2022 01:59:12 -0400 X-MC-Unique: g9eKtM4DMvGXDi3jI_F5rA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1315A185A79C for ; Tue, 26 Apr 2022 05:59:07 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.39.192.178]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0A789112131E; Tue, 26 Apr 2022 05:58:50 +0000 (UTC) To: libcamera devel Date: Tue, 26 Apr 2022 13:58:26 +0800 Message-Id: <20220426055830.8999-1-hpa@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=hpa@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [libcamera-devel] [PATCH v3 0/4] Enabling AF algorithm to get the VCM attributes from the device driver 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: Kate Hsuan via libcamera-devel From: Kate Hsuan Reply-To: Kate Hsuan Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Changes in v3: 1. getMaxFocusStep() was removed from CameraData. 2. The maximum VCM step is got from the lens object if it exists. Kate Hsuan (4): ipa: ipu3: Variables to hold the maximum VCM steps libcamera: camera_lens: Get maximum VCM steps libcamera: pipeline: ipu3: Get and set VCM information ipa: ipu3: af: Remove hardcoded maximum VCM steps include/libcamera/internal/camera_lens.h | 1 + include/libcamera/ipa/core.mojom | 7 +++++++ src/ipa/ipu3/algorithms/af.cpp | 13 ++++--------- src/ipa/ipu3/algorithms/af.h | 2 ++ src/libcamera/camera_lens.cpp | 13 +++++++++++++ src/libcamera/pipeline/ipu3/ipu3.cpp | 4 +++- 6 files changed, 30 insertions(+), 10 deletions(-)