summaryrefslogtreecommitdiff
path: root/src/cam/file_sink.h
diff options
context:
space:
mode:
authorHirokazu Honda <hiroh@chromium.org>2021-08-26 20:25:33 +0900
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-08-30 18:08:02 +0300
commit470513b6a7734ced9beea2e1d673a37ba0f82b35 (patch)
treeb564fcd793176eac3c7b797710037a94f01fcaa0 /src/cam/file_sink.h
parent8708904fad6f4ff94a30e2b3b537012b7c637c4d (diff)
cam: file_sink: Use offset in mapping FrameBuffer
This fixes the way of mapping FrameBuffer in FrameSink by using offset. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/cam/file_sink.h')
-rw-r--r--src/cam/file_sink.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cam/file_sink.h b/src/cam/file_sink.h
index c3eb230a..c12325d9 100644
--- a/src/cam/file_sink.h
+++ b/src/cam/file_sink.h
@@ -33,6 +33,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_;
};
#endif /* __CAM_FILE_SINK_H__ */