From patchwork Thu Apr 24 14:47:13 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 23300 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by patchwork.libcamera.org (Postfix) with ESMTPS id 760EFC327D for ; Tue, 29 Apr 2025 15:17:42 +0000 (UTC) Received: from pendragon.ideasonboard.com (cpc89244-aztw30-2-0-cust6594.18-1.cable.virginm.net [86.31.185.195]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9DB17AF for ; Tue, 29 Apr 2025 17:17:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1745939856; bh=I68mX0EV5xb1/ycp59v41lZPSbnXlEt5TVIucjfIqlM=; h=From:To:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Resent-From:Resent-To:From; b=ISj/QHcUyE6NRR2nSnNigqIQkIGr98bGL5YJ+H1sqjiGOuFEqSQcev/MALjYSks7I SNhWACfDzPEr2wxc1QEgb7Na5dsH/k3QAGJ+fmXpv3fOjJkeyIbO7aQQyVFS16PWCL GOLSSf+n0iTerD+rwp4m+Ex4xCRr+RPAV554loBY= Delivered-To: kbingham@ideasonboard.com Received: from perceval.ideasonboard.com by perceval.ideasonboard.com with LMTP id uKZBHvdOCmjC6RsA4E0KoQ (envelope-from ) for ; Thu, 24 Apr 2025 16:47:19 +0200 Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by perceval.ideasonboard.com (Postfix) with ESMTPS id ABB669CE; Thu, 24 Apr 2025 16:47:18 +0200 (CEST) Authentication-Results: perceval.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.a=rsa-sha256 header.s=mail header.b=Lr/e4WCT; dkim-atps=neutral Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id DCB2968ACE; Thu, 24 Apr 2025 16:47:18 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="Lr/e4WCT"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 4EE0468AC5 for ; Thu, 24 Apr 2025 16:47:17 +0200 (CEST) Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id CD9D59CE for ; Thu, 24 Apr 2025 16:47:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1745506035; bh=I68mX0EV5xb1/ycp59v41lZPSbnXlEt5TVIucjfIqlM=; h=From:To:Subject:Date:From; b=Lr/e4WCTp8x0Afc9uU79aEwvwhdvR6DeygD0ahJLsXueP/tonYORqZHjuPOEY/uCD NSPEczkTISl0fM3dmR1TwSp9jnhyHo+wXTxmVQnm0ouW3BSC7JPQkIkM/nYjePIzG3 ZEqMOSo1PpMDXiLpwFYiTz1/85qeWn6w8NVlnOsE= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Subject: [PATCH] libcamera: stream: Add color space to configuration string representation Date: Thu, 24 Apr 2025 17:47:13 +0300 Message-ID: <20250424144713.14279-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.49.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" X-TUID: wEerL4lwv0AO Resent-From: Kieran Bingham Resent-To: parsemail@patchwork.libcamera.org Extend the string representation of StreamConfiguration, as returned by the toString() and operator<<() functions, with color space information. Signed-off-by: Laurent Pinchart --- src/libcamera/stream.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) base-commit: 3569fed7afc16fe31dfbccbfbaeb72a741bc8973 -- Regards, Laurent Pinchart diff --git a/src/libcamera/stream.cpp b/src/libcamera/stream.cpp index 978d72752b00..f091487c9353 100644 --- a/src/libcamera/stream.cpp +++ b/src/libcamera/stream.cpp @@ -407,7 +407,8 @@ std::string StreamConfiguration::toString() const */ std::ostream &operator<<(std::ostream &out, const StreamConfiguration &cfg) { - out << cfg.size << "-" << cfg.pixelFormat; + out << cfg.size << "-" << cfg.pixelFormat << "/" + << ColorSpace::toString(cfg.colorSpace); return out; }