{"id":12332,"url":"https://patchwork.libcamera.org/api/1.1/covers/12332/?format=json","web_url":"https://patchwork.libcamera.org/cover/12332/","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":"<20210521080530.37591-1-naush@raspberrypi.com>","date":"2021-05-21T08:05:26","name":"[libcamera-devel,v3,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/12332/mbox/","series":[{"id":2040,"url":"https://patchwork.libcamera.org/api/1.1/series/2040/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2040","date":"2021-05-21T08:05:26","name":"Switch RaspberryPi IPA to use std::chrono::duration","version":3,"mbox":"https://patchwork.libcamera.org/series/2040/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/12332/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 90E30C31FB\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 21 May 2021 08:05:38 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id E49E76891E;\n\tFri, 21 May 2021 10:05:37 +0200 (CEST)","from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com\n\t[IPv6:2a00:1450:4864:20::32a])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 2709B68918\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 21 May 2021 10:05:37 +0200 (CEST)","by mail-wm1-x32a.google.com with SMTP id\n\tn17-20020a7bc5d10000b0290169edfadac9so6864911wmk.1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 21 May 2021 01:05:37 -0700 (PDT)","from naush-laptop.pitowers.org\n\t([2a00:1098:3142:14:de31:dc1f:6be5:f58e])\n\tby smtp.gmail.com with ESMTPSA id\n\tq186sm5159176wme.20.2021.05.21.01.05.35\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 21 May 2021 01:05:36 -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=\"dc5WsZXL\"; 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=39jya6EEX3xhJFp6odTEg1SXEgw/UCwHMyPIdge5a3c=;\n\tb=dc5WsZXLUUkF/4TqnIFq9W8IX4lNZr/nM3dkwrzwYkJwYyusG+s4Zl6sxf0pj/nSiN\n\taNr2wFUpxvpLHIv6sn0SGCVqpuSE4emSt7O0grBSZlQZa2CwG7+fodxa2+tIsimV87kr\n\tcsGt7UY/S+mWJX6PIMQn3fAAISrSxPDAjiwz7vorLP7mgzZ4UZIebdg+zbJw1LostCzn\n\tQZVzYBslYdC/jDUmdLbhVkdC6ShGeot+oUTq7oSaYU26MUooOP0JyMItJUVKDD0Xml47\n\tTEQZUmVBpnwC/w1NlVDP8MqdAka+03gvZnddRCo8uH07NlRwSOi/zi5ApSvOuwdb0c1v\n\tiLfw==","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=39jya6EEX3xhJFp6odTEg1SXEgw/UCwHMyPIdge5a3c=;\n\tb=nbMCJYdLUGNCpnMCmfxWgykV08KCaLpJGXd1GUjGlB0x3LS3jEx+DmidWE8kbfads/\n\tgvcTqMxjUShbWV2+qRiyFCQTN3yzf4zCp3DhzMEEgbvyW4Px1gF22wxD1AwVT4t4J65z\n\t67NCRhFUWL6hS0Ul9UyoMQmC5ieTMg78j80UMcd6UL410M9dt6ByRaMsjrjhMRzSxaag\n\t/SutxBRd6ktmcpNV3/wTqdGPhElr2n0lk6RT5nI1CMoqigO0dtDSQsg4emfLxtOJmZzn\n\tkYATrLggH9PRLkLgqA96Aqj2F0Ls5rsyeZjrQZ5X04DoTusDK6jEFaQrP19NSDkzOX0f\n\tqb4w==","X-Gm-Message-State":"AOAM533ZPM5tfX22jvjb+AeMsoMeolzgKmV6A5ksPwEHhVd6hkI0/2d1\n\tSofRo4CMnoUl3Fv2qkCMsPAB8lQCsyjsBA==","X-Google-Smtp-Source":"ABdhPJw0ThkbK+EqXk5Qe6ZvahF1Ff+J2ivI/D9M3ElsqC8PaIahkids7OS+xsj7v5H7vObp/c4FaQ==","X-Received":"by 2002:a7b:c841:: with SMTP id c1mr7474768wml.123.1621584336561;\n\tFri, 21 May 2021 01:05:36 -0700 (PDT)","From":"Naushir Patuck <naush@raspberrypi.com>","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","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v3 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 3 of this patch series addresses an implicit Duration cast issue\nwhen using the operator<<() overload.\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            | 42 +++++++++\n src/ipa/raspberrypi/cam_helper.cpp            | 17 ++--\n src/ipa/raspberrypi/cam_helper.hpp            | 12 ++-\n .../raspberrypi/controller/agc_algorithm.hpp  |  9 +-\n src/ipa/raspberrypi/controller/agc_status.h   | 14 +--\n src/ipa/raspberrypi/controller/camera_mode.h  |  6 +-\n .../raspberrypi/controller/device_status.h    |  6 +-\n src/ipa/raspberrypi/controller/rpi/agc.cpp    | 89 +++++++++++--------\n src/ipa/raspberrypi/controller/rpi/agc.hpp    | 34 +++----\n src/ipa/raspberrypi/controller/rpi/lux.cpp    | 17 ++--\n src/ipa/raspberrypi/controller/rpi/lux.hpp    |  4 +-\n src/ipa/raspberrypi/raspberrypi.cpp           | 70 ++++++++-------\n src/libcamera/utils.cpp                       | 41 +++++++++\n 13 files changed, 241 insertions(+), 120 deletions(-)"}