From patchwork Mon Jul 7 08:55:10 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Klug X-Patchwork-Id: 23756 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 95D23C3237 for ; Mon, 7 Jul 2025 08:55:57 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id BA1A268EAB; Mon, 7 Jul 2025 10:55:56 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="vZHbVaBF"; 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 91A3B68E7F for ; Mon, 7 Jul 2025 10:55:54 +0200 (CEST) Received: from ideasonboard.com (unknown [IPv6:2a00:6020:448c:6c00:c79f:85df:e7f5:4c31]) by perceval.ideasonboard.com (Postfix) with UTF8SMTPSA id 01FA4190D; Mon, 7 Jul 2025 10:55:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1751878528; bh=ls6nwpzwxajKJAT6TragKy3J0LKJ541owh/REBLPmLQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vZHbVaBFmwYvLf/TJilNtwgrToMulc6bDwh2o6WqE2FdH0gUopwzFz7PRfPY05Q9G jfj0wQsAPieqd9P1YVH2JkJVdabDGj632GCA4dTc82zu/w+aPY9T91QTGt2Yfj9gnD eSN6p26jCMOZOEAbH7bGa7GJPi7ywLPSpvXwC2+k= From: Stefan Klug To: libcamera-devel@lists.libcamera.org Cc: Stefan Klug Subject: [PATCH v3 7/9] pipeline: v4l2_subdevice: Add color space to format string representation Date: Mon, 7 Jul 2025 10:55:10 +0200 Message-ID: <20250707085520.39777-8-stefan.klug@ideasonboard.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250707085520.39777-1-stefan.klug@ideasonboard.com> References: <20250707085520.39777-1-stefan.klug@ideasonboard.com> 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" Add the color space to the string representation of V4L2SubdeviceFormat that is returned by toString() and operator<<(). Signed-off-by: Stefan Klug Reviewed-by: Kieran Bingham Reviewed-by: Isaac Scott --- Changes in v3: - Moved color space output to V4L2SubdeviceFormat - Dropped tags, as the patch changed a bit more Changes in v2: - Collected tag --- src/libcamera/v4l2_subdevice.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libcamera/v4l2_subdevice.cpp b/src/libcamera/v4l2_subdevice.cpp index 33279654db8c..ce6b0d38cbf1 100644 --- a/src/libcamera/v4l2_subdevice.cpp +++ b/src/libcamera/v4l2_subdevice.cpp @@ -949,6 +949,8 @@ std::ostream &operator<<(std::ostream &out, const V4L2SubdeviceFormat &f) else out << it->second.name; + out << "/" << ColorSpace::toString(f.colorSpace); + return out; }