[{"id":28329,"web_url":"https://patchwork.libcamera.org/comment/28329/","msgid":"<87r0jnokzo.fsf_-_@redhat.com>","date":"2023-12-15T09:47:39","subject":"Re: [libcamera-devel] swisp performance notes","submitter":{"id":177,"url":"https://patchwork.libcamera.org/api/people/177/","name":"Milan Zamazal","email":"mzamazal@redhat.com"},"content":"Pavel Machek via libcamera-devel <libcamera-devel@lists.libcamera.org> writes:\n\n> For some reason latest version uses full sensor resolution.\n\nThe same here on Debix Model A (with SoftwareISP-v04-hans1):\n\n  DEBUG SimplePipeline simple.cpp:1005 Picked 3280x2464-SRGGB10_1X10 -> 3280x2464-SRGGB10 for max stream size 3276x2460\n\nResulting in:\n\n  # ./cam -c 1 --capture=1 -s role=still\n  ...\n  ERROR V4L2 v4l2_videodevice.cpp:1906 /dev/video1[15:cap]: Failed to start streaming: Cannot allocate memory\n\nThe failing line is:\n\n  ret = ioctl(VIDIOC_STREAMON, &bufferType_);\n\nThis is with available memory ~1.5 GB.\n\nAnd:\n\n  # LIBCAMERA_LOG_LEVELS='*:DEBUG' ./cam -c 1 --capture=1 -s role=still,width=640,height=480\n  DEBUG SimplePipeline simple.cpp:751 Link 'imx219 1-0010':0 -> 'csis-32e40000.csi':0 configured with format 640x480-SRGGB10_1X10\n  ...\n  DEBUG SimplePipeline simple.cpp:1005 Picked 640x480-SRGGB10_1X10 -> 640x480-SRGGB10 for max stream size 640x480\n  DEBUG SimplePipeline simple.cpp:1045 Adjusting size from 640x480 to 640x480\n  ERROR Camera camera.cpp:1171 Can't configure camera with invalid configuration\n\nIt's hard for me to distinguish without deeper inspection whether dealing with\nfeatures or non-optimal defaults or user errors.\n\nRegards,\nMilan","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 39D7CBD87C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 15 Dec 2023 09:47:49 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 760FB62B2A;\n\tFri, 15 Dec 2023 10:47:48 +0100 (CET)","from us-smtp-delivery-124.mimecast.com\n\t(us-smtp-delivery-124.mimecast.com [170.10.133.124])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 5ED1161D94\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 15 Dec 2023 10:47:46 +0100 (CET)","from mail-ej1-f71.google.com (mail-ej1-f71.google.com\n\t[209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS\n\t(version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n\tus-mta-418-LXE5hv9INpa2yvqUxvFAyg-1; Fri, 15 Dec 2023 04:47:43 -0500","by mail-ej1-f71.google.com with SMTP id\n\ta640c23a62f3a-a1da829c653so30811066b.3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 15 Dec 2023 01:47:42 -0800 (PST)","from nuthatch (ip-77-48-47-2.net.vodafone.cz. [77.48.47.2])\n\tby smtp.gmail.com with ESMTPSA id\n\tcw10-20020a170907160a00b009bf7a4d591csm10724502ejd.11.2023.12.15.01.47.39\n\tfor <libcamera-devel@lists.libcamera.org>\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 15 Dec 2023 01:47:40 -0800 (PST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1702633668;\n\tbh=+m4WiU3UYl3bzKrx4rK7RZo7IxAgKAIPJVkuwuQe3uA=;\n\th=To:In-Reply-To:References:Date:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=n1mFGVqqvAhfsGXzm3krcXDDaBncY+CkZ9Spy1dB+v5rktytqSVcUh/CX82BGNSIo\n\t27nMni/o0JJ25n6/PWKWdPDqRl8zhTdmxGMf6J4WNku41aHRUH/Y88J+nwDbPpTA/6\n\t3yhtL4lKit8pWOjld1wxMIBIHItDcXfrwqLZU8SXG2bjr3dqpkGYkPdJGQ1rqxZkRZ\n\t93sP7xbn8OM50lN+u3cH5Jze828UkxQGdIWVyqXkQxC2YuJcLFsDd2O/I4z1MLj2gE\n\tZg37WNdoKlWWApNcUDHJLuNV5jz9VKF65J8IceNynCwjA3JfPn7zeqRty9BkvFioDd\n\tcHrM/nAwJw5+Q==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n\ts=mimecast20190719; t=1702633665;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\tto:to:cc:mime-version:mime-version:content-type:content-type:\n\tin-reply-to:in-reply-to:references:references;\n\tbh=hBOQmvkHGwZK8JCaqjJ+KVuEOXN4EZZrHUPzvRT6HhA=;\n\tb=U3/hhAu68mNHAWJe9eIS2RLlTs99EMXWeEd8racvUdsrJITc9Dh9PDiYL+0v3JFn6B1qtF\n\t02iQUmho35OuW1B/yauzq6Yrnf3h+KjmgUiC+c9A7Z4b76+H0IM0dc/6yqTEQNHPJtO598\n\t8rcDYW9cJ/bPrTjFL3Q5268ScUVB+Jk="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=redhat.com\n\theader.i=@redhat.com header.b=\"U3/hhAu6\"; \n\tdkim-atps=neutral","X-MC-Unique":"LXE5hv9INpa2yvqUxvFAyg-1","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1702633661; x=1703238461;\n\th=mime-version:user-agent:message-id:date:references:in-reply-to\n\t:subject:to:from:x-gm-message-state:from:to:cc:subject:date\n\t:message-id:reply-to;\n\tbh=hBOQmvkHGwZK8JCaqjJ+KVuEOXN4EZZrHUPzvRT6HhA=;\n\tb=luHYo4+FgzM3gY29Fs9QEtKncdeTjq/7LmQFqEw/oJMKdBPDBOTViWabDdACc8dHFb\n\ttfVArzBhpPXge3IjGO4lhMnTouTfcX+kYasT/40Snnqu+teMqSBdm/GgH//An2jCzpsq\n\tFaiPIgtUmjvUnbmodR+ZQrUmKdp8xh8iuhLpsOR8aUtZwxNWHV0EKomTRjr/r/8aNm6d\n\tpRK8KXcejpf4rN/eO/y+1+ZvSDA7TueoxrAafU1FYBChF/T9nK4qUBjct/sZHyAxyR/S\n\tatjCTmAAeRMHUODI8q4HJFYM07tPV9nQsvWDjtEc1SHBQiXlnaJjFmiVbr68aAb6bKC3\n\tk7MA==","X-Gm-Message-State":"AOJu0YzpRS8jhC6E0wjzHpaHJpLi8w98033Z7B78RmzxiFla8baEADs5\n\t5OdJwee8xMqFZYnWCzH9QGvHHnqo1HJwi3QLLqN1XY2z6226Xo1pnQcvFjR6MOCRaUE93A4QnfX\n\tfQYBAvs6BL+0pzv9QDhjmcbnAoI+Md5T92wbf2P0nSB/YUX1Y22fzSxxP8pdV44pkyiRqst+DAS\n\t29AoUDcCJAjjlll3wmJQ==","X-Received":["by 2002:a17:906:5342:b0:a03:d6d0:a0c4 with SMTP id\n\tj2-20020a170906534200b00a03d6d0a0c4mr3074983ejo.44.1702633661147; \n\tFri, 15 Dec 2023 01:47:41 -0800 (PST)","by 2002:a17:906:5342:b0:a03:d6d0:a0c4 with SMTP id\n\tj2-20020a170906534200b00a03d6d0a0c4mr3074977ejo.44.1702633660645; \n\tFri, 15 Dec 2023 01:47:40 -0800 (PST)"],"X-Google-Smtp-Source":"AGHT+IEmzfvou/A2Dg304HRw7IvIxJGkEsOuKJzcSxwfc4BxoOy3nRPMijunViX9/V7A6I5cstWeaQ==","To":"libcamera-devel@lists.libcamera.org","In-Reply-To":"<ZXt3I+osSMeuhXMr@duo.ucw.cz> (Pavel Machek via\n\tlibcamera-devel's message of \"Thu, 14 Dec 2023 22:44:03 +0100\")","References":"<ZXt1mDW1SpMyLrbT@duo.ucw.cz> <ZXt3I+osSMeuhXMr@duo.ucw.cz>","Date":"Fri, 15 Dec 2023 10:47:39 +0100","Message-ID":"<87r0jnokzo.fsf_-_@redhat.com>","User-Agent":"Gnus/5.13 (Gnus v5.13)","MIME-Version":"1.0","X-Mimecast-Spam-Score":"0","X-Mimecast-Originator":"redhat.com","Content-Type":"text/plain","Subject":"Re: [libcamera-devel] swisp performance notes","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":"Milan Zamazal via libcamera-devel <libcamera-devel@lists.libcamera.org>","Reply-To":"Milan Zamazal <mzamazal@redhat.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}},{"id":28330,"web_url":"https://patchwork.libcamera.org/comment/28330/","msgid":"<170263526126.2829918.17629634696471616590@ping.linuxembedded.co.uk>","date":"2023-12-15T10:14:21","subject":"Re: [libcamera-devel] swisp performance notes","submitter":{"id":4,"url":"https://patchwork.libcamera.org/api/people/4/","name":"Kieran Bingham","email":"kieran.bingham@ideasonboard.com"},"content":"Quoting Milan Zamazal via libcamera-devel (2023-12-15 09:47:39)\n> Pavel Machek via libcamera-devel <libcamera-devel@lists.libcamera.org> writes:\n> \n> > For some reason latest version uses full sensor resolution.\n> \n> The same here on Debix Model A (with SoftwareISP-v04-hans1):\n> \n>   DEBUG SimplePipeline simple.cpp:1005 Picked 3280x2464-SRGGB10_1X10 -> 3280x2464-SRGGB10 for max stream size 3276x2460\n> \n> Resulting in:\n> \n>   # ./cam -c 1 --capture=1 -s role=still\n>   ...\n>   ERROR V4L2 v4l2_videodevice.cpp:1906 /dev/video1[15:cap]: Failed to start streaming: Cannot allocate memory\n> \n> The failing line is:\n> \n>   ret = ioctl(VIDIOC_STREAMON, &bufferType_);\n> \n> This is with available memory ~1.5 GB.\n\nHave you configured any CMA? I think CMA defaults to 32MB which won't be\nsufficient for processing large images.\n\n> \n> And:\n> \n>   # LIBCAMERA_LOG_LEVELS='*:DEBUG' ./cam -c 1 --capture=1 -s role=still,width=640,height=480\n>   DEBUG SimplePipeline simple.cpp:751 Link 'imx219 1-0010':0 -> 'csis-32e40000.csi':0 configured with format 640x480-SRGGB10_1X10\n>   ...\n>   DEBUG SimplePipeline simple.cpp:1005 Picked 640x480-SRGGB10_1X10 -> 640x480-SRGGB10 for max stream size 640x480\n>   DEBUG SimplePipeline simple.cpp:1045 Adjusting size from 640x480 to 640x480\n>   ERROR Camera camera.cpp:1171 Can't configure camera with invalid configuration\n> \n> It's hard for me to distinguish without deeper inspection whether dealing with\n> features or non-optimal defaults or user errors.\n> \n> Regards,\n> Milan\n>","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 97561C31E9\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 15 Dec 2023 10:14:26 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id D19A862B32;\n\tFri, 15 Dec 2023 11:14:25 +0100 (CET)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 3221961D94\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 15 Dec 2023 11:14:24 +0100 (CET)","from pendragon.ideasonboard.com\n\t(aztw-30-b2-v4wan-166917-cust845.vm26.cable.virginm.net\n\t[82.37.23.78])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 4FC12AF3;\n\tFri, 15 Dec 2023 11:13:37 +0100 (CET)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1702635265;\n\tbh=dC3/TgHYvNg2PgQ6igGPSjAqfEh2PyE7uk8Oc52yS2E=;\n\th=In-Reply-To:References:To:Date:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=Ubwu8Ogz/nNGusdH/Sqqge12lwECrbJkagDBnckIafqG5/RLL8qIjUbiKd2jYxKSm\n\tGzWhyEhh/m/hCu+ovH+u40uoGDSqrX40Vv+Ep1h+xtaPbZl4uGBdIZZEkUrP5fmwyF\n\tvpg5600FgXHGP3vRCPg+A4aiuzqMLFaB0nl4eo7/HSLfJdMtoHqeUOlH5bGivELaE/\n\tXUzXXUjbCDg0JSBGnH925P6XDdqyb+uW+lcu+p4sIdOslkf0e7iDNBjmXdJS5fwaOx\n\t1KxczDPjTsDDnAXjqmvyNg3+u6VDYY6xTsIxaFjlTv1AH+U/jodDeXjq8zmUasquYG\n\t7gFL9l3EOgaKQ==","v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1702635217;\n\tbh=dC3/TgHYvNg2PgQ6igGPSjAqfEh2PyE7uk8Oc52yS2E=;\n\th=In-Reply-To:References:Subject:From:To:Date:From;\n\tb=W61tMEK4xTfv9kCfKnO7nK+4qvQ1rgA+od4GmGMSZghzk4NZaTGU50Y8zp/2h1379\n\ta7XpvVGwbiPohNBP2tzRK6ETBjJDQvCuDWdW1yp1AjOtUF2Q8QLdCuIbJMEgX78I5F\n\tLnUofpw2Ax44uoYBGeTmnCNrCmQRrc6rq2W7zmgc="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"W61tMEK4\"; dkim-atps=neutral","Content-Type":"text/plain; charset=\"utf-8\"","MIME-Version":"1.0","Content-Transfer-Encoding":"quoted-printable","In-Reply-To":"<87r0jnokzo.fsf_-_@redhat.com>","References":"<ZXt1mDW1SpMyLrbT@duo.ucw.cz> <ZXt3I+osSMeuhXMr@duo.ucw.cz>\n\t<87r0jnokzo.fsf_-_@redhat.com>","To":"Milan Zamazal <mzamazal@redhat.com>, libcamera-devel@lists.libcamera.org","Date":"Fri, 15 Dec 2023 10:14:21 +0000","Message-ID":"<170263526126.2829918.17629634696471616590@ping.linuxembedded.co.uk>","User-Agent":"alot/0.10","Subject":"Re: [libcamera-devel] swisp performance notes","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":"Kieran Bingham via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Kieran Bingham <kieran.bingham@ideasonboard.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}},{"id":28331,"web_url":"https://patchwork.libcamera.org/comment/28331/","msgid":"<d0f5dda6-61b1-4a53-a69c-9c15695948c5@redhat.com>","date":"2023-12-15T14:15:42","subject":"Re: [libcamera-devel] swisp performance notes was Re: [RFC] Add\n\t8-bit bayer support.","submitter":{"id":102,"url":"https://patchwork.libcamera.org/api/people/102/","name":"Hans de Goede","email":"hdegoede@redhat.com"},"content":"Hi,\n\nOn 12/14/23 22:44, Pavel Machek wrote:\n> Hi!\n> \n> So... For some reason latest version uses full sensor resolution. That\n> gave me 0.1 fps.\n\nThat is weird, in recent versions I changed the sizes()\nmethod defined in:\n\ninclude/libcamera/internal/software_isp/debayer.h\n\nto return an actual SizeRange from for normal debayering\n2x2 - (width-4)x(height-4).\n\nSince we can fill a smaller output buffer using cropping,\nso this replaces the old sizes function which returned\na SizeRange of:\n\n(width-4)x(height-4) - (width-4)x(height-4)\n\nDoes your sensor driver support multiple resolutions /\ncropping at the sensor level ?\n\nI wonder if advertising cropping in the software-isp\nis causing the simple-pipeline to pick a different\nsensor resolution.\n\nYou could try undoing the sizes change:\n\ndiff --git a/include/libcamera/internal/software_isp/debayer.h b/include/libcamera/internal/software_isp/debayer.h\nindex 206bc2ac..e2a63f24 100644\n--- a/include/libcamera/internal/software_isp/debayer.h\n+++ b/include/libcamera/internal/software_isp/debayer.h\n@@ -77,10 +77,8 @@ public:\n \t\t\treturn {};\n \t\t}\n \n-\t\treturn SizeRange(Size(pattern_size.width, pattern_size.height),\n-\t\t\t\t Size((inputSize.width - 2 * pattern_size.width) & ~(pattern_size.width - 1),\n-\t\t\t\t      (inputSize.height - 2 * pattern_size.height) & ~(pattern_size.height - 1)),\n-\t\t\t\t pattern_size.width, pattern_size.height);\n+\t\treturn SizeRange(Size((inputSize.width - 2 * pattern_size.width) & ~(pattern_size.width - 1),\n+\t\t\t\t      (inputSize.height - 2 * pattern_size.height) & ~(pattern_size.height - 1)));\n \t}\n \n \tSignal<FrameBuffer *> inputBufferReady;\n\nRegards,\n\nHans","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 D747EBD87C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 15 Dec 2023 14:15:52 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 0AEC062B2A;\n\tFri, 15 Dec 2023 15:15:52 +0100 (CET)","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 E47D461D96\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 15 Dec 2023 15:15:49 +0100 (CET)","from mail-lf1-f72.google.com (mail-lf1-f72.google.com\n\t[209.85.167.72]) by relay.mimecast.com with ESMTP with STARTTLS\n\t(version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n\tus-mta-523-9OyDfZZ8PcC7KWzpPAIbwA-1; Fri, 15 Dec 2023 09:15:47 -0500","by mail-lf1-f72.google.com with SMTP id\n\t2adb3069b0e04-50dfaa1ad34so681533e87.1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 15 Dec 2023 06:15:47 -0800 (PST)","from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec?\n\t(2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl.\n\t[2001:1c00:c32:7800:5bfa:a036:83f0:f9ec])\n\tby smtp.gmail.com with ESMTPSA id\n\tuv6-20020a170907cf4600b00a1e443bc037sm10897185ejc.147.2023.12.15.06.15.43\n\t(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n\tFri, 15 Dec 2023 06:15:43 -0800 (PST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1702649752;\n\tbh=t7Bvyx9l/KqcplQGGFROIi7+XraHcyMeed7VWw6jwLQ=;\n\th=Date:To:References:In-Reply-To:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=llNjC8oYX3BtvdP4RoD8juIQ9BhfYXdxvyfOUsoiw/u6uePI4v4B4jwmCpxbRER3r\n\tpetGdUFY7GxkmHHUH9S6xqy8XUT9xdbSEw098qTcNnKtrBGtbh3tt+XQAQLtn7BLN+\n\tzRjiHf/4B+wrpzl4vVx3offVvqiE870z+WkR0D+PQ/oUQ5o+xRxWc9PY6DW7Dn5Spi\n\tI0S8G4eY8AV6vdo1o9sNtLGgYAg2MSSQmB42MbFzaz3f5KQYKnJk/WeBebxw5L+bvb\n\tS/uFA1NPA1WfEKwqZGJPG+wCdNakoHaGWIksa0zKwDi1XWviC5DgjRWZL+vMLcOJls\n\tg+VFXTlupuxiw==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n\ts=mimecast20190719; t=1702649748;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\tto:to:cc:mime-version:mime-version:content-type:content-type:\n\tcontent-transfer-encoding:content-transfer-encoding:\n\tin-reply-to:in-reply-to:references:references;\n\tbh=vUeg0lmESVtJXInKEHLbS5RRH1NjwlRy64wTGcAwk78=;\n\tb=CgQIcVxR6laPgm7Xj+NxygMBvvauRM+nR68z5MDW5GSzL9coBarD1npuzkuhXPrgY3nePm\n\taYZWNEHdRp76fheUGHu0LUhXcc59s+Bd7OgxZu3FHG7OtfPjWtppwkwt2gyQA5/7lLJGBH\n\tdnoOJP6ABi9WtbbSouH9OPlLqj0WR5E="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=redhat.com\n\theader.i=@redhat.com header.b=\"CgQIcVxR\"; \n\tdkim-atps=neutral","X-MC-Unique":"9OyDfZZ8PcC7KWzpPAIbwA-1","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1702649745; x=1703254545;\n\th=content-transfer-encoding:in-reply-to:from:content-language\n\t:references:to:subject:user-agent:mime-version:date:message-id\n\t:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;\n\tbh=vUeg0lmESVtJXInKEHLbS5RRH1NjwlRy64wTGcAwk78=;\n\tb=LwebVrbPZ2CN5nhx2vnrW4YOofpaDCf+MD770GaW18XI/R6vfcBeFVM7qlyBi+MB1M\n\tqre0gBk8ek8mq2JccYSHtT9rhTzzDrXr3+9pvOWnuyOpq/9BjiF9IuJ9sB9iG8xWcZE7\n\tnPGqQjt4qP7BL+GxePyme4WtrcmfvvEEID3/AjmEpMROvTmqWJbYXF2UcoeTIVwAAQud\n\tvxUehfvw1134+gI+ixyLPKfeikeqIVjdXINQQERc7NUAy5a4kT+6u+2eA680NvBM4fET\n\tllCqnaMOLIMMXCD7648bSuTCi12gvct2j9VoFgyr/mJxcYWAuufLpf1AEs4e0fScqdkO\n\tTvfw==","X-Gm-Message-State":"AOJu0YxWVdz5CDYiO4RCC3fbhKF54nY3wpdD+l2elMtyTD33/bcx2ptv\n\tWHjpgVRjzdVThsXRHfz8KjAuqszQsROamili4GFNr6pz/CaZCgUmzqese3yoRQMpNfnavsvIK72\n\tTTka7vmHChxZR9oMRIlKRCZT2zr0Q7bHzIWH3TOQtvw==","X-Received":["by 2002:ac2:593b:0:b0:50e:1b7c:b847 with SMTP id\n\tv27-20020ac2593b000000b0050e1b7cb847mr1179236lfi.99.1702649744907; \n\tFri, 15 Dec 2023 06:15:44 -0800 (PST)","by 2002:ac2:593b:0:b0:50e:1b7c:b847 with SMTP id\n\tv27-20020ac2593b000000b0050e1b7cb847mr1179233lfi.99.1702649744584; \n\tFri, 15 Dec 2023 06:15:44 -0800 (PST)"],"X-Google-Smtp-Source":"AGHT+IFyRf5KdECds1TeyXJ6iwXPp+ng8u0+G0Ys9FUTr88cJlsv+yzAtfwO/tKkdLNY7Q2tYkybNA==","Message-ID":"<d0f5dda6-61b1-4a53-a69c-9c15695948c5@redhat.com>","Date":"Fri, 15 Dec 2023 15:15:42 +0100","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","To":"Pavel Machek <pavel@ucw.cz>, libcamera-devel@lists.libcamera.org","References":"<ZXt1mDW1SpMyLrbT@duo.ucw.cz> <ZXt3I+osSMeuhXMr@duo.ucw.cz>","In-Reply-To":"<ZXt3I+osSMeuhXMr@duo.ucw.cz>","X-Mimecast-Spam-Score":"0","X-Mimecast-Originator":"redhat.com","Content-Language":"en-US, nl","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"7bit","Subject":"Re: [libcamera-devel] swisp performance notes was Re: [RFC] Add\n\t8-bit bayer support.","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":"Hans de Goede via libcamera-devel <libcamera-devel@lists.libcamera.org>","Reply-To":"Hans de Goede <hdegoede@redhat.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}},{"id":28337,"web_url":"https://patchwork.libcamera.org/comment/28337/","msgid":"<87sf4345pd.fsf@redhat.com>","date":"2023-12-15T19:38:06","subject":"Re: [libcamera-devel] swisp performance notes","submitter":{"id":177,"url":"https://patchwork.libcamera.org/api/people/177/","name":"Milan Zamazal","email":"mzamazal@redhat.com"},"content":"Kieran Bingham <kieran.bingham@ideasonboard.com> writes:\n\n> Quoting Milan Zamazal via libcamera-devel (2023-12-15 09:47:39)\n>> Pavel Machek via libcamera-devel <libcamera-devel@lists.libcamera.org> writes:\n>> \n>> > For some reason latest version uses full sensor resolution.\n>> \n>> The same here on Debix Model A (with SoftwareISP-v04-hans1):\n>> \n>>   DEBUG SimplePipeline simple.cpp:1005 Picked 3280x2464-SRGGB10_1X10 -> 3280x2464-SRGGB10 for max\n>> stream size 3276x2460\n>> \n>> Resulting in:\n>> \n>>   # ./cam -c 1 --capture=1 -s role=still\n>>   ...\n>>   ERROR V4L2 v4l2_videodevice.cpp:1906 /dev/video1[15:cap]: Failed to start streaming: Cannot allocate\n>> memory\n>> \n>> The failing line is:\n>> \n>>   ret = ioctl(VIDIOC_STREAMON, &bufferType_);\n>> \n>> This is with available memory ~1.5 GB.\n>\n> Have you configured any CMA? I think CMA defaults to 32MB which won't be\n> sufficient for processing large images.\n\nRight.  CMA size was 64 MB (and part of it was used), after enlarging it to\n128 MB, the error is gone.  Thanks for pointing this out.\n\n>> And:\n>> \n>>   # LIBCAMERA_LOG_LEVELS='*:DEBUG' ./cam -c 1 --capture=1 -s role=still,width=640,height=480\n>>   DEBUG SimplePipeline simple.cpp:751 Link 'imx219 1-0010':0 -> 'csis-32e40000.csi':0 configured with\n>> format 640x480-SRGGB10_1X10\n>>   ...\n>>   DEBUG SimplePipeline simple.cpp:1005 Picked 640x480-SRGGB10_1X10 -> 640x480-SRGGB10 for max stream\n>> size 640x480\n>>   DEBUG SimplePipeline simple.cpp:1045 Adjusting size from 640x480 to 640x480\n>>   ERROR Camera camera.cpp:1171 Can't configure camera with invalid configuration\n>> \n>> It's hard for me to distinguish without deeper inspection whether dealing with\n>> features or non-optimal defaults or user errors.\n>> \n>> Regards,\n>> Milan\n>>","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 3B82AC31E9\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 15 Dec 2023 19:38:15 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 1D0E062B40;\n\tFri, 15 Dec 2023 20:38:14 +0100 (CET)","from us-smtp-delivery-124.mimecast.com\n\t(us-smtp-delivery-124.mimecast.com [170.10.133.124])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 0919A61D95\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 15 Dec 2023 20:38:11 +0100 (CET)","from mail-wr1-f69.google.com (mail-wr1-f69.google.com\n\t[209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS\n\t(version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n\tus-mta-682-tnODATwQM_uTALsVJTxBIw-1; Fri, 15 Dec 2023 14:38:09 -0500","by mail-wr1-f69.google.com with SMTP id\n\tffacd0b85a97d-33652ced20fso684290f8f.1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 15 Dec 2023 11:38:09 -0800 (PST)","from nuthatch (ip-77-48-47-2.net.vodafone.cz. [77.48.47.2])\n\tby smtp.gmail.com with ESMTPSA id\n\thd10-20020a170907968a00b009fcb5fcfbe6sm11086166ejc.220.2023.12.15.11.38.06\n\tfor <libcamera-devel@lists.libcamera.org>\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 15 Dec 2023 11:38:06 -0800 (PST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1702669094;\n\tbh=KyrA4VhljAtmxbv/NOy5CVNhV/O8/olwcTnICUG1e1g=;\n\th=To:In-Reply-To:References:Date:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=Zdx3uCxM+T/ZkMLgGzNgJu5xLzFwaukUaNB53+CB7janToiEGEqShWtqf6FV01vyV\n\t7mSx29qDABzbbPhw8hvnBvCUnyQbtqyPEuKw+UnbIJbPJKeX7OOL64KbZEqlU/TOK9\n\tWlJ4ulDh8a9rdWtcYwlFP6JZxwh3lbU82es1NFjbrV3q72Qzw6am0SC6Gby2Is955s\n\tz0O9shWf7NAl+D8AIODxLTuMwDlgm4gokVXUTnqh0xcN8sPrBhM8r5ANPJph6Oc+HW\n\ta8TTxq6ZcyHkFjjos1ds+VkJ22pUpjbTK4zvRDVetZXkTb0AjEmKzKcvF/CQ/8jh8N\n\tJuifVyqvONOZQ==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n\ts=mimecast20190719; t=1702669090;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\tto:to:cc:mime-version:mime-version:content-type:content-type:\n\tin-reply-to:in-reply-to:references:references;\n\tbh=llvTZtJIbZNdmdWYno+Cekc4ngxhuFGxE8/pGEG7Zmk=;\n\tb=NF+cQY/2OKOmm4d6Dm53gG6F6azLcy8369fc2i5f2iSxjOYOnahShJrZJG0XXaluuE84kM\n\tqUButDstrl2VPNI8tPYMv+5bCREeYcCvLRrBsVBLetHJCh+aDjnkMmVACQPqEXA1Z505jq\n\tTpGccGDUIQFOr65dK8EuSmP/mzjOxec="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=redhat.com\n\theader.i=@redhat.com header.b=\"NF+cQY/2\"; \n\tdkim-atps=neutral","X-MC-Unique":"tnODATwQM_uTALsVJTxBIw-1","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1702669088; x=1703273888;\n\th=mime-version:user-agent:message-id:date:references:in-reply-to\n\t:subject:to:from:x-gm-message-state:from:to:cc:subject:date\n\t:message-id:reply-to;\n\tbh=llvTZtJIbZNdmdWYno+Cekc4ngxhuFGxE8/pGEG7Zmk=;\n\tb=uOkXCM+6RjFA4Zqqm3m7TFpOosg5Grv8iUxl6jV3rnFNsDJ/NnhbZNMaogD7yPh+ht\n\tHMM0DC5sZJjayXHAERrQx3QkaKsa7WoEJMXOCMgk2kJ4ZhMNEhgnt3GQUUjK5S+PQOp1\n\t4qEaju3yk0fJnRpYc6a22U0P1OMk/DPSG3e6eID7Cz/iD5wR/i+uTxD/chVJA39toF15\n\tCS4CVHv2yaLi/U744EyaTDfJJySnGybFi17lwUvkib9GtpKSLqMaRWVmJZzUBOmaenB1\n\toOAbepUb1ONsHD6K5PMqv6SjcESkPE6/oRl+mnhMNDPqbo1M3odWwkDVkV639Y2sda8Z\n\tXYsQ==","X-Gm-Message-State":"AOJu0YzYTTdNYJt5ZZ/hRmf2M9zVwZxTpRi2WyMGm3Jr8DXSnEigriHY\n\t8M5So/UZZrGRNkLaRG2apGIeIRz6qZlDPkNGLFqLnUwq7wN90tPGGxY5RubDRhi3ih0Q7aK+y8q\n\tkllg72jmFlSotXD+2rUPrOT1hmbArCwfoCZJDmaIGxjzbZDeVmds7U2CAJ71RgX8uuwFtuuinZT\n\t6z9YwYC58WYU6WKbwcig==","X-Received":["by 2002:a05:600c:1f87:b0:40c:6af0:ccdd with SMTP id\n\tje7-20020a05600c1f8700b0040c6af0ccddmr734236wmb.84.1702669087889; \n\tFri, 15 Dec 2023 11:38:07 -0800 (PST)","by 2002:a05:600c:1f87:b0:40c:6af0:ccdd with SMTP id\n\tje7-20020a05600c1f8700b0040c6af0ccddmr734231wmb.84.1702669087308; \n\tFri, 15 Dec 2023 11:38:07 -0800 (PST)"],"X-Google-Smtp-Source":"AGHT+IHV7aLBpsCj0KHXMU5eeePuMsxFGP3njXHe4Q4p1xB1TGCq+lMdlcFmM7firQHaQSHqgdq7Tg==","To":"libcamera-devel@lists.libcamera.org","In-Reply-To":"<170263526126.2829918.17629634696471616590@ping.linuxembedded.co.uk>\n\t(Kieran Bingham's message of \"Fri, 15 Dec 2023 10:14:21 +0000\")","References":"<ZXt1mDW1SpMyLrbT@duo.ucw.cz> <ZXt3I+osSMeuhXMr@duo.ucw.cz>\n\t<87r0jnokzo.fsf_-_@redhat.com>\n\t<170263526126.2829918.17629634696471616590@ping.linuxembedded.co.uk>","Date":"Fri, 15 Dec 2023 20:38:06 +0100","Message-ID":"<87sf4345pd.fsf@redhat.com>","User-Agent":"Gnus/5.13 (Gnus v5.13)","MIME-Version":"1.0","X-Mimecast-Spam-Score":"0","X-Mimecast-Originator":"redhat.com","Content-Type":"text/plain","Subject":"Re: [libcamera-devel] swisp performance notes","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":"Milan Zamazal via libcamera-devel <libcamera-devel@lists.libcamera.org>","Reply-To":"Milan Zamazal <mzamazal@redhat.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}}]