{"id":17829,"url":"https://patchwork.libcamera.org/api/1.1/covers/17829/?format=json","web_url":"https://patchwork.libcamera.org/cover/17829/","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-1-naush@raspberrypi.com>","date":"2022-11-22T11:22:19","name":"[libcamera-devel,v1,0/5] Raspberry Pi: Generalise statistics","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/17829/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/covers/17829/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 2F1BBBE08B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 22 Nov 2022 11:22:29 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 9939563314;\n\tTue, 22 Nov 2022 12:22:28 +0100 (CET)","from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com\n\t[IPv6:2a00:1450:4864:20::32b])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 80104603CE\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 22 Nov 2022 12:22:27 +0100 (CET)","by mail-wm1-x32b.google.com with SMTP id o30so10492983wms.2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 22 Nov 2022 03:22:27 -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.26\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 22 Nov 2022 03:22:26 -0800 (PST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1669116148;\n\tbh=V0W1RsV/csGpYOjMSMj+lh47pS5612YD5a1Y84Rfs0k=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=twVl2/f9JrzRcXhyOfZU++M2GXWHLENvxPuDO052RCptuuCL/0MZV7qRV/mOB6nbZ\n\th+a1Sgw35IE+3etwmTvfVL9TVmWWbeUEGv3a77dClq+FLPInwkO6HpoDAZ0DQxqceX\n\trgkUuDtGaK9m2CfZLtbSGwiX5QpEclrCAN/Jox/lzq6LH0BA1UTOQRVx4Cr4bH7MYx\n\tG85AXo7iiWwvfvF0fynrIixAkesn8Uil+ujHVy/ISGMWm1BIh2OBsGoymh5uyqalJX\n\tzg8+6dzcklzv1ajcKcFX+xWhDgyN8mojS9iBfhJdOu7XYWs1KNo2f5FvFF2yAB1C1J\n\tmY0yBq4nT0Dcg==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google;\n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:from:to:cc:subject:date:message-id:reply-to;\n\tbh=duc2Zu13c5P8hQUVb5xlsXn8EMMekYpWzwh3MMlKewU=;\n\tb=g1bsSHVNJYnGmBhgjAizvxQwpo5efxAPXs2827mcoXdEJr8ttL49sqXKEsIM5Z9d0r\n\t7OMnEodyHzfCgHwdLXYVdQD4ZdOQVEdbJDHOpxbGcxwmtvEyKC59UJtPPROjQSrVRn6K\n\tna+oZHahPFviUIexXu0lOTFgIkmetOh9UVnyg1jLhNPKq1bpD4ZvQarW/pzNqqzPdhEB\n\tcUcYz7pMsqhIgDNxqcM9q34LwkwERk6tqZWmlNW85BTLbBtcJdHuN6iGkwybCSxG57OO\n\tgro6XiDPH5wOPEb4tmgxovBHng9bTKy3WJH34ep+071zcKccoH7lTLOkdsq/1S/6EnMO\n\tBpUQ=="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected) header.d=raspberrypi.com\n\theader.i=@raspberrypi.com\n\theader.b=\"g1bsSHVN\"; 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:message-id:date:subject:cc\n\t:to:from:x-gm-message-state:from:to:cc:subject:date:message-id\n\t:reply-to;\n\tbh=duc2Zu13c5P8hQUVb5xlsXn8EMMekYpWzwh3MMlKewU=;\n\tb=x4HlhJ84t3bhf4qkwM3AjWFQmzmSjxPTBkWNnp1JXHEvzKmm7KqvqA6/ogMuRtcIV0\n\t2wjOhbtgQZd00oldXx5nnpEVKZAc0HYqxLg9HJjmSPJFR7VgPhjCB0URarOLJUP6DJ2C\n\t0mVuIXjCUd9DjyQzXiRftwzXDoCWgGjQiSMj8meK43sta+BpIhzaJcag2HuQRAla7ZB7\n\thb8scV8qU1MAYkpppT6+5n+ghg/XFEtCG4bcX1KhWMDjhJCMmLuJer2j4fzGP5c9TMK2\n\tUL/Do4arfwESrys2iZT5BvzP+fVqqvqM1GVrkGMmJAF8mFgJHSZs12e+hc6aK+xWvMYA\n\tlLjA==","X-Gm-Message-State":"ANoB5pnJUNY0lBZY9BZcA/HT/q1E2cJuGpWDvj3HRdtj1Ua5jhVFFmfC\n\tNu7eNsrMDtNvkVuXh6Lxwzz4pQ/3PgW/ow==","X-Google-Smtp-Source":"AA0mqf7bvAycqMgEaZfw/PNv0yxsFZ/4USg/kp8kUVfYNR0Pg0bqzYyCLKTlna6srkxh2KOP53XfGQ==","X-Received":"by 2002:a1c:ed17:0:b0:3cf:cfce:9d9e with SMTP id\n\tl23-20020a1ced17000000b003cfcfce9d9emr3644770wmh.66.1669116146810; \n\tTue, 22 Nov 2022 03:22:26 -0800 (PST)","To":"libcamera-devel@lists.libcamera.org","Date":"Tue, 22 Nov 2022 11:22:19 +0000","Message-Id":"<20221122112224.31691-1-naush@raspberrypi.com>","X-Mailer":"git-send-email 2.25.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v1 0/5] Raspberry Pi: Generalise statistics","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":"Hi,\n\nThis patch series attempts to generalise our BCM2835 ISP statistics structure\nwith the aim of removing any hardware specific structures, defines and header\nfiles from the algorithm source files.\n\nPatch 1 defines the generalised statistics structures.\nPatches 2 and 3 are some simple tidy-ups to prepare for the changes.\nPatch 4 converts our algorithms to use the generalised structures.\nPatch 5 is another tidy up to remove a platform specific define from the AGC.\n\nThanks,\nNaush\n\nNaushir Patuck (5):\n  ipa: raspberrypi: Generalise statistics\n  ipa: raspberrypi: histogram: Add a constructor for an empty histogram\n  ipa: raspberrypi: awb: Delay release of the statistics buffer\n  ipa: raspberrypi: Use the generic statistics structure in the\n    algorithms\n  ipa: raspberrypi: Normalise region sums to 16-bits\n\n src/ipa/raspberrypi/controller/controller.h   |   4 +-\n src/ipa/raspberrypi/controller/histogram.h    |   5 +\n src/ipa/raspberrypi/controller/region_stats.h | 109 ++++++++++++++++++\n src/ipa/raspberrypi/controller/rpi/agc.cpp    |  30 +++--\n src/ipa/raspberrypi/controller/rpi/agc.h      |   2 +-\n src/ipa/raspberrypi/controller/rpi/alsc.cpp   |  33 +++---\n src/ipa/raspberrypi/controller/rpi/alsc.h     |   3 +-\n src/ipa/raspberrypi/controller/rpi/awb.cpp    |  30 +++--\n src/ipa/raspberrypi/controller/rpi/awb.h      |   1 +\n .../raspberrypi/controller/rpi/contrast.cpp   |   8 +-\n src/ipa/raspberrypi/controller/rpi/focus.cpp  |   7 +-\n src/ipa/raspberrypi/controller/rpi/lux.cpp    |  13 +--\n src/ipa/raspberrypi/raspberrypi.cpp           |  46 +++++++-\n src/ipa/raspberrypi/statistics.h              |  72 ++++++++++++\n 14 files changed, 292 insertions(+), 71 deletions(-)\n create mode 100644 src/ipa/raspberrypi/controller/region_stats.h\n create mode 100644 src/ipa/raspberrypi/statistics.h"}