{"id":12373,"url":"https://patchwork.libcamera.org/api/covers/12373/?format=json","web_url":"https://patchwork.libcamera.org/cover/12373/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/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":"<20210524084822.3690690-1-naush@raspberrypi.com>","date":"2021-05-24T08:48:18","name":"[libcamera-devel,v4,0/4] Switch RaspberryPi IPA to use std::chrono::duration","submitter":{"id":34,"url":"https://patchwork.libcamera.org/api/people/34/?format=json","name":"Naushir Patuck","email":"naush@raspberrypi.com"},"mbox":"https://patchwork.libcamera.org/cover/12373/mbox/","series":[{"id":2052,"url":"https://patchwork.libcamera.org/api/series/2052/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2052","date":"2021-05-24T08:48:18","name":"Switch RaspberryPi IPA to use std::chrono::duration","version":4,"mbox":"https://patchwork.libcamera.org/series/2052/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/12373/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 BB50EC3201\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 24 May 2021 08:48:31 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id BEBE26891F;\n\tMon, 24 May 2021 10:48:30 +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 37CA3602B1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 24 May 2021 10:48:29 +0200 (CEST)","by mail-wm1-x32a.google.com with SMTP id z130so14489359wmg.2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 24 May 2021 01:48:29 -0700 (PDT)","from naush-laptop.pitowers.org\n\t([2a00:1098:3142:14:4bf6:b415:2edf:916a])\n\tby smtp.gmail.com with ESMTPSA id\n\tx10sm11275767wrt.65.2021.05.24.01.48.27\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tMon, 24 May 2021 01:48:27 -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=\"RoCm0prC\"; 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=Q9CcGa08xi4D/T+h1L0aiQAqEC0ATqP/ae5DrwSLzGs=;\n\tb=RoCm0prCM3UQGF+MEPRwWmqkuAyN1RQuTG3b+Cbg77yiqFzXj7h4+I2hP0dLD7trRR\n\tiCanG7WGPyiDUt1o+glz0blIc3q5FHGqrpO0PLKvonFeujLlxs7TK8dCsh30idcEP3YA\n\tsJr91MbzDwAV6Lq9M8yQK5HJUAQvwlqu3ypzcLBQLvpQI3ZhGRyoJA+2xZF7gDnQRHoq\n\tVJLk+NNSD7ivHyNJyFI+78fIuUTSm7IH9XMfgLgb+42ByDPpdjw6gDvHWG0xQ7pIXSU/\n\t76Ly+w4fYG0l896brizL6xa43UmKMcD8rpr/VlTxeucG24HNmYBiqw638CBQn+C82c0B\n\txfpQ==","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=Q9CcGa08xi4D/T+h1L0aiQAqEC0ATqP/ae5DrwSLzGs=;\n\tb=O19tmXoFP6ZbQS+4jJDhiGqIfBhtCeNuBDNa+HSgm7BB7hm7uNPEkfWnNZwZr87nXF\n\tsBEWOiiWUWkxTu8OGugmFdXbfxKS2oEs/4+cvKI3MnkewzoE9SgjLOqGmAyucnDUIvEW\n\t3kCsP0wIYbDMn/00mBaFCV0wFFoz2k7PJwPLT2X31qIjNn8jCrr1HQOVS+NCx5zbHt53\n\tJzs+qp0Ei7ofqO70fOXLD5RCzsxmcEG1sJgTee0Kn6486xut4PTdpll0hkGUfZUfdx1y\n\tsabLwlwCvFfU85P0PEQApqprTYqHL4+0vdoGcUZr5ggVq5/1lulFd0l7Ix5RhP5oFNQA\n\t+4UA==","X-Gm-Message-State":"AOAM532StDaOcgQYGhOSBCzh4AcwjSZT1d5qUdNjN/zBWQ46uw8KAskh\n\tf5um//ztBWPsZe0SjSIP0WWwrUahBbaFuw==","X-Google-Smtp-Source":"ABdhPJy5rendyILJfY3j+RnS70r2hKF1TMutHhTl7zHnWLAFjR9Oqdahp0Sv081Olz6e9WM33wpKKA==","X-Received":"by 2002:a7b:cc83:: with SMTP id\n\tp3mr19051176wma.169.1621846108524; \n\tMon, 24 May 2021 01:48:28 -0700 (PDT)","From":"Naushir Patuck <naush@raspberrypi.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Mon, 24 May 2021 09:48:18 +0100","Message-Id":"<20210524084822.3690690-1-naush@raspberrypi.com>","X-Mailer":"git-send-email 2.25.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v4 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 4 of this series changes the following:\n\n- Move the operator<< out of the utils namespace to avoid needing a using ...\ndirective.\n- BaseDuration is now hidden out of the utils:: scope.\n- Fixup documentation based on Jacopo's comments.\n- Fixup flicker period ratio calculation.  We now use an int to avoid fractional\nvalues.\n\nRegards,\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    | 86 +++++++++++--------\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           | 69 ++++++++-------\n src/libcamera/utils.cpp                       | 41 +++++++++\n 13 files changed, 238 insertions(+), 119 deletions(-)"}