From patchwork Mon Jun 8 23:28:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 3995 Return-Path: Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [217.70.178.230]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 72EEE603C5 for ; Tue, 9 Jun 2020 01:25:24 +0200 (CEST) Received: from uno.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay10.mail.gandi.net (Postfix) with ESMTPSA id BDAAD240007; Mon, 8 Jun 2020 23:25:23 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Tue, 9 Jun 2020 01:28:38 +0200 Message-Id: <20200608232844.10150-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/6] ImageFormats, you again 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: Mon, 08 Jun 2020 23:25:24 -0000 V2, which I think it's nicer than v1, but I'm still not 100% sure this is really a good idea. The most notable gain is replacing custom maps in pipeline handlers to tidy up things a bit.. Thanks j Jacopo Mondi (6): libcamera: formats: Make ImageFormats a templated class libcamera: v4l2_subdevice: Provide Formats typedef libcamera: formats: Make ImageFormats iterable libcamera: formats: Add ImageFormats::contain() libcamera: formats: Expose std::map::value_type libcamera: v4l2_videodevice: Use ImageFormats include/libcamera/internal/camera_sensor.h | 6 +- include/libcamera/internal/formats.h | 22 ++++-- include/libcamera/internal/v4l2_subdevice.h | 4 +- include/libcamera/internal/v4l2_videodevice.h | 4 +- src/libcamera/formats.cpp | 77 ++++++++++++++++--- .../pipeline/raspberrypi/raspberrypi.cpp | 14 ++-- src/libcamera/pipeline/simple/simple.cpp | 3 +- src/libcamera/pipeline/uvcvideo/uvcvideo.cpp | 3 +- src/libcamera/v4l2_subdevice.cpp | 12 ++- src/libcamera/v4l2_videodevice.cpp | 14 +++- test/v4l2_subdevice/list_formats.cpp | 2 +- 11 files changed, 121 insertions(+), 40 deletions(-) --- 2.27.0