From patchwork Wed Mar 18 03:31:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 3153 Return-Path: Received: from bin-mail-out-06.binero.net (bin-mail-out-06.binero.net [195.74.38.229]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 430AE6041A for ; Wed, 18 Mar 2020 04:32:36 +0100 (CET) X-Halon-ID: 16c4b6dd-68c9-11ea-9f85-005056917a89 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (p4fca2392.dip0.t-ipconnect.de [79.202.35.146]) by bin-vsp-out-01.atm.binero.net (Halon) with ESMTPA id 16c4b6dd-68c9-11ea-9f85-005056917a89; Wed, 18 Mar 2020 04:32:34 +0100 (CET) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Wed, 18 Mar 2020 04:31:52 +0100 Message-Id: <20200318033200.3042855-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 0/8] libcamera: PixelFormat: Turn into a class X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2020 03:32:36 -0000 Hello, This series replaces the PixelFormat definition of a unsigned int with a class implementation that can hold both a FourCC and a set of modifiers. It is important to allow users of libcamera to look at modifiers. This series do not make use of the modifiers, a follow up series that adds RAW capture to the IPU3 will make use of them to describe the IPU3 Bayer format memory layout. Laurent Pinchart (1): libcamera: PixelFormat: Make constructor explicit Niklas Söderlund (7): libcamera: Use PixelFormat instead of unsigned int where appropriate libcamera: pixelformats: include linux/drm_fourcc.h test: v4l2_videodevice: buffer_cache: Use DRM pixel format libcamera: pipeline: vimc: Remove internal usage of ImageFormats libcamera: pipeline: uvcvideo: Translate from V4L2 to DRM pixel formats libcamera: PixelFormat: Turn into a class libcamera: PixelFormat: Mark all function arguments of type PixelFormat as const reference include/libcamera/pixelformats.h | 27 +++++++- include/libcamera/stream.h | 4 +- src/cam/main.cpp | 8 +-- src/gstreamer/gstlibcamera-utils.cpp | 18 ++--- src/libcamera/include/v4l2_videodevice.h | 5 +- src/libcamera/pipeline/ipu3/ipu3.cpp | 9 ++- src/libcamera/pipeline/rkisp1/rkisp1.cpp | 23 +++---- src/libcamera/pipeline/uvcvideo.cpp | 24 +++++-- src/libcamera/pipeline/vimc.cpp | 21 +++--- src/libcamera/pixelformats.cpp | 87 ++++++++++++++++++++++-- src/libcamera/stream.cpp | 8 +-- src/libcamera/v4l2_videodevice.cpp | 37 +++++----- src/qcam/format_converter.cpp | 8 +-- src/qcam/format_converter.h | 6 +- src/qcam/viewfinder.cpp | 4 +- src/qcam/viewfinder.h | 6 +- src/v4l2/v4l2_camera.cpp | 2 +- src/v4l2/v4l2_camera.h | 2 +- src/v4l2/v4l2_camera_proxy.cpp | 35 +++++----- src/v4l2/v4l2_camera_proxy.h | 2 +- test/stream/stream_formats.cpp | 24 +++---- test/v4l2_videodevice/buffer_cache.cpp | 2 +- 22 files changed, 236 insertions(+), 126 deletions(-)