diff options
author | Jacopo Mondi <jacopo.mondi@ideasonboard.com> | 2024-12-05 11:00:29 +0100 |
---|---|---|
committer | Jacopo Mondi <jacopo.mondi@ideasonboard.com> | 2024-12-11 15:39:05 +0100 |
commit | 88456ab55adb5593826afc073448aab50665631c (patch) | |
tree | aa09504611b00e8e097cab210c87272d67a36649 /include | |
parent | 229667606e4d30e03d530341baf1ee528e7f2e95 (diff) |
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 <jacopo.mondi@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libcamera/stream.h | 2 |
1 files changed, 2 insertions, 0 deletions
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, |