[{"id":23942,"web_url":"https://patchwork.libcamera.org/comment/23942/","msgid":"<20220715205944.GB11583@duo.ucw.cz>","date":"2022-07-15T20:59:44","subject":"Re: [libcamera-devel] [PATCH 0/7] libcamera: Map multiple V4L2\n\tformats to a single libcamera::format","submitter":{"id":49,"url":"https://patchwork.libcamera.org/api/people/49/","name":"Pavel Machek","email":"pavel@ucw.cz"},"content":"On Fri 2022-07-15 15:50:00, Jacopo Mondi wrote:\n> This series addresses the requirement of mapping multiple V4L2 pixel formats\n> to a single libcamera format. Specifically, it allows to map V4L2_PIX_FMT_JPEG\n> and V4L2_PIX_FMT_MJPEG to libcamera::formats::MJPEG.\n> \n> The series starts by allowing to associate mulitple V4L2 FourCC in\n> PixelFormatInfo and re-introduces toV4L2PixelFormat() in V4L2VideoDevice in\n> order to select among from the list of V4L2 formats the first one supported\n> from the video device.\n> \n> Patch [7/8] adds a multiplanar flag to V4L2VideoDevice::toV4L2PixelFormat() to\n> allow selection of the contiguous or non-contiguous format versions.\n> \n> Finally, the last patch associates V4L2_PIX_FMT_JPEG to formats::MJPEG.\n> \n> Tested with a UVC camera.\n> \n> Pavel, could you please test on the pinephone please ?\n\nFWIW, Reviewed-by: Pavel Machek <pavel@ucw.cz> . And yes, I'll try to\nfind time to test it.\n\nBest regards,\n\n\t\t\t\t\t\t\t\tPavel","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 20C44BE173\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 15 Jul 2022 20:59:47 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id D224E6330A;\n\tFri, 15 Jul 2022 22:59:46 +0200 (CEST)","from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 228716330A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 15 Jul 2022 22:59:45 +0200 (CEST)","by jabberwock.ucw.cz (Postfix, from userid 1017)\n\tid E65261C0001; Fri, 15 Jul 2022 22:59:44 +0200 (CEST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1657918786;\n\tbh=CfVWK4vOq2jy90ba8nww4jX3zsRtY20tZ49DRf0/qjg=;\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:Cc:\n\tFrom;\n\tb=LKuXa0GdsaMtpOh+5NlGHW4Y05SJv7fiwlgyTkDKwppsesyCV1ueQqNLCsC9pn4aa\n\tfcs1KewOdBKZ+Gic/vTOo4vuE0KG2wGzaYVR7Kdb2/YDsRrIbkzCbK8pSn7iuJd8AL\n\tWouMhhggz4pyDmmvY3aABMo4vryPQwbZD3y3loFjVC+9se27OaeahFNsdkQ2iUZHsj\n\tb6RAmYWrhL4wRe93bOklIw5nKDynvyduFONmqXnkC0kLLT5j79HnKHt6CwJkEZzUnv\n\t83iKkUPtHGJiZqt1SC1dWUVlua2FvOVe7D/DzHjmtRfUuMOQW0zz/3EYotlo9RHPbt\n\tRxwNLmfcEwvGQ==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1;\n\tt=1657918784;\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\tin-reply-to:in-reply-to:references:references;\n\tbh=7BsVnO3u/PXepflqUX6rIwP6PDMdRmkkb/tsFzD4uzg=;\n\tb=PnM2XZyoSDLAqEwKRAaI2plwdg6bDdGdV3U+59LGemCDixPK2FfolPqJsOAACReIwF/s3X\n\tWkz36Bku0GSsVa1pN/JZ9US+lkHp+bZJ+BUjUEkzW+gjEhTQNy0vyrLbv81fX2vuNr2QKt\n\tmOKjVOu0HmFca11dSWnzE6JQgb98M/Q="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ucw.cz header.i=@ucw.cz\n\theader.b=\"PnM2XZyo\"; dkim-atps=neutral","Date":"Fri, 15 Jul 2022 22:59:44 +0200","To":"Jacopo Mondi <jacopo@jmondi.org>","Message-ID":"<20220715205944.GB11583@duo.ucw.cz>","References":"<20220715135007.53574-1-jacopo@jmondi.org>","MIME-Version":"1.0","Content-Type":"multipart/signed; micalg=pgp-sha1;\n\tprotocol=\"application/pgp-signature\"; boundary=\"KFztAG8eRSV9hGtP\"","Content-Disposition":"inline","In-Reply-To":"<20220715135007.53574-1-jacopo@jmondi.org>","User-Agent":"Mutt/1.10.1 (2018-07-13)","Subject":"Re: [libcamera-devel] [PATCH 0/7] libcamera: Map multiple V4L2\n\tformats to a single libcamera::format","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":"Pavel Machek via libcamera-devel <libcamera-devel@lists.libcamera.org>","Reply-To":"Pavel Machek <pavel@ucw.cz>","Cc":"libcamera-devel@lists.libcamera.org, jozef@mlich.cz","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}},{"id":23943,"web_url":"https://patchwork.libcamera.org/comment/23943/","msgid":"<20220716101520.GA14333@duo.ucw.cz>","date":"2022-07-16T10:15:20","subject":"Re: [libcamera-devel] [PATCH 0/7] libcamera: Map multiple V4L2\n\tformats to a single libcamera::format","submitter":{"id":49,"url":"https://patchwork.libcamera.org/api/people/49/","name":"Pavel Machek","email":"pavel@ucw.cz"},"content":"Hi!\n\n> This series addresses the requirement of mapping multiple V4L2 pixel formats\n> to a single libcamera format. Specifically, it allows to map V4L2_PIX_FMT_JPEG\n> and V4L2_PIX_FMT_MJPEG to libcamera::formats::MJPEG.\n> \n> The series starts by allowing to associate mulitple V4L2 FourCC in\n> PixelFormatInfo and re-introduces toV4L2PixelFormat() in V4L2VideoDevice in\n> order to select among from the list of V4L2 formats the first one supported\n> from the video device.\n> \n> Patch [7/8] adds a multiplanar flag to V4L2VideoDevice::toV4L2PixelFormat() to\n> allow selection of the contiguous or non-contiguous format versions.\n> \n> Finally, the last patch associates V4L2_PIX_FMT_JPEG to formats::MJPEG.\n> \n> Tested with a UVC camera.\n> \n> Pavel, could you please test on the pinephone please ?\n\nI tried to do quick testing, but it is not trivial as I have to patch\nlibcamera to get it work on PinePhone at all. I could not get it to\nwork so far.\n\nBest regards,\n\t\t\t\t\t\t\t\tPavel","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 4614BBE173\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSat, 16 Jul 2022 10:15:28 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 8BD3F63312;\n\tSat, 16 Jul 2022 12:15:27 +0200 (CEST)","from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 05FE363309\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 16 Jul 2022 12:15:25 +0200 (CEST)","by jabberwock.ucw.cz (Postfix, from userid 1017)\n\tid 4F7041C0001; Sat, 16 Jul 2022 12:15:25 +0200 (CEST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1657966527;\n\tbh=a7uJbYEoDHpFxixkXO2pDvseeFkOi7jq9ysVfUDt0Oo=;\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:Cc:\n\tFrom;\n\tb=2aMGmk4kXMGpBXyrMvahJIs18pISmTa2yHp/irjBlaFXHiDQ1inv2R0rca5UGfbOF\n\tDnECqLxe71FAxQidUKDWJeL3bKGszr4iI/1jSdlntimAKUW9RvGMmBzAV92OAlpZyK\n\twigGmoIzUTRIi2waZ4q0hGUOmxQtjylK7LUy1Ihk3EKyb2Me/rVfNzn8ZZZWQykQ8F\n\trBn7QfK7tjPoBq9B5/S6lRxk7QEjtcon949ln4uol1pQq++oruZfWGNLQ8e600wIoI\n\tLXKiVsx8wTJsmkrpyHDZHC0KsuvxpW9fCoXqL0yEuzlOffyZWY7CiGQWWT+I2hjGH7\n\tUxo7BQ1B9dXbQ==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1;\n\tt=1657966525;\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\tin-reply-to:in-reply-to:references:references;\n\tbh=vbVuMDDKpLrZeWxhHxJnKH+u4Woln0LjuHDL+N8x/kQ=;\n\tb=OxPiAe12qylHCNefFagbucnUnUDI5uFFkIy/wb8Q24fCmn+pbEJga9b8aQzdEG2fiDllZY\n\tp2pmANEcDIOrB1ojCa2RAvbtykcBpJ0Q6ahowfXuJAFHhG4O6DzwzQ1dQ7zSceYdwzylpH\n\tQjvqW+Jk1W5TURZ/S+iL06EtjTWGFW0="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ucw.cz header.i=@ucw.cz\n\theader.b=\"OxPiAe12\"; dkim-atps=neutral","Date":"Sat, 16 Jul 2022 12:15:20 +0200","To":"Jacopo Mondi <jacopo@jmondi.org>","Message-ID":"<20220716101520.GA14333@duo.ucw.cz>","References":"<20220715135007.53574-1-jacopo@jmondi.org>","MIME-Version":"1.0","Content-Type":"multipart/signed; micalg=pgp-sha1;\n\tprotocol=\"application/pgp-signature\"; boundary=\"OgqxwSJOaUobr8KG\"","Content-Disposition":"inline","In-Reply-To":"<20220715135007.53574-1-jacopo@jmondi.org>","User-Agent":"Mutt/1.10.1 (2018-07-13)","Subject":"Re: [libcamera-devel] [PATCH 0/7] libcamera: Map multiple V4L2\n\tformats to a single libcamera::format","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":"Pavel Machek via libcamera-devel <libcamera-devel@lists.libcamera.org>","Reply-To":"Pavel Machek <pavel@ucw.cz>","Cc":"libcamera-devel@lists.libcamera.org, jozef@mlich.cz","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}},{"id":24068,"web_url":"https://patchwork.libcamera.org/comment/24068/","msgid":"<20220723102102.wgbwxctvkqj7bu7z@uno.localdomain>","date":"2022-07-23T10:21:02","subject":"Re: [libcamera-devel] [PATCH 0/7] libcamera: Map multiple V4L2\n\tformats to a single libcamera::format","submitter":{"id":3,"url":"https://patchwork.libcamera.org/api/people/3/","name":"Jacopo Mondi","email":"jacopo@jmondi.org"},"content":"Hi Pavel,\n\nOn Sat, Jul 16, 2022 at 12:15:20PM +0200, Pavel Machek wrote:\n> Hi!\n>\n> > This series addresses the requirement of mapping multiple V4L2 pixel formats\n> > to a single libcamera format. Specifically, it allows to map V4L2_PIX_FMT_JPEG\n> > and V4L2_PIX_FMT_MJPEG to libcamera::formats::MJPEG.\n> >\n> > The series starts by allowing to associate mulitple V4L2 FourCC in\n> > PixelFormatInfo and re-introduces toV4L2PixelFormat() in V4L2VideoDevice in\n> > order to select among from the list of V4L2 formats the first one supported\n> > from the video device.\n> >\n> > Patch [7/8] adds a multiplanar flag to V4L2VideoDevice::toV4L2PixelFormat() to\n> > allow selection of the contiguous or non-contiguous format versions.\n> >\n> > Finally, the last patch associates V4L2_PIX_FMT_JPEG to formats::MJPEG.\n> >\n> > Tested with a UVC camera.\n> >\n> > Pavel, could you please test on the pinephone please ?\n>\n> I tried to do quick testing, but it is not trivial as I have to patch\n> libcamera to get it work on PinePhone at all. I could not get it to\n> work so far.\n>\n\nThanks for testing!\n\nTurns out I have a pinephone as well, and I spent the last days trying\nto set it up to test libcamera there.\n\nThe result is that I have sent a v2 of this series with one additional\npatch on top and had to massage the video driver a bit to make it\nslightly more compliant with libcamera requirements.\n\nWith these two branches:\n\n- postmarket os patches + ov5640 backport + sun6i-csi\nhttps://git.sr.ht/~jmondi_/linux/log/pinephone/orange-pi-5.17-20220429-1618/postmarketos\n- JPEG/MJPEG mapping\nhttps://git.sr.ht/~jmondi_/libcamera/log/jmondi/pinephone\n\nI'm able to capture from ov5640 in YUYV and JPEG formats in different\nresolutions:\n$ cam -c2 -C --stream pixelformat=YUYV,width=640,height=480\n$ cam -c2 -C --stream pixelformat=MJPEG,width=1920,height=1080 -F\n\nI've been able to inspect the YUYV image and they're ok, the JPEG one\ncan't be opened with my viewer and I've not investigated why. I recall\nI tested JPEG with the ov5640 driver in a CSI-2 setup and it worked.\nNot sure if the sun6i csi receiver plays a role here ?\n\nAnyway, I tried NV12 and it fails because of a wrong plane mapping.\nHaven't investigated yet but I presume it's because we map NV12 to the\ncontiguous planar format version. The JPEG/MJPEG series would help\nmapping formats::NV12 to the right V4L2 format version, but I haven't\ndone that it yet.\n\nCapturing in full resolution doesn't work. The sensor hangs and I\npresume it is because of the sensor driver. The long list of changes\nnow upstreamed for the ov5640 sensor modes only apply to CSI-2 setups,\nas I haven't got a parallel setup to test with at the time. The series\nhas been tested on a parallel setup by other media developers and no\nbreakages were reported, but the fact the sensor hangs makes me think\nit's driver's fault.\n\nHope this serves as a base for further investigations!\n\nThanks\n   j\n\n> Best regards,\n> \t\t\t\t\t\t\t\tPavel\n> --\n> People of Russia, stop Putin before his war on Ukraine escalates.","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 1C667BD1F1\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSat, 23 Jul 2022 10:21:08 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 79A2C63312;\n\tSat, 23 Jul 2022 12:21:07 +0200 (CEST)","from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net\n\t[IPv6:2001:4b98:dc4:8::225])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id B6F48603F8\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 23 Jul 2022 12:21:06 +0200 (CEST)","(Authenticated sender: jacopo@jmondi.org)\n\tby mail.gandi.net (Postfix) with ESMTPSA id 592901C000E;\n\tSat, 23 Jul 2022 10:21:04 +0000 (UTC)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1658571667;\n\tbh=X27+2oZGFuJTj8nOscsLYGMgyna4NqrtFbKR+AtKPNQ=;\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:Cc:\n\tFrom;\n\tb=vYonFk77iCv0vrOsViCwS/DQl+/uyfx/dCKH4k6ziLcmSDEaJAqV/kh0rZxaq+pM5\n\t6hEHyTapg1NIHWrLilZQLHNb0UCf7IylW6/MEW8aNv4I0KFYlhGJ5s4WZ0zTwG03Mo\n\t2kT6oYOQX6Mdt9sEukFXP2v5L9abJbl+DQs26Tjx/mgiq/nb/iF4/JXA6CJZDP8Scw\n\tzaHpiKdGhbRHKMQK6QB0/+GQPXpHHqHhiZ3cY53aRjHrq5uYewfgR/xO7JGWKMYC2O\n\tjXcZW1t9+zckYbRC6yuqrGGMmDeMxRpwXPgNgkJ0teUkWipHKW4aa2IuOodTt83NE6\n\tX/Q1c6PETnpLw==","Date":"Sat, 23 Jul 2022 12:21:02 +0200","To":"Pavel Machek <pavel@ucw.cz>","Message-ID":"<20220723102102.wgbwxctvkqj7bu7z@uno.localdomain>","References":"<20220715135007.53574-1-jacopo@jmondi.org>\n\t<20220716101520.GA14333@duo.ucw.cz>","MIME-Version":"1.0","Content-Type":"multipart/signed; micalg=pgp-sha256;\n\tprotocol=\"application/pgp-signature\"; boundary=\"pgoznxi2q7stq7hv\"","Content-Disposition":"inline","In-Reply-To":"<20220716101520.GA14333@duo.ucw.cz>","Subject":"Re: [libcamera-devel] [PATCH 0/7] libcamera: Map multiple V4L2\n\tformats to a single libcamera::format","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":"Jacopo Mondi via libcamera-devel <libcamera-devel@lists.libcamera.org>","Reply-To":"Jacopo Mondi <jacopo@jmondi.org>","Cc":"libcamera-devel@lists.libcamera.org, jozef@mlich.cz","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}},{"id":24079,"web_url":"https://patchwork.libcamera.org/comment/24079/","msgid":"<20220723180008.GA31662@duo.ucw.cz>","date":"2022-07-23T18:00:08","subject":"Re: [libcamera-devel] [PATCH 0/7] libcamera: Map multiple V4L2\n\tformats to a single libcamera::format","submitter":{"id":49,"url":"https://patchwork.libcamera.org/api/people/49/","name":"Pavel Machek","email":"pavel@ucw.cz"},"content":"Hi!\n\n> Thanks for testing!\n> \n> Turns out I have a pinephone as well, and I spent the last days trying\n> to set it up to test libcamera there.\n\nNice!\n\n> The result is that I have sent a v2 of this series with one additional\n> patch on top and had to massage the video driver a bit to make it\n> slightly more compliant with libcamera requirements.\n> \n> With these two branches:\n> \n> - postmarket os patches + ov5640 backport + sun6i-csi\n> https://git.sr.ht/~jmondi_/linux/log/pinephone/orange-pi-5.17-20220429-1618/postmarketos\n> - JPEG/MJPEG mapping\n> https://git.sr.ht/~jmondi_/libcamera/log/jmondi/pinephone\n> \n> I'm able to capture from ov5640 in YUYV and JPEG formats in different\n> resolutions:\n> $ cam -c2 -C --stream pixelformat=YUYV,width=640,height=480\n> $ cam -c2 -C --stream pixelformat=MJPEG,width=1920,height=1080 -F\n\n> I've been able to inspect the YUYV image and they're ok, the JPEG one\n> can't be opened with my viewer and I've not investigated why. I recall\n> I tested JPEG with the ov5640 driver in a CSI-2 setup and it worked.\n\nJPEG works for me. At some resolution/fps setting I was getting\ncorruption in YUYV (?), and there JPEG got corrupted, too.\n\n> Capturing in full resolution doesn't work. The sensor hangs and I\n> presume it is because of the sensor driver. The long list of changes\n> now upstreamed for the ov5640 sensor modes only apply to CSI-2\n\nThis worked for me:\n\n#build/src/cam/cam  -c /base/i2c-csi/rear-camera@4c  -spixelformat=JPEG,width=2592,height=1944 --sdl -C20 -F/tmp/delme.#\n\nframe_interval was 10 iirc. This, too:\n\n#build/src/qcam/qcam -r gles -spixelformat=SBGGR8,width=2592,height=1944 -c /base/i2c-csi/rear-camera@4c\n\nSBGGR8 works for me at high resolutions, while YUYV works at low\nresolutions. I have to adjust frame_interval for some stuff to work.\n\nBest regards,\n\t\t\t\t\t\t\t\tPavel","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 2BF3BC3275\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSat, 23 Jul 2022 18:00:12 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 7994C63312;\n\tSat, 23 Jul 2022 20:00:11 +0200 (CEST)","from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 5DB9F603F8\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 23 Jul 2022 20:00:09 +0200 (CEST)","by jabberwock.ucw.cz (Postfix, from userid 1017)\n\tid B9CD01C0001; Sat, 23 Jul 2022 20:00:08 +0200 (CEST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1658599211;\n\tbh=kClGfSSnocUy3UaqE34Jag57MD78dQsPtGJ76XUOt6M=;\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:Cc:\n\tFrom;\n\tb=rw3LQpd/Rbie3/s4gd7JQLamt3/RJlRCvUFZEIHAd49TfCMCpBHOKDKtz2W4tWD6U\n\tFj8JcK8rsvuwEqx486ATG240W+/HxgNs1UCrjrnV09rC2T9f++Omkx7aGXfJWV1asX\n\tXOfW48bmn9Su3ZJR6eCTzCQF2Iy/p/v9KNst20yyxBeSwl8iqSd06eAtzhLp4goxYc\n\tf7zX2ZxGCk1BxOFl3eAEPzMC+el8v7UehhXJFhvXtCF4WuVy1FNHSSHqQVXjISvf2w\n\tFDwsIC/4ZHB/AiiauUKNzQnXcewnjmSL3Kh9n8/yXzgfkToautuUxe5rYOWVKbpWIY\n\t8pi4+rQGokXoQ==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1;\n\tt=1658599208;\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\tin-reply-to:in-reply-to:references:references;\n\tbh=9EM1q6DfWx1xj7sVJ6FP84rZZNyrE7iE5jNhf5SEo+w=;\n\tb=YC5NpvySmlkay3Aj99UCGNgYz/l1pC3jvU94u9Mndwi82/Lwd8WgGox4q+JXZYSfH9evci\n\tRuR354zzxhzBYB//wl6Rc+yqLUGBYdL4FcPCFf8vF4PyMbNVXELCCfNEzucBSo79EdaQ5G\n\tHCjpFIG/mSeZzCogjVvdnfaSHzWNgeQ="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ucw.cz header.i=@ucw.cz\n\theader.b=\"YC5NpvyS\"; dkim-atps=neutral","Date":"Sat, 23 Jul 2022 20:00:08 +0200","To":"Jacopo Mondi <jacopo@jmondi.org>","Message-ID":"<20220723180008.GA31662@duo.ucw.cz>","References":"<20220715135007.53574-1-jacopo@jmondi.org>\n\t<20220716101520.GA14333@duo.ucw.cz>\n\t<20220723102102.wgbwxctvkqj7bu7z@uno.localdomain>","MIME-Version":"1.0","Content-Type":"multipart/signed; micalg=pgp-sha1;\n\tprotocol=\"application/pgp-signature\"; boundary=\"2fHTh5uZTiUOsy+g\"","Content-Disposition":"inline","In-Reply-To":"<20220723102102.wgbwxctvkqj7bu7z@uno.localdomain>","User-Agent":"Mutt/1.10.1 (2018-07-13)","Subject":"Re: [libcamera-devel] [PATCH 0/7] libcamera: Map multiple V4L2\n\tformats to a single libcamera::format","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":"Pavel Machek via libcamera-devel <libcamera-devel@lists.libcamera.org>","Reply-To":"Pavel Machek <pavel@ucw.cz>","Cc":"libcamera-devel@lists.libcamera.org, jozef@mlich.cz","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}}]