{"id":3196,"url":"https://patchwork.libcamera.org/api/covers/3196/?format=json","web_url":"https://patchwork.libcamera.org/cover/3196/","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":"<20200319132919.9563-1-laurent.pinchart@ideasonboard.com>","date":"2020-03-19T13:29:16","name":"[libcamera-devel,v3,0/3] Add a V4L2PixelFormat class","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/cover/3196/mbox/","series":[{"id":741,"url":"https://patchwork.libcamera.org/api/series/741/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=741","date":"2020-03-19T13:29:16","name":"Add a V4L2PixelFormat class","version":3,"mbox":"https://patchwork.libcamera.org/series/741/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/3196/comments/","headers":{"Return-Path":"<laurent.pinchart@ideasonboard.com>","Received":["from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 225D460418\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 19 Mar 2020 14:29:32 +0100 (CET)","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 96784A53\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 19 Mar 2020 14:29:31 +0100 (CET)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1584624571;\n\tbh=Ao2q0OBWGXTLkPQwcN2s2srz3S5y01+TdwKXPrZlzlk=;\n\th=From:To:Subject:Date:From;\n\tb=cxfd1oEoZSP4ygne/zY2B4Bdqh6rI/rMTgQPmMpI3kalFP0HJpvWVKmuT3vJyl26z\n\tPpFcv7NjJukcuXspuJcRxsYZhQXl26pqukxZuZk1TwiTGfwb4TL6sXrpH5ABG9DGa8\n\tzaW61T1bVXVo5i8KpwIYoxloGkY0UIC6/nLW1EYE=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Thu, 19 Mar 2020 15:29:16 +0200","Message-Id":"<20200319132919.9563-1-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.24.1","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v3 0/3] Add a V4L2PixelFormat class","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, 19 Mar 2020 13:29:32 -0000"},"content":"Hello,\n\nThis small patch series builds on top of Niklas' PixelFormat work to\nintroduce the V4L2 counterpart of the PixelFormat class.\n\nThe class should be extended for a lookup table of pixel format names to\nimprove the toString() method. Other helper methods to retrieve format\ninformation should probably be added too, hopefully removing some of the\ndata from the pixelFormatInfo array in v4l2_camera_proxy. Ideas on how\nto split pixel format information and conversion between the\nPixelFormat, V4L2PixelFormat and V4L2VideoDevice classes are welcome\n\nLaurent Pinchart (3):\n  libcamera: v4l2_videodevice: Add V4L2PixelFormat class\n  libcamera: v4l2_videodevice: Rename toV4L2Fourcc to toV4L2PixelFormat\n  libcamera: v4l2_videodevice: Make V4L2PixelFormat constructor explicit\n\n src/libcamera/include/v4l2_videodevice.h      |  39 +++--\n src/libcamera/pipeline/ipu3/ipu3.cpp          |  16 +--\n src/libcamera/pipeline/rkisp1/rkisp1.cpp      |   8 +-\n src/libcamera/pipeline/uvcvideo.cpp           |   8 +-\n src/libcamera/pipeline/vimc.cpp               |   6 +-\n src/libcamera/v4l2_videodevice.cpp            | 135 +++++++++++++-----\n test/libtest/buffer_source.cpp                |   3 +-\n .../v4l2_videodevice_test.cpp                 |   2 +-\n 8 files changed, 153 insertions(+), 64 deletions(-)"}