From 9b50d3c23dea1bc2882cd3e6566a3d4cb9f7296f Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 23 Aug 2022 20:34:40 +0300 Subject: [PATCH] libcamera: stream: Add color space to configuration string representation Extend the string representation of StreamConfiguration, as returned by the toString() and operator<<() functions, with color space information. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham Reviewed-by: Milan Zamazal --- src/libcamera/stream.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libcamera/stream.cpp b/src/libcamera/stream.cpp index 978d72752..f091487c9 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; }