{"id":20944,"url":"https://patchwork.libcamera.org/api/1.1/covers/20944/?format=json","web_url":"https://patchwork.libcamera.org/cover/20944/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/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":"<20240815210925.4172287-1-kieran.bingham@ideasonboard.com>","date":"2024-08-15T21:09:22","name":"[0/3] MediaLink: Provide a string representation","submitter":{"id":4,"url":"https://patchwork.libcamera.org/api/1.1/people/4/?format=json","name":"Kieran Bingham","email":"kieran.bingham@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/cover/20944/mbox/","series":[{"id":4525,"url":"https://patchwork.libcamera.org/api/1.1/series/4525/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=4525","date":"2024-08-15T21:09:22","name":"MediaLink: Provide a string representation","version":1,"mbox":"https://patchwork.libcamera.org/series/4525/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/20944/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 31CADC323E\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 15 Aug 2024 21:09:33 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id D7D8A633B3;\n\tThu, 15 Aug 2024 23:09:31 +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 F3CD961955\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 15 Aug 2024 23:09:28 +0200 (CEST)","from Monstersaurus.tail69b4.ts.net\n\t(cpc89244-aztw30-2-0-cust6594.18-1.cable.virginm.net [86.31.185.195])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 21F42827;\n\tThu, 15 Aug 2024 23:08:30 +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=\"emWCBROc\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1723756110;\n\tbh=rkSarj3wkty5xCJZNqeQQHKqIzKzKGjVDWuYXdUnIA4=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=emWCBROcmGCua0aRnFCwih1ELbVRSBN5mXC2ZBtCGZLP7Afsl44FADW0+eQlk/ejS\n\tah3Hc+cdwe5nnUSrfC8rhIZYfMWVv7V6uDdDeAQZzL7RfnPElsy2+GkDm8efzetg8I\n\t78BnoEP5vZAibD4k+Q6JjB9/wktzGN7K600Owfks=","From":"Kieran Bingham <kieran.bingham@ideasonboard.com>","To":"libcamera devel <libcamera-devel@lists.libcamera.org>","Cc":"Kieran Bingham <kieran.bingham@ideasonboard.com>","Subject":"[PATCH 0/3] MediaLink: Provide a string representation","Date":"Thu, 15 Aug 2024 22:09:22 +0100","Message-Id":"<20240815210925.4172287-1-kieran.bingham@ideasonboard.com>","X-Mailer":"git-send-email 2.34.1","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":"While developing on the RkISP1 pipeline handler, I found myself\nreplicating instances of printing a MediaLink.\n\nProvide 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\nKieran Bingham (3):\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 |  4 ++++\n src/libcamera/media_device.cpp            | 14 ++++---------\n src/libcamera/media_object.cpp            | 25 +++++++++++++++++++++++\n src/libcamera/pipeline/simple/simple.cpp  |  7 ++-----\n 4 files changed, 35 insertions(+), 15 deletions(-)"}