From patchwork Mon Mar 22 16:01:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 11641 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 5182FBD80C for ; Mon, 22 Mar 2021 16:01:56 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 9DEE868D65; Mon, 22 Mar 2021 17:01:55 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="n94V4Veb"; dkim-atps=neutral Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E4F3568D50 for ; Mon, 22 Mar 2021 17:01:53 +0100 (CET) Received: by mail-ed1-x52e.google.com with SMTP id e7so19930257edu.10 for ; Mon, 22 Mar 2021 09:01:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CHNz9wKsa1MfXlmFOW7x1Dj/BaEg8Q3dnLLniayuDVo=; b=n94V4VebaGWwE/pPNtxX54rnJVWacgrlxy6ro/+DoJs++PLBxB3kilzT2Oe/7S81hM Ixu151SSiN+WVhwGz7sh6JcZWG/Bh6SGrvRuKV7b38cOpFO1rS5E5zelwNDHAFHdz4M3 lImzM9FK4onGebfWdZSMxcgHo+IgTRKksfcO7FjYLjjqHfVVxyuh6YmsPDO13xHf3aOd Opwm4H5zPqtR5wys7kl/LY8061Gr0DBJoFeDt0DL/q0V37lBIM9Md6PywTwHzgVWYw6t yH1/1za8owrEpopnOHBALxHSyukZg3nniM9i2KZ2QZa0sa04j2Etd2sQpjPKTCYjuEzy KzJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CHNz9wKsa1MfXlmFOW7x1Dj/BaEg8Q3dnLLniayuDVo=; b=IanykmG4qY7XnnDCOl18u+7putCUrM4VHDBhPuWc1btRBURLnaKJbnJq812tVqfeaX RWvfe81Up3wWeybqxe9bKBMnX6nOEtJKAC1xzAMV3KB+7Bxq9gH4tcNVeghSJSRWAuBp V5fm/6loi1jcEf5WKsgR2bBtCg2RuKtbn6XqJwGOWVoToGhMws0ciRaobzD8AenIPoEe CZLtNf/XP50Y69/QJlOspuwk4ZKw2XBhs5wfiWkV5Bnvl9cGLgER/vqgbu2Gj8KvBI/n O7EaQNmEruu1suV8x7pYSnaAt/mzDn2RGT3d0fCiEdPgqReVD4hrwYNV0bgPyGeadnwf WO9g== X-Gm-Message-State: AOAM532Ro+/avyzYTnHqMcCN6FGg/rtBkhlXoHaEm1/oSddVKRR8Eeqk /GBepmWbN7fIKyBSyrlZBGzNPRCTZeoTBw== X-Google-Smtp-Source: ABdhPJxCl/yaV7oGXXab+9VPPV4Tfr7Cp3eHeAQiWqG9RFG8kTI7XrpNDK2mr+rdeVVzlXu43ThCTA== X-Received: by 2002:a05:6402:30b9:: with SMTP id df25mr293249edb.136.1616428913194; Mon, 22 Mar 2021 09:01:53 -0700 (PDT) Received: from pi4-davidp.lan (plowpeople3.plus.com. [80.229.223.72]) by smtp.gmail.com with ESMTPSA id h17sm11554502eds.26.2021.03.22.09.01.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Mar 2021 09:01:52 -0700 (PDT) From: David Plowman To: libcamera-devel@lists.libcamera.org Date: Mon, 22 Mar 2021 16:01:47 +0000 Message-Id: <20210322160148.32291-1-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/1] Raspberry Pi generalised sensor metadata parsing 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" Hi Here's another version of my recent patch relating to sensor metadata parsing, and which we had some discussion on. This version is enough to handle the new sensors that I'm looking at, though I expect there's still some more discussion to go! The commit message explains most of it, I think. The sensor in question has a few other quirks, to be addressed later, but this will be enough to allow image statistics to be read from the sensor metadata and used in place of the usual ISP-generated ones. It will also support other sensors that are generating interesting metadata. Thanks! David David Plowman (1): ipa: raspberrypi: Use CamHelpers to generalise sensor metadata parsing src/ipa/raspberrypi/cam_helper.cpp | 44 +++++++++++++++ src/ipa/raspberrypi/cam_helper.hpp | 11 +++- src/ipa/raspberrypi/raspberrypi.cpp | 83 ++++++++++------------------- 3 files changed, 83 insertions(+), 55 deletions(-)