From patchwork Fri Apr 4 07:46:20 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 23134 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 323D2C3213 for ; Fri, 4 Apr 2025 07:46:37 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id DEEDC689A3; Fri, 4 Apr 2025 09:46:36 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="DppLf4V4"; 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 6D43D68994 for ; Fri, 4 Apr 2025 09:46:34 +0200 (CEST) Received: from neptunite.flets-east.jp (unknown [IPv6:2404:7a81:160:2100:cd45:d129:c842:b4ce]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5E66149E; Fri, 4 Apr 2025 09:44:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1743752680; bh=VtK3bDOW+9G6LpPiqC0/E2lF9c1uZCaZd9DjjakDA1Q=; h=From:To:Cc:Subject:Date:From; b=DppLf4V4Px2Adz5rHhPrZ0Ooq79Y5Vgq6sQa354izbENrNFrDN2wuDJbpzyur5XOU I//FJ9qCWfCbWKp2p7YmRc/Tyt5mLcvIhuOXZfbf078oljLWHYITxgW7GkJTZc/zUq fM4ejXue0sobro143d+zAJXqLZj8cC8tVWgg0khM= From: Paul Elder To: libcamera-devel@lists.libcamera.org Cc: Paul Elder Subject: [PATCH 0/3] libcamera: pipeline: Use shared pointers for MediaDevice Date: Fri, 4 Apr 2025 16:46:20 +0900 Message-ID: <20250404074624.2975182-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.47.2 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" This series switches the pipelines to use shared pointers of MediaDevice instead of raw pointers. This will facilitate making more complex pipeline handlers in the future, such as ones that contain multiple pipelines. Kieran Bingham (3): libcamera: v4l2: Support fromEntityName with shared_ptr libcamera: pipeline: utilise shared MediaDevice pointers libcamera: v4l2: Remove fromEntityName(MediaDevice*) include/libcamera/internal/pipeline_handler.h | 8 ++++---- include/libcamera/internal/v4l2_subdevice.h | 2 +- include/libcamera/internal/v4l2_videodevice.h | 2 +- src/libcamera/pipeline/imx8-isi/imx8-isi.cpp | 2 +- src/libcamera/pipeline/ipu3/cio2.cpp | 2 +- src/libcamera/pipeline/ipu3/cio2.h | 2 +- src/libcamera/pipeline/ipu3/imgu.cpp | 3 ++- src/libcamera/pipeline/ipu3/imgu.h | 4 ++-- src/libcamera/pipeline/ipu3/ipu3.cpp | 4 ++-- src/libcamera/pipeline/mali-c55/mali-c55.cpp | 2 +- src/libcamera/pipeline/rkisp1/rkisp1.cpp | 2 +- src/libcamera/pipeline/rkisp1/rkisp1_path.cpp | 2 +- src/libcamera/pipeline/rkisp1/rkisp1_path.h | 2 +- .../pipeline/rpi/common/pipeline_base.cpp | 6 ++++-- src/libcamera/pipeline/rpi/common/pipeline_base.h | 9 ++++++--- src/libcamera/pipeline/rpi/pisp/pisp.cpp | 10 ++++++---- src/libcamera/pipeline/rpi/vc4/vc4.cpp | 13 +++++++++---- src/libcamera/pipeline/simple/simple.cpp | 13 +++++++------ src/libcamera/pipeline/uvcvideo/uvcvideo.cpp | 6 +++--- src/libcamera/pipeline/vimc/vimc.cpp | 6 +++--- src/libcamera/pipeline_handler.cpp | 14 ++++++++------ src/libcamera/v4l2_subdevice.cpp | 2 +- src/libcamera/v4l2_videodevice.cpp | 2 +- test/delayed_controls.cpp | 2 +- test/libtest/buffer_source.cpp | 2 +- 25 files changed, 69 insertions(+), 53 deletions(-)