From f8f6bc657d37e67c9f90762c8862a11e498925cc Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 6 Sep 2021 00:41:54 +0300 Subject: cam: file_sink: Use Image class to access pixel data Replace the manual implementation of frame buffer mapping with the Image class to improve code sharing. Signed-off-by: Laurent Pinchart Reviewed-by: Jean-Michel Hautbois Reviewed-by: Hirokazu Honda Reviewed-by: Kieran Bingham --- src/cam/file_sink.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/cam/file_sink.h') 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 +#include #include #include #include "frame_sink.h" +class Image; + class FileSink : public FrameSink { public: @@ -32,8 +35,7 @@ private: std::map streamNames_; std::string pattern_; - std::map> mappedBuffers_; - std::map planeData_; + std::map> mappedBuffers_; }; #endif /* __CAM_FILE_SINK_H__ */ -- cgit v1.2.1