{"id":24099,"url":"https://patchwork.libcamera.org/api/covers/24099/?format=json","web_url":"https://patchwork.libcamera.org/cover/24099/","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":"<20250813170240.50173-1-mzamazal@redhat.com>","date":"2025-08-13T17:02:39","name":"[v3,0/1] Reduce statistics image area for GPU","submitter":{"id":177,"url":"https://patchwork.libcamera.org/api/people/177/?format=json","name":"Milan Zamazal","email":"mzamazal@redhat.com"},"mbox":"https://patchwork.libcamera.org/cover/24099/mbox/","series":[{"id":5372,"url":"https://patchwork.libcamera.org/api/series/5372/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=5372","date":"2025-08-13T17:02:39","name":"Reduce statistics image area for GPU","version":3,"mbox":"https://patchwork.libcamera.org/series/5372/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/24099/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 EE82DBDCC1\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 13 Aug 2025 17:02:55 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id A09326924F;\n\tWed, 13 Aug 2025 19:02:55 +0200 (CEST)","from us-smtp-delivery-124.mimecast.com\n\t(us-smtp-delivery-124.mimecast.com [170.10.129.124])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 6149F6923C\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 13 Aug 2025 19:02:53 +0200 (CEST)","from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com\n\t(ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63])\n\tby relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n\tcipher=TLS_AES_256_GCM_SHA384) id us-mta-33-f9AywyQaOOS5ps4PBEOhfg-1;\n\tWed, 13 Aug 2025 13:02:48 -0400","from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com\n\t(mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com\n\t[10.30.177.93])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\tkey-exchange X25519 server-signature RSA-PSS (2048 bits)\n\tserver-digest SHA256) (No client certificate requested)\n\tby mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix)\n\twith ESMTPS id 2CCBE19560AD; Wed, 13 Aug 2025 17:02:47 +0000 (UTC)","from mzamazal-thinkpadp1gen7.tpbc.com (unknown [10.45.224.13])\n\tby mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix)\n\twith ESMTP id 947611800447; Wed, 13 Aug 2025 17:02:44 +0000 (UTC)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=redhat.com header.i=@redhat.com\n\theader.b=\"g71xyDo9\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n\ts=mimecast20190719; t=1755104572;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\tto:to:cc:cc:mime-version:mime-version:content-type:content-type:\n\tcontent-transfer-encoding:content-transfer-encoding;\n\tbh=+UCK+Wkjpjj0IWGKmw1oVLEGvo4DAlTYrir+z1IFcqg=;\n\tb=g71xyDo9xRJfn0FeDSkMJR1MH+Ttq8/BLlpJlQ0S/icbY8GSst7yK6sWcQu3lomfSQRTv+\n\tyKclI2jql7p1vpHPFg9v5GeJa565+rVYLdap19da6MDlNpq/rt/NyICGXKjqdTBpd5kUJM\n\tsYAe1HlaWbLAoNumzgehwedjmevZedA=","X-MC-Unique":"f9AywyQaOOS5ps4PBEOhfg-1","X-Mimecast-MFC-AGG-ID":"f9AywyQaOOS5ps4PBEOhfg_1755104567","From":"Milan Zamazal <mzamazal@redhat.com>","To":"libcamera-devel@lists.libcamera.org","Cc":"Milan Zamazal <mzamazal@redhat.com>, Kieran Bingham\n\t<kieran.bingham@ideasonboard.com>, =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?=\n\t<barnabas.pocze@ideasonboard.com>, Laurent Pinchart\n\t<laurent.pinchart@ideasonboard.com>","Subject":"[PATCH v3 0/1] Reduce statistics image area for GPU","Date":"Wed, 13 Aug 2025 19:02:39 +0200","Message-ID":"<20250813170240.50173-1-mzamazal@redhat.com>","MIME-Version":"1.0","X-Scanned-By":"MIMEDefang 3.4.1 on 10.30.177.93","X-Mimecast-Spam-Score":"0","X-Mimecast-MFC-PROC-ID":"PQ9D13e_1diQ9ewJ_-qwZQoCMS8TILYhn3_PBfgurCM_1755104567","X-Mimecast-Originator":"redhat.com","Content-Transfer-Encoding":"8bit","content-type":"text/plain; charset=\"US-ASCII\"; x-default=true","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":"This patch set on top of GPU ISP patches reduces CPU time spent in\nprocessing statistics by about a half.\n\nChanges in v3:\n- Rectangle::croppedBy() dropped, already available methods used instead.\n- The cropping is applied also in CPU debayering for consistency.\n\nChanges in v2:\n- Safer implementation of Rectangle::croppedBy() as suggested by Kieran.\n- Test added for Rectangle::croppedBy().\n- The comment about not passing x,y clarified.\n\nMilan Zamazal (1):\n  libcamera: software_isp: Reduce statistics image area\n\n src/libcamera/software_isp/debayer_cpu.cpp | 9 +++++++--\n src/libcamera/software_isp/debayer_egl.cpp | 7 +++++--\n 2 files changed, 12 insertions(+), 4 deletions(-)"}