{"id":17831,"url":"https://patchwork.libcamera.org/api/1.1/patches/17831/?format=json","web_url":"https://patchwork.libcamera.org/patch/17831/","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":"<20221122112224.31691-3-naush@raspberrypi.com>","date":"2022-11-22T11:22:21","name":"[libcamera-devel,v1,2/5] ipa: raspberrypi: histogram: Add a constructor for an empty histogram","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"27b12163633a8456e8ccb38ccf6f0a9c93f77d4f","submitter":{"id":34,"url":"https://patchwork.libcamera.org/api/1.1/people/34/?format=json","name":"Naushir Patuck","email":"naush@raspberrypi.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/17831/mbox/","series":[{"id":3627,"url":"https://patchwork.libcamera.org/api/1.1/series/3627/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3627","date":"2022-11-22T11:22:19","name":"Raspberry Pi: Generalise statistics","version":1,"mbox":"https://patchwork.libcamera.org/series/3627/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/17831/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/17831/checks/","tags":{},"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 BBA6FBE08B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 22 Nov 2022 11:22:31 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 87E4F63323;\n\tTue, 22 Nov 2022 12:22:31 +0100 (CET)","from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com\n\t[IPv6:2a00:1450:4864:20::32d])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id E5AC163319\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 22 Nov 2022 12:22:28 +0100 (CET)","by mail-wm1-x32d.google.com with SMTP id\n\tm7-20020a05600c090700b003cf8a105d9eso11035610wmp.5\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 22 Nov 2022 03:22:28 -0800 (PST)","from naush-laptop.localdomain ([93.93.133.154])\n\tby smtp.gmail.com with ESMTPSA id\n\tq125-20020a1c4383000000b003c6cd82596esm21400388wma.43.2022.11.22.03.22.27\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 22 Nov 2022 03:22:27 -0800 (PST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1669116151;\n\tbh=nV2KMfIX/aSz7EeOXcUnYblpXLNHbIzztPfK6uf2CyA=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=J+OthZMdfLCv/Ra4t+o6K7yO/tY7CI1jAwLECJ8kUoS2ZfVIlFIp63945H2oN0N5I\n\t53wYpQGTCUMxSqkSpNR90skiecm7tgj+QbCILB/gd1DLyA82BHQHyihp5hoNkXObiP\n\tFY760gqx8fah+9yvDLIbmaxUaI0RbRHsCKpBBho3ZKAUgaD0VG5/WrCRiJkultn5Tt\n\tSWlFYumeWh+zjUJ14imKAU6gcJpQyl23G+gOYOlgpe8nnuikIKIHrJEl1fJ40/r/MI\n\tbYM7lapkDm3/vqDCBRWCPhM0h42npwO5Un0DhxDx3jSofO4e0J6vgklYKoJ3iKMIPT\n\tKT/Dc+JD3uPiA==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google;\n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:from:to:cc:subject:date\n\t:message-id:reply-to;\n\tbh=85uGoaw0AEnYQ+Egl5/eIy+7JdznUeKgQUblC7ayBfM=;\n\tb=Bf9Gm9p8FUWIZIF+zGlZVNtER4kOJIpWEE0qfwO8coczc1IpnjZiAfxfr8dCw9OO+f\n\tqWHW72qgYz/0bahZhyLnlwIg0iuSmT2EBnBDeFhP6Zk6gJhpA+htJGf1An7ErBSYCMjU\n\tHzdw3E+bsLer4vtwtV0gJVZDbrgECPb2PUNVpitWK1pcKR07eIVl+lQwiou2KvYlQlW+\n\tAEFh+el5vVhNQVGOJdue+fgfzQDNlI++Lw3KdGdTovHM7xejxBqIvj2loGXRi5pzsFMK\n\tHKyAjNiJVrrtkAWrjyaMzHVkqOj5tDDjXhDHv8aSgkPykGKLMkWLYm/klt/14+1cmY4N\n\tFJIA=="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected) header.d=raspberrypi.com\n\theader.i=@raspberrypi.com\n\theader.b=\"Bf9Gm9p8\"; dkim-atps=neutral","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n\t:subject:date:message-id:reply-to;\n\tbh=85uGoaw0AEnYQ+Egl5/eIy+7JdznUeKgQUblC7ayBfM=;\n\tb=mR0pxvBZ10ZaxtaO/9LQSnMBz1ofzNPxExhJrbieagq6GW28laPmFyAB3M/lhN42wR\n\tq8JxXzcFgPA2wA1+MJygc+YOtTNaSAs1vDeZWaos5R1zMzWWfxt2+/6bFEd7IQ31cAk0\n\tDHQfePtW26COB9mSQSX7Vm6hzGRXQexja4+du/KSENN1fOz0wumnoHqdF0m2XetE8a5J\n\tJ6UKjEYkKmp06/VziosjXcDiNEd/rtBAv08N/Mx/8/iC9VvCEqvD97Raax+yehD1p33/\n\t7CAE7LEVgflbxiLZa2q/Hk0OTsn8NRk5iR0yA42y4PhTPeFlaCYHY9kssKeTfUxFKVxd\n\tbTWQ==","X-Gm-Message-State":"ANoB5pkHq3DTi4Vg6GMQFDwN18XxXqS4R4/QpNl15qnzKYhq/x59WzRL\n\t9hsg6xkfQkeJ4CPjmu/mdGahvqSj31ttWQ==","X-Google-Smtp-Source":"AA0mqf6umRHLstW42DmbbtClXlQV1RmODsHn0Gw4pvXwPQplNZigQ89EVSg6f9j17nF1G4M9zq3BTA==","X-Received":"by 2002:a05:600c:3d10:b0:3cf:8a44:e1eb with SMTP id\n\tbh16-20020a05600c3d1000b003cf8a44e1ebmr6730969wmb.189.1669116148338; \n\tTue, 22 Nov 2022 03:22:28 -0800 (PST)","To":"libcamera-devel@lists.libcamera.org","Date":"Tue, 22 Nov 2022 11:22:21 +0000","Message-Id":"<20221122112224.31691-3-naush@raspberrypi.com>","X-Mailer":"git-send-email 2.25.1","In-Reply-To":"<20221122112224.31691-1-naush@raspberrypi.com>","References":"<20221122112224.31691-1-naush@raspberrypi.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v1 2/5] ipa: raspberrypi: histogram: Add a\n\tconstructor for an empty histogram","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>","From":"Naushir Patuck via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Naushir Patuck <naush@raspberrypi.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Add a default constructor to the RPiController::Histogram class that creates\nan empty histogram. Since this is a cumulative histogram, push a value of 0 into\nthe first (and only) bin to signify this.\n\nSigned-off-by: Naushir Patuck <naush@raspberrypi.com>\n---\n src/ipa/raspberrypi/controller/histogram.h | 5 +++++\n 1 file changed, 5 insertions(+)","diff":"diff --git a/src/ipa/raspberrypi/controller/histogram.h b/src/ipa/raspberrypi/controller/histogram.h\nindex 66a68b087964..6b3e3a9e68e4 100644\n--- a/src/ipa/raspberrypi/controller/histogram.h\n+++ b/src/ipa/raspberrypi/controller/histogram.h\n@@ -20,6 +20,11 @@ namespace RPiController {\n class Histogram\n {\n public:\n+\tHistogram()\n+\t{\n+\t\tcumulative_.push_back(0);\n+\t}\n+\n \ttemplate<typename T> Histogram(T *histogram, int num)\n \t{\n \t\tassert(num);\n","prefixes":["libcamera-devel","v1","2/5"]}