{"id":3620,"url":"https://patchwork.libcamera.org/api/1.1/covers/3620/?format=json","web_url":"https://patchwork.libcamera.org/cover/3620/","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":"<20200430005226.18162-1-laurent.pinchart@ideasonboard.com>","date":"2020-04-30T00:52:22","name":"[libcamera-devel,0/4] libcamera: Improve conversion between DRM and V4L2 formats","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/1.1/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/cover/3620/mbox/","series":[{"id":856,"url":"https://patchwork.libcamera.org/api/1.1/series/856/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=856","date":"2020-04-30T00:52:22","name":"libcamera: Improve conversion between DRM and V4L2 formats","version":1,"mbox":"https://patchwork.libcamera.org/series/856/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/3620/comments/","headers":{"Return-Path":"<laurent.pinchart@ideasonboard.com>","Received":["from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id ECD806041C\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 30 Apr 2020 02:52:30 +0200 (CEST)","from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi\n\t[81.175.216.236])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 85ACA503\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 30 Apr 2020 02:52:30 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"X+xJ1lc7\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1588207950;\n\tbh=k6jQ0If4SHXimesBpweu9oOHxFJFowfY1ysOYUCf95w=;\n\th=From:To:Subject:Date:From;\n\tb=X+xJ1lc7QPhbGgTb25SeEX1L/nUtULic70fOCLHPOZ1Pk1s/hoHlMcGU+YDzYCLcL\n\t/X7PPeBFVcHDbv84nHpuKbJ4N3bFWKmJkjyKABmGi6JC2Ous9ESh8SOc4qcnP3pwAC\n\tVbNH0pgvRWv3kHrhdOIqrIaMQifhkngrRVDQD6eE=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Thu, 30 Apr 2020 03:52:22 +0300","Message-Id":"<20200430005226.18162-1-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.25.3","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 0/4] libcamera: Improve conversion between\n\tDRM and V4L2 formats","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>","X-List-Received-Date":"Thu, 30 Apr 2020 00:52:31 -0000"},"content":"Hello,\n\nThis small series improves conversion between DRM and V4L2 formats, to\npave the way to adding more format information in the libcamera core.\n\nPatch 1/4 starts by moving the V4L2PixelFormat class to a separate file,\nwithout modifying the code. Patch 2/4 then moves format conversion from\nV4L2VideoDevice to V4L2PixelFormat, and patch 3/4 replaces the big\nswitch-case's with std::map. Patch 4/4 finally adds support for\nMIPI-packed 10-bit Bayer formats.\n\nLaurent Pinchart (4):\n  libcamera: v4l2_pixelformat: Move V4L2PixelFormat to a new file\n  libcamera: v4l2_pixelformat: Move DRM/V4L2 format conversion\n  libcamera: v4l2_pixelformat: Use maps to convert between DRM and V4L2\n  libcamera: v4l2_pixelformat: Add support for 10-bit Bayer formats\n\n src/libcamera/include/meson.build            |   1 +\n src/libcamera/include/v4l2_pixelformat.h     |  49 ++++\n src/libcamera/include/v4l2_videodevice.h     |  27 +-\n src/libcamera/meson.build                    |   1 +\n src/libcamera/pipeline/uvcvideo/uvcvideo.cpp |   2 +-\n src/libcamera/v4l2_pixelformat.cpp           | 292 +++++++++++++++++++\n src/libcamera/v4l2_videodevice.cpp           | 224 +-------------\n test/libtest/buffer_source.cpp               |   4 +-\n 8 files changed, 349 insertions(+), 251 deletions(-)\n create mode 100644 src/libcamera/include/v4l2_pixelformat.h\n create mode 100644 src/libcamera/v4l2_pixelformat.cpp"}