@@ -22,6 +22,15 @@ namespace libcamera {
class Camera;
class Stream;
+enum StreamRole {
+ Raw,
+ StillCapture,
+ VideoRecording,
+ Viewfinder,
+};
+
+using StreamRoles = std::vector<StreamRole>;
+
class StreamFormats
{
public:
@@ -50,6 +59,8 @@ struct StreamConfiguration {
std::optional<ColorSpace> colorSpace;
+ StreamRole streamRole;
+
Stream *stream() const { return stream_; }
void setStream(Stream *stream) { stream_ = stream; }
const StreamFormats &formats() const { return formats_; }
@@ -61,15 +72,6 @@ private:
StreamFormats formats_;
};
-enum StreamRole {
- Raw,
- StillCapture,
- VideoRecording,
- Viewfinder,
-};
-
-using StreamRoles = std::vector<StreamRole>;
-
class Stream
{
public: