From patchwork Tue May 25 11:42:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 12409 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 D684EC3203 for ; Tue, 25 May 2021 11:42:48 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id E09D068924; Tue, 25 May 2021 13:42:47 +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="IyRxbNmA"; dkim-atps=neutral Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 60A356050E for ; Tue, 25 May 2021 13:42:46 +0200 (CEST) Received: by mail-wm1-x330.google.com with SMTP id s5-20020a7bc0c50000b0290147d0c21c51so12644377wmh.4 for ; Tue, 25 May 2021 04:42:46 -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=zrLhS1iZ9BbMfpRz0eA4it/uSRgjNa1WA90MJ4+9bio=; b=IyRxbNmAN7eDPHLkxD27Xfb1vVod029N2YJ3elICa+koQ0ult0o3za+QYicN/3kmLD /68gbQ0kbQA3zI90nG5zWpEqjmmAlV3YcM1hVdy1cH8lTz/25lDP83Vnld2bdkR9GUMi IorbsXFPKlCnEQPFs0VYoLaWVsrrmaIEPKg4tBlUSoMk8BvVZa6ixU8hEUGKBpuXYxZc 9teLF6W5weAY+Z9H1RRNwGFMqO7qQElmYtBq+NcWNxzfX7uj8USXaWppLB+/ijhRyQaV e/R3IdouoSv7M8tUCgc36t676i40rVBjZp2HfkwGKijeEwIPnOZojz21f1aMoyPcSO3p 4quA== 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=zrLhS1iZ9BbMfpRz0eA4it/uSRgjNa1WA90MJ4+9bio=; b=MW+9JKbMCeSVgxnpXIz4/wQ+bKQbYSDfvdrRIamtrdv9BqaHvnkgBsxkj/kStTUi48 Wp6PGWMNWKQk5ZMKisTE9+kZ1y9OUwp0DIKycMoZQoIvbipRqMJbriZYGPBELHmXiw2+ DgsQGiyvRyFQ/35z/zdaBMQHbX05MCKfRY49+QSaWrvOe6EFcUwizjN6Jm69QFeRDC4t S7l0zzH17bYKbPVU511UWYaWi3WOb7sV1D7yCP7+EbEyu56g31R5V7ZSAyGuHTARVSxx 1zh9hmoLF0BMYXBisetmgl38cmlsjppSYaH1EhV7Jh26x6z5zv8XKswInIaZIosLzBQc p0lw== X-Gm-Message-State: AOAM532Lb27Rs3Mbk0EsOp2h9KxhH7PJm3Xkhk7CO4Hzde8EnXVNSCNw SU295AKR5E9j16TvE/LHN+L0V+LFWIieJg== X-Google-Smtp-Source: ABdhPJxw6UZZJMVeyvbX3s9SlKD/ialLVkdRLa6BFKXC7fg7cD29q5RwNNgGBBV+te3Eb9Y/3ZosKQ== X-Received: by 2002:a1c:f605:: with SMTP id w5mr3450808wmc.93.1621942965616; Tue, 25 May 2021 04:42:45 -0700 (PDT) Received: from naush-laptop.pitowers.org ([2a00:1098:3142:14:f3e2:c7ee:8a9d:4c3a]) by smtp.gmail.com with ESMTPSA id v15sm2471443wmj.39.2021.05.25.04.42.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 May 2021 04:42:45 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Tue, 25 May 2021 12:42:37 +0100 Message-Id: <20210525114241.906280-1-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v5 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, The following changes have been made in version 5 of this patch series: - Removed the using... directive from all header files, and expanded the namespace instead. - Fix struct formatting in lux.cpp. - Remove BaseDuration references from the documentation and remove full stops from single line statements to match the guidelines. 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 | 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 | 88 +++++++++++-------- 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 | 69 ++++++++------- src/libcamera/utils.cpp | 37 ++++++++ 13 files changed, 232 insertions(+), 120 deletions(-)