summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-08-23 20:34:40 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2025-04-29 17:32:19 +0300
commit9b50d3c23dea1bc2882cd3e6566a3d4cb9f7296f (patch)
treeb9732fd9296f73ad8457d20cb8a6f0d624e76f65
parent8751369c5b43b4778c8ccf9822acf7fc92599bc0 (diff)
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 <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Milan Zamazal <mzamazal@redhat.com>
-rw-r--r--src/libcamera/stream.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcamera/stream.cpp b/src/libcamera/stream.cpp
index 978d7275..f091487c 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;
}