From 88456ab55adb5593826afc073448aab50665631c Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Thu, 5 Dec 2024 11:00:29 +0100 Subject: libcamera: stream: Add operator<<(StreamConfiguration) The StreamConfiguration class only implements toString() but doesn't offer an overload of operator<<() which is more convenient to use. Add an overload for operator<<(StreamConfiguration) and re-implement StreamConfiguration::toString() on top of it. Signed-off-by: Jacopo Mondi Reviewed-by: Kieran Bingham Reviewed-by: Stefan Klug Reviewed-by: Laurent Pinchart --- include/libcamera/stream.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h index 071b7169..b5e8f0a9 100644 --- a/include/libcamera/stream.h +++ b/include/libcamera/stream.h @@ -61,6 +61,8 @@ private: StreamFormats formats_; }; +std::ostream &operator<<(std::ostream &out, const StreamConfiguration &cfg); + enum class StreamRole { Raw, StillCapture, -- cgit v1.2.1