From patchwork Fri Apr 16 10:31:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 11962 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 B48DDBD235 for ; Fri, 16 Apr 2021 10:31:55 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 2D7FC68806; Fri, 16 Apr 2021 12:31:55 +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="i1XTvLdd"; dkim-atps=neutral Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id B2F6F68806 for ; Fri, 16 Apr 2021 12:31:53 +0200 (CEST) Received: by mail-wr1-x42a.google.com with SMTP id w4so22456871wrt.5 for ; Fri, 16 Apr 2021 03:31:53 -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=qlcwXbCE6DWnPb+J3MYiqJrC+NqnHtyVds6v2RKzuuU=; b=i1XTvLddkl77jQNKcHOSUAAocr8zSVWRoavCT96jZeU4gVOV/6+d8ovuZg2HepZbUt xeC1TLCpUZMSXKu5Bo9Iw5zPtL+lpkLqyZAu9NTwTDCzB27Qz3Yrh6b9UzQWznERTAaY Eeg9yew0TK/5d2iyAv60i6r4/z9/MHtYVZgR0xIdLuXS4ul1ZQxL4t9sGG3WEkDFk20Z hhoJ6J2bZLsEFxTCWO+FP+3u7unMNNmoxRSAkU9kErfFAilva97p6eGnYcUc/yrS07zg X00Ld2U301i4PTwf7TDzmDFuL8u6SbuO3rhV3KvTVybnkNsJGuLnK7x+oXo98j+BnBkv 6PJw== 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=qlcwXbCE6DWnPb+J3MYiqJrC+NqnHtyVds6v2RKzuuU=; b=ZXYEy5NGBNUZ6RMJL7mzOPd+H4vc5jjetqFJ5bu8cvON6IFX+/NdcrYmYRiIi/XKbh xslFip9dIWqGy+4P2XdOsqcaknivezZX1ehFekpYnsvRiqnWqwn3Koku3yCyhD3DF7dB KewN4ZNuZJK5joH5+tVsI97+FC8pApd6KSeMHDzlT+W9Y3Tpvt3PsvmtUHflq97AFHr9 MCuVzJUjD7bnabN4maISzRKQghN9pxBYsz6D03HypRk4F+6/VEREn4CluonaIzi4L4yU LSLUy42w+HLb4hzZGJI6CDGJsLpMR2YcGjgqP4xRAuhVxQZU5F8LbL393XnNuM37NhBW K48Q== X-Gm-Message-State: AOAM530Xk3BzYbKvWtgbKAMv6fV6nCZEh4WVK7j/u6gnumyFbkhNaJ09 4YZCG4SRihyMcPH6cheaxy17LBnOF2XukA== X-Google-Smtp-Source: ABdhPJxOgm7VJOCzKFhh8WZ/QwZGRdrhUDcPh8/OqPJLmHbPKRI21MDf1OiokmzlOGkB+qiGJQmDUA== X-Received: by 2002:a05:6000:1843:: with SMTP id c3mr8580412wri.361.1618569113101; Fri, 16 Apr 2021 03:31:53 -0700 (PDT) Received: from naush-laptop.pitowers.org ([2a00:1098:3142:15:4af5:8d45:b5d1:889d]) by smtp.gmail.com with ESMTPSA id d133sm8234500wmf.9.2021.04.16.03.31.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 03:31:52 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Fri, 16 Apr 2021 11:31:38 +0100 Message-Id: <20210416103141.1483745-1-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/3] ipa: raspberrypi: Rate-limit the controller algorithms 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, This is version 2 of the work to rate limit the Raspberry Pi controller algorithms. Version 2 has expanded a bit on the previous patch: - This series is now rebased over David's changes to the IPA prepare/process logic (https://patchwork.libcamera.org/patch/11730/) that is yet to be merged. - Add a commit to store the drop frame count used to disable rate-limiting on startup when we are converging for the first time. - Add a commit to add a move assignment operator to RPiController Metadata objects. Regards, Naush Naushir Patuck (3): ipa: raspberrypi: Store dropped frame count in a member variable ipa: raspberrypi: Add move operator to RPiController::Metadata ipa: raspberrypi: Rate-limit the controller algorithms src/ipa/raspberrypi/controller/metadata.hpp | 8 +++ src/ipa/raspberrypi/raspberrypi.cpp | 62 ++++++++++++++++--- .../pipeline/raspberrypi/raspberrypi.cpp | 5 ++ 3 files changed, 65 insertions(+), 10 deletions(-)