From patchwork Thu Jul 22 20:36:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Scally X-Patchwork-Id: 13072 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 3BB1CC322B for ; Thu, 22 Jul 2021 20:37:08 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 75870687A6; Thu, 22 Jul 2021 22:37:07 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="E7LjVzRC"; dkim-atps=neutral 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 9CF2868779 for ; Thu, 22 Jul 2021 22:37:05 +0200 (CEST) Received: by mail-wr1-x42f.google.com with SMTP id k5so8187wrq.12 for ; Thu, 22 Jul 2021 13:37:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=zANlht+6hmk8horlI5nGRF9Zj1ZRvkZxSqZOfsgrp1I=; b=E7LjVzRC2BxyAKYp7QJkIvmJ21ozlIa0FKeUKZ+OPY8mBcZ6Z2n754Yz14iiChjpMH Qx7NUURho7HF5vdTC3bzAHzSA6KIWbIT1l7Q7idEyotoqyzXz2umR7TkWX/JPGO/BC7J /t8icb69gIg8iR5vaakYPra7VF/hoJjNZddLB8ix5vUhX08QugX7msxBO3gMyntE3lQT lHDADZ/VcKem25JKbPmJv7ZyLiGs98ghzxerNkFZ0Apd/pkeuLBaXVmRgUe4huvxWXVA +P5kipSk8j9W6quiMblyMT1Sqb4fZZUUBVxkuSFD3VqpgwHg3Tk3gHaDXRMBU318Iouj sjJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=zANlht+6hmk8horlI5nGRF9Zj1ZRvkZxSqZOfsgrp1I=; b=Eziv3UMRk6Vf0V2dhaujUU4DwIClKNs/LOj2q6ipmD2KC/B4UsNaNxTUav+FBAjtyC xpWN4usyh9ZuV50ZwoFM896C0N8YY/m3kJuPNOOkQbCgo/TXvUq1KDG8CmFATObLSzjZ iXK7C7+MpuN8kO01Ryngs9LIN1LBnni2dwJGu1CDtJ3qy8XRzPV+B1f5x7mN1YUkjqc0 58aUGjV0Ag8flRNCi5K4flGwVhz8ur4ELXeEuued+Od0+Tx0/mhshmpCkstpxo2GhgdD c/OYS8Gsm59e/srOiPlbLdape+GKF2MHqJVyyzLd33Nkk0e4UIQ7nE9LGXRuJwGDGEnA e19Q== X-Gm-Message-State: AOAM532lg9QGR6VkcQW6rmNl50ru7ntKPHe0HCnGSdXywMpzAO/74n6J O5j+KPjqo/DRui0q7xwIv1eOvW0YWPw= X-Google-Smtp-Source: ABdhPJyKlGfjvRhg8EAlu2GjCHvez3pMzh/0Ynd4Cra7bovC5z3oSG5l96UkBf2sgj454tiegN7dIg== X-Received: by 2002:a5d:434e:: with SMTP id u14mr1711557wrr.378.1626986225258; Thu, 22 Jul 2021 13:37:05 -0700 (PDT) Received: from valhalla.home ([2.29.20.106]) by smtp.gmail.com with ESMTPSA id g3sm30878948wru.95.2021.07.22.13.37.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 13:37:04 -0700 (PDT) From: Daniel Scally To: libcamera-devel@lists.libcamera.org Date: Thu, 22 Jul 2021 21:36:57 +0100 Message-Id: <20210722203658.3588263-1-djrscally@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 1/2] libipa: Add CameraSensorHelper for ov8865 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add a CameraSensorHelperOv8865 class. The gain coefficients are gleaned from the datasheet; the lowest 7 bits are reported there as fractional bits, so real gain is val/128. Signed-off-by: Daniel Scally Reviewed-by: Umang Jain Reviewed-by: Laurent Pinchart --- src/ipa/libipa/camera_sensor_helper.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp index 709835a8..e72167ec 100644 --- a/src/ipa/libipa/camera_sensor_helper.cpp +++ b/src/ipa/libipa/camera_sensor_helper.cpp @@ -325,6 +325,16 @@ public: }; REGISTER_CAMERA_SENSOR_HELPER("ov13858", CameraSensorHelperOv13858) +class CameraSensorHelperOv8865 : public CameraSensorHelper +{ +public: + CameraSensorHelperOv8865() + { + analogueGainConstants_ = { AnalogueGainLinear, 1, 0, 0, 128 }; + } +}; +REGISTER_CAMERA_SENSOR_HELPER("ov8865", CameraSensorHelperOv8865) + #endif /* __DOXYGEN__ */ } /* namespace ipa */