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.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h
index 59bdf217..e38c0e7e 100644
--- a/include/libcamera/stream.h
+++ b/include/libcamera/stream.h
@@ -16,14 +16,26 @@
namespace libcamera {
class Camera;
+class Stream;
struct StreamConfiguration {
+ StreamConfiguration()
+ : stream_(nullptr)
+ {
+ }
+
unsigned int pixelFormat;
Size size;
unsigned int bufferCount;
+ Stream *stream() const { return stream_; }
+ void setStream(Stream *stream) { stream_ = stream; }
+
std::string toString() const;
+
+private:
+ Stream *stream_;
};
enum StreamRole {