summaryrefslogtreecommitdiff
path: root/src/cam/file_sink.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cam/file_sink.h')
-rw-r--r--src/cam/file_sink.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cam/file_sink.h b/src/cam/file_sink.h
index c12325d9..335be93b 100644
--- a/src/cam/file_sink.h
+++ b/src/cam/file_sink.h
@@ -8,12 +8,15 @@
#define __CAM_FILE_SINK_H__
#include <map>
+#include <memory>
#include <string>
#include <libcamera/stream.h>
#include "frame_sink.h"
+class Image;
+
class FileSink : public FrameSink
{
public:
@@ -32,8 +35,7 @@ private:
std::map<const libcamera::Stream *, std::string> streamNames_;
std::string pattern_;
- std::map<int, std::pair<void *, unsigned int>> mappedBuffers_;
- std::map<const libcamera::FrameBuffer::Plane *, uint8_t *> planeData_;
+ std::map<libcamera::FrameBuffer *, std::unique_ptr<Image>> mappedBuffers_;
};
#endif /* __CAM_FILE_SINK_H__ */