{"id":21238,"url":"https://patchwork.libcamera.org/api/covers/21238/?format=json","web_url":"https://patchwork.libcamera.org/cover/21238/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20240911211816.73763-1-kieran.bingham@ideasonboard.com>","date":"2024-09-11T21:18:12","name":"[v2,0/4] MediaLink: Provide a string representation","submitter":{"id":4,"url":"https://patchwork.libcamera.org/api/people/4/?format=json","name":"Kieran Bingham","email":"kieran.bingham@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/cover/21238/mbox/","series":[{"id":4582,"url":"https://patchwork.libcamera.org/api/series/4582/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=4582","date":"2024-09-11T21:18:12","name":"MediaLink: Provide a string representation","version":2,"mbox":"https://patchwork.libcamera.org/series/4582/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/21238/comments/","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 952F3C324C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 11 Sep 2024 21:18:30 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 2D5C8634FC;\n\tWed, 11 Sep 2024 23:18:29 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id CB2A9618F2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 11 Sep 2024 23:18:26 +0200 (CEST)","from charm.tail69b4.ts.net (213-229-8-243.static.upcbusiness.at\n\t[213.229.8.243])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id BC08F83D;\n\tWed, 11 Sep 2024 23:17:08 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"UZs78CLK\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1726089428;\n\tbh=NuUXVGh1wAZ912kjDXJAx9YOwb/nKnHwkZpcSwSdLLM=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=UZs78CLKfSW+cGASOtqc+O6fMx+WqkWZPjIzBupHqsBDdG7acQP6uESloNkAXN3gg\n\t1b1X9brRGt9GtzFW22q36cSvqOReqagEGPfQgbZ4dUbKyujUksuXS3qKEzxyGEfP1j\n\tfkUPieBsZH8i1Itk17Uq+tGfqdxsk9vmS2VbjKeU=","From":"Kieran Bingham <kieran.bingham@ideasonboard.com>","To":"libcamera devel <libcamera-devel@lists.libcamera.org>","Cc":"Kieran Bingham <kieran.bingham@ideasonboard.com>","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","Content-Transfer-Encoding":"8bit","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Provide a .toString() helper and a corresponding overload<< operator to\ndirectly report a string representation of a Link in a common and\ndefined way.\n\nPatches 2 and 3 then replace existing locations that report MediaLink\nobjects in a string form to use the new shorthand, and I have more\ndevelopment on top which will also use this.\n\nFollowing a recommendation from the previous iteration, this further\nbreaks the helpers down and adds a MediaPad helper too.\n\nKieran Bingham (4):\n  libcamera: media_object: Add MediaPad string representations\n  libcamera: media_object: Add MediaLink string representations\n  libcamera: media_device: Use MediaLink string helper\n  libcamera: pipeline: simple: Use MediaLink string helper\n\n include/libcamera/internal/media_object.h |  8 ++++\n src/libcamera/media_device.cpp            | 12 +-----\n src/libcamera/media_object.cpp            | 50 +++++++++++++++++++++++\n src/libcamera/pipeline/simple/simple.cpp  |  7 +---\n 4 files changed, 62 insertions(+), 15 deletions(-)"}