summaryrefslogtreecommitdiff
path: root/src/qcam/main_window.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-23 01:25:20 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-24 10:34:02 +0200
commit275fd5bd33107a10b1e47a0d36d834b390831af0 (patch)
tree3fff6cc018c1cdc2068f6465cb422b755e2b0a60 /src/qcam/main_window.h
parent494da4467ddf091d457863cd363067979552d67e (diff)
qcam: viewfinder: Add MappedBuffer to store memory mapping information
The new MappedBuffer structure replaces the std::pair<> used in the mapped buffers map, and allows passing data to the ViewFinder::display() function in a more structured way. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/qcam/main_window.h')
-rw-r--r--src/qcam/main_window.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qcam/main_window.h b/src/qcam/main_window.h
index c662a2ef..71206bc9 100644
--- a/src/qcam/main_window.h
+++ b/src/qcam/main_window.h
@@ -24,11 +24,11 @@
#include <libcamera/stream.h>
#include "../cam/options.h"
+#include "viewfinder.h"
using namespace libcamera;
class QAction;
-class ViewFinder;
enum {
OptCamera = 'c',
@@ -89,7 +89,7 @@ private:
FrameBufferAllocator *allocator_;
std::unique_ptr<CameraConfiguration> config_;
- std::map<int, std::pair<void *, unsigned int>> mappedBuffers_;
+ std::map<FrameBuffer *, MappedBuffer> mappedBuffers_;
/* Capture state, buffers queue and statistics */
bool isCapturing_;