{"id":12513,"url":"https://patchwork.libcamera.org/api/1.1/covers/12513/?format=json","web_url":"https://patchwork.libcamera.org/cover/12513/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20210608110335.4078551-1-naush@raspberrypi.com>","date":"2021-06-08T11:03:31","name":"[libcamera-devel,v6,0/4] Switch RaspberryPi IPA to use std::chrono::duration","submitter":{"id":34,"url":"https://patchwork.libcamera.org/api/1.1/people/34/?format=json","name":"Naushir Patuck","email":"naush@raspberrypi.com"},"mbox":"https://patchwork.libcamera.org/cover/12513/mbox/","series":[{"id":2110,"url":"https://patchwork.libcamera.org/api/1.1/series/2110/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2110","date":"2021-06-08T11:03:31","name":"Switch RaspberryPi IPA to use std::chrono::duration","version":6,"mbox":"https://patchwork.libcamera.org/series/2110/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/12513/comments/","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id D93E0BD22E\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue,  8 Jun 2021 11:03:41 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 3DD986029F;\n\tTue,  8 Jun 2021 13:03:41 +0200 (CEST)","from mail-wm1-x333.google.com (mail-wm1-x333.google.com\n\t[IPv6:2a00:1450:4864:20::333])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id BCFA56029F\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue,  8 Jun 2021 13:03:39 +0200 (CEST)","by mail-wm1-x333.google.com with SMTP id\n\tp13-20020a05600c358db029019f44afc845so1556348wmq.3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 08 Jun 2021 04:03:39 -0700 (PDT)","from naush-laptop.pitowers.org\n\t([2a00:1098:3142:14:5aef:f665:51b0:d8c0])\n\tby smtp.gmail.com with ESMTPSA id\n\to129sm2639350wmo.22.2021.06.08.04.03.38\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 08 Jun 2021 04:03:38 -0700 (PDT)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=raspberrypi.com header.i=@raspberrypi.com\n\theader.b=\"CyD7Robk\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google;\n\th=from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=/fN5VqXPgOUGSeR/FN96qq4bPWj89P1P3zDputAJoPo=;\n\tb=CyD7RobkJP+jDTn8dFPufYM2NN0UXgyXTOzDNLwFdy8txADcB2BgKG85l5Kti6GnOE\n\txJwBYA3Qc5BUAj7OcfPhdumX8O3UEtpiBtNf4sKGdx3aXPNFbFaR9wXcPUE2VHrMra11\n\tALKAIadK7S5IrVEawQoPz7gI3WW2qGhAS4KmRKUmHl/KnYD0UYoiqLIzVsDUZGn9l8A/\n\tYr2/+cw5NH19b3qyzt3YSsTKVzCyXpQMXA0uDkVZwFm+mtkD08uClYuHJwpUoLBjdIHe\n\tFoLHzR8Blj0AZgtX5MIXHBI/nmrgHikNRAb3m/w65IWRL2ZfP2TGsDFQAF/Tj7Ruk4AA\n\tszzQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=/fN5VqXPgOUGSeR/FN96qq4bPWj89P1P3zDputAJoPo=;\n\tb=THHtVlp943qoqsDUr+JuG1bSY4qw/Y2hUY3ilUk7ECpLN2HCKXx9v96SfHLg0jcpok\n\txXPIAoTUOrrr1XpjXdz3u8vyU397oOEQiz3eaBOC820sv60xm1GpPNFge5kiPg2AN/xY\n\tt6KJBeohucKQkdW73j/dK6CQXyg02LZCpwkDdsatDAyGcqmfdNHCvgMBuHInLvzIx5nP\n\tZH6BpO+sFWfxUaXtx+C3BeW4ccwDugfvbANaouZ/4sOxiJ214+kEKgefKWrikDzJtcz0\n\tLFLXva6gFWlQcS7nftlJ1JuEnhLwY8+3+81VhCL1zL7oZZFTFc8LguNBKEqIEx8M5uHl\n\tJCFA==","X-Gm-Message-State":"AOAM531hIOPivFfCtS3UN676YO8RQrDPcRSvaQm8DletibMzKG45LnGK\n\taxPN/sQ3SzuUZKj6+6pOywRzgmCwV2kjdQ==","X-Google-Smtp-Source":"ABdhPJxdBltfQ6c6lsMxfQ64bHvn4w8+CIEeaMtTEfCieSj57hlxCsc5BynZLFZR2538bEtVMxs2QA==","X-Received":"by 2002:a1c:65c2:: with SMTP id z185mr3657777wmb.2.1623150219134;\n\tTue, 08 Jun 2021 04:03:39 -0700 (PDT)","From":"Naushir Patuck <naush@raspberrypi.com>","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","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v6 0/4] Switch RaspberryPi IPA to use\n\tstd::chrono::duration","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Hi,\n\nVersion 6 of this series addresses the following:\n\n- Add a set of tests for utils::Duration in patch 1/4.\n- Switch from passing Duration values as const references to passing by value\nfor throughout the series.\n- Slight rewording of documentation for utils::Duration as suggested by Laurent.\n- Switch from inline operator << in utils.h to declaring a templated\nimplementation in utils.cpp.\n\nThanks,\nNaush\n\nNaushir Patuck (4):\n  libcamera: utils: Add helper class for std::chrono::duration\n  ipa: raspberrypi: Switch ipa and cam_helper to use utils::Duration\n  ipa: raspberrypi: Switch AgcAlgorithm API to use utils::Duration\n  ipa: raspberrypi: Switch the AGC/Lux code to use utils::Duration\n\n include/libcamera/internal/utils.h            | 32 +++++++\n src/ipa/raspberrypi/cam_helper.cpp            | 18 ++--\n src/ipa/raspberrypi/cam_helper.hpp            | 10 ++-\n .../raspberrypi/controller/agc_algorithm.hpp  |  7 +-\n src/ipa/raspberrypi/controller/agc_status.h   | 12 +--\n src/ipa/raspberrypi/controller/camera_mode.h  |  6 +-\n .../raspberrypi/controller/device_status.h    |  6 +-\n src/ipa/raspberrypi/controller/rpi/agc.cpp    | 83 ++++++++++---------\n src/ipa/raspberrypi/controller/rpi/agc.hpp    | 34 ++++----\n src/ipa/raspberrypi/controller/rpi/lux.cpp    | 19 +++--\n src/ipa/raspberrypi/controller/rpi/lux.hpp    |  4 +-\n src/ipa/raspberrypi/raspberrypi.cpp           | 67 ++++++++-------\n src/libcamera/utils.cpp                       | 58 +++++++++++++\n test/utils.cpp                                | 45 ++++++++++\n 14 files changed, 283 insertions(+), 118 deletions(-)"}