summaryrefslogtreecommitdiff
path: root/include/libcamera/stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libcamera/stream.h')
-rw-r--r--include/libcamera/stream.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h
index f0ae7e62..4e94187d 100644
--- a/include/libcamera/stream.h
+++ b/include/libcamera/stream.h
@@ -9,6 +9,7 @@
#include <map>
#include <memory>
+#include <ostream>
#include <string>
#include <vector>
@@ -61,14 +62,14 @@ private:
StreamFormats formats_;
};
-enum StreamRole {
+enum class StreamRole {
Raw,
StillCapture,
VideoRecording,
Viewfinder,
};
-using StreamRoles = std::vector<StreamRole>;
+std::ostream &operator<<(std::ostream &out, StreamRole role);
class Stream
{