From patchwork Fri May 21 08:05:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 12332 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 90E30C31FB for ; Fri, 21 May 2021 08:05:38 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id E49E76891E; Fri, 21 May 2021 10:05:37 +0200 (CEST) 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="dc5WsZXL"; dkim-atps=neutral Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2709B68918 for ; Fri, 21 May 2021 10:05:37 +0200 (CEST) Received: by mail-wm1-x32a.google.com with SMTP id n17-20020a7bc5d10000b0290169edfadac9so6864911wmk.1 for ; Fri, 21 May 2021 01:05:37 -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=39jya6EEX3xhJFp6odTEg1SXEgw/UCwHMyPIdge5a3c=; b=dc5WsZXLUUkF/4TqnIFq9W8IX4lNZr/nM3dkwrzwYkJwYyusG+s4Zl6sxf0pj/nSiN aNr2wFUpxvpLHIv6sn0SGCVqpuSE4emSt7O0grBSZlQZa2CwG7+fodxa2+tIsimV87kr csGt7UY/S+mWJX6PIMQn3fAAISrSxPDAjiwz7vorLP7mgzZ4UZIebdg+zbJw1LostCzn QZVzYBslYdC/jDUmdLbhVkdC6ShGeot+oUTq7oSaYU26MUooOP0JyMItJUVKDD0Xml47 TEQZUmVBpnwC/w1NlVDP8MqdAka+03gvZnddRCo8uH07NlRwSOi/zi5ApSvOuwdb0c1v iLfw== 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=39jya6EEX3xhJFp6odTEg1SXEgw/UCwHMyPIdge5a3c=; b=nbMCJYdLUGNCpnMCmfxWgykV08KCaLpJGXd1GUjGlB0x3LS3jEx+DmidWE8kbfads/ gvcTqMxjUShbWV2+qRiyFCQTN3yzf4zCp3DhzMEEgbvyW4Px1gF22wxD1AwVT4t4J65z 67NCRhFUWL6hS0Ul9UyoMQmC5ieTMg78j80UMcd6UL410M9dt6ByRaMsjrjhMRzSxaag /SutxBRd6ktmcpNV3/wTqdGPhElr2n0lk6RT5nI1CMoqigO0dtDSQsg4emfLxtOJmZzn kYATrLggH9PRLkLgqA96Aqj2F0Ls5rsyeZjrQZ5X04DoTusDK6jEFaQrP19NSDkzOX0f qb4w== X-Gm-Message-State: AOAM533ZPM5tfX22jvjb+AeMsoMeolzgKmV6A5ksPwEHhVd6hkI0/2d1 SofRo4CMnoUl3Fv2qkCMsPAB8lQCsyjsBA== X-Google-Smtp-Source: ABdhPJw0ThkbK+EqXk5Qe6ZvahF1Ff+J2ivI/D9M3ElsqC8PaIahkids7OS+xsj7v5H7vObp/c4FaQ== X-Received: by 2002:a7b:c841:: with SMTP id c1mr7474768wml.123.1621584336561; Fri, 21 May 2021 01:05:36 -0700 (PDT) Received: from naush-laptop.pitowers.org ([2a00:1098:3142:14:de31:dc1f:6be5:f58e]) by smtp.gmail.com with ESMTPSA id q186sm5159176wme.20.2021.05.21.01.05.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 May 2021 01:05:36 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Fri, 21 May 2021 09:05:26 +0100 Message-Id: <20210521080530.37591-1-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 0/4] Switch RaspberryPi IPA to use std::chrono::duration 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, Version 3 of this patch series addresses an implicit Duration cast issue when using the operator<<() overload. Thanks, Naush Naushir Patuck (4): libcamera: utils: Add helper class for std::chrono::duration ipa: raspberrypi: Switch ipa and cam_helper to use utils::Duration ipa: raspberrypi: Switch AgcAlgorithm API to use utils::Duration ipa: raspberrypi: Switch the AGC/Lux code to use utils::Duration include/libcamera/internal/utils.h | 42 +++++++++ src/ipa/raspberrypi/cam_helper.cpp | 17 ++-- src/ipa/raspberrypi/cam_helper.hpp | 12 ++- .../raspberrypi/controller/agc_algorithm.hpp | 9 +- src/ipa/raspberrypi/controller/agc_status.h | 14 +-- src/ipa/raspberrypi/controller/camera_mode.h | 6 +- .../raspberrypi/controller/device_status.h | 6 +- src/ipa/raspberrypi/controller/rpi/agc.cpp | 89 +++++++++++-------- src/ipa/raspberrypi/controller/rpi/agc.hpp | 34 +++---- src/ipa/raspberrypi/controller/rpi/lux.cpp | 17 ++-- src/ipa/raspberrypi/controller/rpi/lux.hpp | 4 +- src/ipa/raspberrypi/raspberrypi.cpp | 70 ++++++++------- src/libcamera/utils.cpp | 41 +++++++++ 13 files changed, 241 insertions(+), 120 deletions(-)