{"id":3104,"url":"https://patchwork.libcamera.org/api/covers/3104/?format=json","web_url":"https://patchwork.libcamera.org/cover/3104/","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":"<20200316024036.2474307-1-niklas.soderlund@ragnatech.se>","date":"2020-03-16T02:40:32","name":"[libcamera-devel,0/4] libcamera: PixelFormat: Turn into a class","submitter":{"id":5,"url":"https://patchwork.libcamera.org/api/people/5/?format=json","name":"Niklas Söderlund","email":"niklas.soderlund@ragnatech.se"},"mbox":"https://patchwork.libcamera.org/cover/3104/mbox/","series":[{"id":721,"url":"https://patchwork.libcamera.org/api/series/721/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=721","date":"2020-03-16T02:40:32","name":"libcamera: PixelFormat: Turn into a class","version":1,"mbox":"https://patchwork.libcamera.org/series/721/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/3104/comments/","headers":{"Return-Path":"<niklas.soderlund@ragnatech.se>","Received":["from vsp-unauthed02.binero.net (vsp-unauthed02.binero.net\n\t[195.74.38.227])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 6ED6D60417\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 16 Mar 2020 03:41:34 +0100 (CET)","from bismarck.berto.se (p4fca2392.dip0.t-ipconnect.de\n\t[79.202.35.146]) by bin-vsp-out-03.atm.binero.net (Halon) with ESMTPA\n\tid 8b15a529-672f-11ea-9f40-0050569116f7;\n\tMon, 16 Mar 2020 03:41:02 +0100 (CET)"],"X-Halon-ID":"8b15a529-672f-11ea-9f40-0050569116f7","Authorized-sender":"niklas@soderlund.pp.se","From":"=?utf-8?q?Niklas_S=C3=B6derlund?= <niklas.soderlund@ragnatech.se>","To":"libcamera-devel@lists.libcamera.org","Date":"Mon, 16 Mar 2020 03:40:32 +0100","Message-Id":"<20200316024036.2474307-1-niklas.soderlund@ragnatech.se>","X-Mailer":"git-send-email 2.25.1","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 0/4] libcamera: PixelFormat: Turn into a\n\tclass","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":"Mon, 16 Mar 2020 02:41:34 -0000"},"content":"Hello,\n\nThis series replaces the PixelFormat definition of a unisgned int with a \nclass implementation that can hold both a fourcc and a set of modifiers.  \nThis is important to allow users of libcamera to look at modifiers.\n\nThis series do not make use of the modifiers, a follow up series that \nadds RAW capture to the IPU3 will make use of them to describe the IPU3 \nBayer format memory layout.\n\nPatch 1/4 switch to PixelFormat instead of an unsigned int where a pixel \nformat really should be used. Patch 2/4 and 3/4 removes the use of the \nrather ugly ImageFormats helper from the code paths dealing with \nPixelFormats. Finally 4/4 turns PixelFormat into a class.\n\nNiklas Söderlund (4):\n  libcamera: Use PixelFormat instead of unsigned int where appropriate\n  libcamera: v4l2_videodevice: Remove usage of ImageFormats\n  libcamera: pipeline: vimc: Remove internal usage of ImageFormats\n  libcamera: PixelFormat: Turn into a class\n\n include/libcamera/pixelformats.h         |  24 +++++-\n src/cam/main.cpp                         |   8 +-\n src/gstreamer/gstlibcamera-utils.cpp     |  14 ++--\n src/libcamera/include/v4l2_videodevice.h |   2 +-\n src/libcamera/pipeline/ipu3/ipu3.cpp     |   2 +-\n src/libcamera/pipeline/rkisp1/rkisp1.cpp |   2 +-\n src/libcamera/pipeline/uvcvideo.cpp      |  12 +--\n src/libcamera/pipeline/vimc.cpp          |   8 +-\n src/libcamera/pixelformats.cpp           | 101 +++++++++++++++++++++--\n src/libcamera/stream.cpp                 |   2 +-\n src/libcamera/v4l2_videodevice.cpp       |  16 ++--\n src/qcam/format_converter.cpp            |   4 +-\n src/qcam/format_converter.h              |   6 +-\n src/qcam/viewfinder.cpp                  |   2 +-\n src/qcam/viewfinder.h                    |   6 +-\n src/v4l2/v4l2_camera_proxy.cpp           |   4 +-\n 16 files changed, 162 insertions(+), 51 deletions(-)"}