From patchwork Tue Jun 8 11:03:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 12513 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 D93E0BD22E for ; Tue, 8 Jun 2021 11:03:41 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 3DD986029F; Tue, 8 Jun 2021 13:03:41 +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="CyD7Robk"; dkim-atps=neutral Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id BCFA56029F for ; Tue, 8 Jun 2021 13:03:39 +0200 (CEST) Received: by mail-wm1-x333.google.com with SMTP id p13-20020a05600c358db029019f44afc845so1556348wmq.3 for ; Tue, 08 Jun 2021 04:03:39 -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=/fN5VqXPgOUGSeR/FN96qq4bPWj89P1P3zDputAJoPo=; b=CyD7RobkJP+jDTn8dFPufYM2NN0UXgyXTOzDNLwFdy8txADcB2BgKG85l5Kti6GnOE xJwBYA3Qc5BUAj7OcfPhdumX8O3UEtpiBtNf4sKGdx3aXPNFbFaR9wXcPUE2VHrMra11 ALKAIadK7S5IrVEawQoPz7gI3WW2qGhAS4KmRKUmHl/KnYD0UYoiqLIzVsDUZGn9l8A/ Yr2/+cw5NH19b3qyzt3YSsTKVzCyXpQMXA0uDkVZwFm+mtkD08uClYuHJwpUoLBjdIHe FoLHzR8Blj0AZgtX5MIXHBI/nmrgHikNRAb3m/w65IWRL2ZfP2TGsDFQAF/Tj7Ruk4AA szzQ== 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=/fN5VqXPgOUGSeR/FN96qq4bPWj89P1P3zDputAJoPo=; b=THHtVlp943qoqsDUr+JuG1bSY4qw/Y2hUY3ilUk7ECpLN2HCKXx9v96SfHLg0jcpok xXPIAoTUOrrr1XpjXdz3u8vyU397oOEQiz3eaBOC820sv60xm1GpPNFge5kiPg2AN/xY t6KJBeohucKQkdW73j/dK6CQXyg02LZCpwkDdsatDAyGcqmfdNHCvgMBuHInLvzIx5nP ZH6BpO+sFWfxUaXtx+C3BeW4ccwDugfvbANaouZ/4sOxiJ214+kEKgefKWrikDzJtcz0 LFLXva6gFWlQcS7nftlJ1JuEnhLwY8+3+81VhCL1zL7oZZFTFc8LguNBKEqIEx8M5uHl JCFA== X-Gm-Message-State: AOAM531hIOPivFfCtS3UN676YO8RQrDPcRSvaQm8DletibMzKG45LnGK axPN/sQ3SzuUZKj6+6pOywRzgmCwV2kjdQ== X-Google-Smtp-Source: ABdhPJxdBltfQ6c6lsMxfQ64bHvn4w8+CIEeaMtTEfCieSj57hlxCsc5BynZLFZR2538bEtVMxs2QA== X-Received: by 2002:a1c:65c2:: with SMTP id z185mr3657777wmb.2.1623150219134; Tue, 08 Jun 2021 04:03:39 -0700 (PDT) Received: from naush-laptop.pitowers.org ([2a00:1098:3142:14:5aef:f665:51b0:d8c0]) by smtp.gmail.com with ESMTPSA id o129sm2639350wmo.22.2021.06.08.04.03.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 04:03:38 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Tue, 8 Jun 2021 12:03:31 +0100 Message-Id: <20210608110335.4078551-1-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v6 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 6 of this series addresses the following: - Add a set of tests for utils::Duration in patch 1/4. - Switch from passing Duration values as const references to passing by value for throughout the series. - Slight rewording of documentation for utils::Duration as suggested by Laurent. - Switch from inline operator << in utils.h to declaring a templated implementation in utils.cpp. 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 | 32 +++++++ src/ipa/raspberrypi/cam_helper.cpp | 18 ++-- src/ipa/raspberrypi/cam_helper.hpp | 10 ++- .../raspberrypi/controller/agc_algorithm.hpp | 7 +- src/ipa/raspberrypi/controller/agc_status.h | 12 +-- src/ipa/raspberrypi/controller/camera_mode.h | 6 +- .../raspberrypi/controller/device_status.h | 6 +- src/ipa/raspberrypi/controller/rpi/agc.cpp | 83 ++++++++++--------- src/ipa/raspberrypi/controller/rpi/agc.hpp | 34 ++++---- src/ipa/raspberrypi/controller/rpi/lux.cpp | 19 +++-- src/ipa/raspberrypi/controller/rpi/lux.hpp | 4 +- src/ipa/raspberrypi/raspberrypi.cpp | 67 ++++++++------- src/libcamera/utils.cpp | 58 +++++++++++++ test/utils.cpp | 45 ++++++++++ 14 files changed, 283 insertions(+), 118 deletions(-)