From patchwork Wed Sep 11 21:18:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 21238 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 952F3C324C for ; Wed, 11 Sep 2024 21:18:30 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 2D5C8634FC; Wed, 11 Sep 2024 23:18:29 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="UZs78CLK"; 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 CB2A9618F2 for ; Wed, 11 Sep 2024 23:18:26 +0200 (CEST) Received: from charm.tail69b4.ts.net (213-229-8-243.static.upcbusiness.at [213.229.8.243]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id BC08F83D; Wed, 11 Sep 2024 23:17:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1726089428; bh=NuUXVGh1wAZ912kjDXJAx9YOwb/nKnHwkZpcSwSdLLM=; h=From:To:Cc:Subject:Date:From; b=UZs78CLKfSW+cGASOtqc+O6fMx+WqkWZPjIzBupHqsBDdG7acQP6uESloNkAXN3gg 1b1X9brRGt9GtzFW22q36cSvqOReqagEGPfQgbZ4dUbKyujUksuXS3qKEzxyGEfP1j fkUPieBsZH8i1Itk17Uq+tGfqdxsk9vmS2VbjKeU= From: Kieran Bingham To: libcamera devel Cc: Kieran Bingham Subject: [PATCH v2 0/4] MediaLink: Provide a string representation Date: Wed, 11 Sep 2024 23:18:12 +0200 Message-ID: <20240911211816.73763-1-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.46.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" Provide a .toString() helper and a corresponding overload<< operator to directly report a string representation of a Link in a common and defined way. Patches 2 and 3 then replace existing locations that report MediaLink objects in a string form to use the new shorthand, and I have more development on top which will also use this. Following a recommendation from the previous iteration, this further breaks the helpers down and adds a MediaPad helper too. Kieran Bingham (4): libcamera: media_object: Add MediaPad string representations libcamera: media_object: Add MediaLink string representations libcamera: media_device: Use MediaLink string helper libcamera: pipeline: simple: Use MediaLink string helper include/libcamera/internal/media_object.h | 8 ++++ src/libcamera/media_device.cpp | 12 +----- src/libcamera/media_object.cpp | 50 +++++++++++++++++++++++ src/libcamera/pipeline/simple/simple.cpp | 7 +--- 4 files changed, 62 insertions(+), 15 deletions(-)