@@ -7,10 +7,18 @@
#ifndef __LIBCAMERA_STREAM_H__
#define __LIBCAMERA_STREAM_H__
+#include <libcamera/buffer.h>
+
namespace libcamera {
class Stream final
{
+public:
+ Stream();
+ BufferPool &bufferPool() { return bufferPool_; }
+
+private:
+ BufferPool bufferPool_;
};
struct StreamConfiguration {
@@ -47,6 +47,24 @@ namespace libcamera {
* optimal stream for the task.
*/
+/**
+ * \brief Construct a stream with default parameters
+ */
+Stream::Stream()
+{
+}
+
+/**
+ * \fn Stream::bufferPool()
+ * \brief Retrieve the buffer pool for the stream
+ *
+ * The buffer pool handles the buffers used to capture frames at the output of
+ * the stream. It is initially created empty and shall be populated with
+ * buffers before being used.
+ *
+ * \return A reference to the buffer pool
+ */
+
/**
* \struct StreamConfiguration
* \brief Configuration parameters for a stream