summaryrefslogtreecommitdiff
path: root/src/qcam/viewfinder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcam/viewfinder.h')
-rw-r--r--src/qcam/viewfinder.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/qcam/viewfinder.h b/src/qcam/viewfinder.h
index 46747c22..42d40f1f 100644
--- a/src/qcam/viewfinder.h
+++ b/src/qcam/viewfinder.h
@@ -11,14 +11,11 @@
#include <QList>
#include <QSize>
+#include <libcamera/base/span.h>
+
#include <libcamera/formats.h>
#include <libcamera/framebuffer.h>
-struct MappedBuffer {
- void *memory;
- size_t size;
-};
-
class ViewFinder
{
public:
@@ -27,7 +24,7 @@ public:
virtual const QList<libcamera::PixelFormat> &nativeFormats() const = 0;
virtual int setFormat(const libcamera::PixelFormat &format, const QSize &size) = 0;
- virtual void render(libcamera::FrameBuffer *buffer, MappedBuffer *map) = 0;
+ virtual void render(libcamera::FrameBuffer *buffer, libcamera::Span<uint8_t> mem) = 0;
virtual void stop() = 0;
virtual QImage getCurrentImage() = 0;