diff options
Diffstat (limited to 'src/cam/buffer_writer.h')
-rw-r--r-- | src/cam/buffer_writer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cam/buffer_writer.h b/src/cam/buffer_writer.h index 5917a7df..8c9b2436 100644 --- a/src/cam/buffer_writer.h +++ b/src/cam/buffer_writer.h @@ -7,6 +7,7 @@ #ifndef __LIBCAMERA_BUFFER_WRITER_H__ #define __LIBCAMERA_BUFFER_WRITER_H__ +#include <map> #include <string> #include <libcamera/buffer.h> @@ -15,12 +16,16 @@ class BufferWriter { public: BufferWriter(const std::string &pattern = "frame-#.bin"); + ~BufferWriter(); + + void mapBuffer(libcamera::FrameBuffer *buffer); int write(libcamera::FrameBuffer *buffer, const std::string &streamName); private: std::string pattern_; + std::map<int, std::pair<void *, unsigned int>> mappedBuffers_; }; #endif /* __LIBCAMERA_BUFFER_WRITER_H__ */ |