From patchwork Tue Oct 22 14:53:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 21736 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 5AA09BD160 for ; Tue, 22 Oct 2024 14:53:32 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 6E03C65399; Tue, 22 Oct 2024 16:53:31 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="T/0glX/x"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 9A48D6053E for ; Tue, 22 Oct 2024 16:53:29 +0200 (CEST) Received: from ideasonboard.com (93-61-96-190.ip145.fastwebnet.it [93.61.96.190]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B0042874; Tue, 22 Oct 2024 16:51:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1729608702; bh=BzEA5MUbiV4AKamCm248mbS1iXhLqAXmBJHNMAYYVPs=; h=From:To:Cc:Subject:Date:From; b=T/0glX/x2XJciGz0UHtViQt76EjdF5NFgWYvMPTt8Uu+lW4tcfP6HIth/ApFAbpv8 qFa1MZG37Jcgmie4v+Nn4Pf3uHDl5PBSxHnz/gnNdk2cw5uiV+seQZiGdaSXRFcIsM ZWBhgmi6Xs1qh4nwpjE2OXvWgIY4pyj8O3296+qU= From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Cc: Jacopo Mondi Subject: [PATCH 0/3] Introduce CameraSensorFactory Date: Tue, 22 Oct 2024 16:53:12 +0200 Message-ID: <20241022145321.25923-1-jacopo.mondi@ideasonboard.com> X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The introduction of CameraSensorFactory has been proposed in many different series since (!!!) 2020 In order to prepare to support RAW camera sensor models that supports multiple data streams, re-propose the CameraSensorFactory to later extend it with a CameraSensorRaw implementation. Jacopo Mondi (1): libcamera: camera_sensor: Introduce CameraSensorFactory Laurent Pinchart (2): libcamera: camera_sensor: Create abstract base class libcamera: camera_sensor: Sort factories by priority Documentation/Doxyfile-internal.in | 1 + include/libcamera/internal/camera_sensor.h | 146 ++- src/libcamera/pipeline/imx8-isi/imx8-isi.cpp | 9 +- src/libcamera/pipeline/ipu3/cio2.cpp | 7 +- src/libcamera/pipeline/mali-c55/mali-c55.cpp | 5 +- src/libcamera/pipeline/rkisp1/rkisp1.cpp | 7 +- .../pipeline/rpi/common/pipeline_base.cpp | 5 +- src/libcamera/pipeline/simple/simple.cpp | 9 +- src/libcamera/pipeline/vimc/vimc.cpp | 7 +- src/libcamera/sensor/camera_sensor.cpp | 1038 +++-------------- src/libcamera/sensor/camera_sensor_legacy.cpp | 1015 ++++++++++++++++ src/libcamera/sensor/meson.build | 1 + test/camera-sensor.cpp | 7 +- .../v4l2_videodevice_test.cpp | 5 +- test/v4l2_videodevice/v4l2_videodevice_test.h | 2 +- 15 files changed, 1280 insertions(+), 984 deletions(-) create mode 100644 src/libcamera/sensor/camera_sensor_legacy.cpp --- 2.47.0