From patchwork Sun Jan 27 14:43:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 420 Return-Path: Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id CE49560C78 for ; Sun, 27 Jan 2019 15:43:48 +0100 (CET) X-Originating-IP: 79.18.49.20 Received: from uno.homenet.telecomitalia.it (host20-49-dynamic.18-79-r.retail.telecomitalia.it [79.18.49.20]) (Authenticated sender: jacopo@jmondi.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 346A640003; Sun, 27 Jan 2019 14:43:47 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Sun, 27 Jan 2019 15:43:52 +0100 Message-Id: <20190127144354.9360-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] libcamera: Add image format definitions X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2019 14:43:49 -0000 Add definitions of memory image formats supported by Libcamera. The here defined formats will be exposed to applications, and their definition can be expanded to include a libcamera-specific identifier to be offered to applications if we don't want them to use V4L2_PIX_FMT_* defines directly. I have added, as an example, the most commonly used YUV formats, packed, semi-planar and planar ones. I have here also included a test utility I used to printout the list of supported formats and make sure it works. Not sure it qualifies as a test, as currently it cannot fail. Thanks j Jacopo Mondi (2): libcamera: formats: Add image formats definitions test: List libcamera supported image formats include/libcamera/formats.h | 61 +++++++++++++++++++++++++++++++++++ include/libcamera/meson.build | 1 + test/list-formats.cpp | 33 +++++++++++++++++++ test/meson.build | 1 + 4 files changed, 96 insertions(+) create mode 100644 include/libcamera/formats.h create mode 100644 test/list-formats.cpp --- 2.20.1