summaryrefslogtreecommitdiff
path: root/src/cam/camera_session.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-07-05 06:59:21 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-07-22 17:13:40 +0300
commit453583e189e01bbef321b9a50c0c435cc05fef63 (patch)
tree1aed1e3b07e9bb2e1273e3e42c7ef9d6df2394b0 /src/cam/camera_session.h
parent94d828d880492617c936434a5ca93ee83366a31b (diff)
cam: camera_session: Access event loop through global instance
Don't pass the event loop to the CameraSession constructor, as passing this global object explicitly isn't a design that can scale. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/cam/camera_session.h')
-rw-r--r--src/cam/camera_session.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cam/camera_session.h b/src/cam/camera_session.h
index ef8a11c3..270ba3e9 100644
--- a/src/cam/camera_session.h
+++ b/src/cam/camera_session.h
@@ -18,17 +18,16 @@
#include <libcamera/stream.h>
#include "buffer_writer.h"
-#include "event_loop.h"
#include "options.h"
class CameraSession
{
public:
CameraSession(std::shared_ptr<libcamera::Camera> camera,
- libcamera::CameraConfiguration *config,
- EventLoop *loop);
+ libcamera::CameraConfiguration *config);
int run(const OptionsParser::Options &options);
+
private:
int capture(libcamera::FrameBufferAllocator *allocator);
@@ -43,7 +42,6 @@ private:
BufferWriter *writer_;
uint64_t last_;
- EventLoop *loop_;
unsigned int queueCount_;
unsigned int captureCount_;
unsigned int captureLimit_;