From patchwork Tue Feb 26 16:26:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 630 Return-Path: Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 74B72610B2 for ; Tue, 26 Feb 2019 17:26:18 +0100 (CET) X-Originating-IP: 2.224.242.101 Received: from uno.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id E40D76000F; Tue, 26 Feb 2019 16:26:17 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Tue, 26 Feb 2019 17:26:33 +0100 Message-Id: <20190226162641.12116-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 0/8] v4l2_(sub)dev: improvements and tests 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: Tue, 26 Feb 2019 16:26:18 -0000 Hello, another round for this mixed improvements and tests for v4l2 subdevice and v4l2 device. Compared to v2, the format enumeration has changed to handle subdevices that do not implement the IOCTL and return ENOTTY when called. Other minor changes: I've added a patch to update the crop/scale rectangle and one that makes V4L2Subdevice inherit from Loggable to add a prefix tag to the log message. I have not updated the kernel headers yet, as META_OUTPUT will be added in v5.0 and not v4.20 as I initially though. Thanks j Jacopo Mondi (8): libcamera: v4l2_subdevice: Store media entity libcamera: v4l2_subdevice: Implement ENUM_FRAME_SIZES libcamera: v4l2_device: Add support for META_CAPTURE devices libcamera: v4l2_subdevice: Update crop/compose rectangle test: v4l2_subdevice: Add format handling test test: v4l2_subdevice: Add ListFormat test test: v4l2_device: Add format handling test libcamera: v4l2_subdevice: Inherit from Loggable src/libcamera/include/v4l2_device.h | 4 + src/libcamera/include/v4l2_subdevice.h | 24 +++- src/libcamera/v4l2_device.cpp | 38 +++--- src/libcamera/v4l2_subdevice.cpp | 140 +++++++++++++++++++- test/meson.build | 1 + test/v4l2_device/meson.build | 1 + test/v4l2_device/test_formats.cpp | 65 +++++++++ test/v4l2_subdevice/list_formats.cpp | 76 +++++++++++ test/v4l2_subdevice/meson.build | 11 ++ test/v4l2_subdevice/test_formats.cpp | 79 +++++++++++ test/v4l2_subdevice/v4l2_subdevice_test.cpp | 90 +++++++++++++ test/v4l2_subdevice/v4l2_subdevice_test.h | 36 +++++ 12 files changed, 540 insertions(+), 25 deletions(-) create mode 100644 test/v4l2_device/test_formats.cpp create mode 100644 test/v4l2_subdevice/list_formats.cpp create mode 100644 test/v4l2_subdevice/meson.build create mode 100644 test/v4l2_subdevice/test_formats.cpp create mode 100644 test/v4l2_subdevice/v4l2_subdevice_test.cpp create mode 100644 test/v4l2_subdevice/v4l2_subdevice_test.h --- 2.20.1