summaryrefslogtreecommitdiff
path: root/src/qcam/viewfinder_qt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcam/viewfinder_qt.cpp')
-rw-r--r--src/qcam/viewfinder_qt.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qcam/viewfinder_qt.cpp b/src/qcam/viewfinder_qt.cpp
index e436714c..efa1d412 100644
--- a/src/qcam/viewfinder_qt.cpp
+++ b/src/qcam/viewfinder_qt.cpp
@@ -78,14 +78,15 @@ int ViewFinderQt::setFormat(const libcamera::PixelFormat &format,
return 0;
}
-void ViewFinderQt::render(libcamera::FrameBuffer *buffer, MappedBuffer *map)
+void ViewFinderQt::render(libcamera::FrameBuffer *buffer,
+ libcamera::Span<uint8_t> mem)
{
if (buffer->planes().size() != 1) {
qWarning() << "Multi-planar buffers are not supported";
return;
}
- unsigned char *memory = static_cast<unsigned char *>(map->memory);
+ unsigned char *memory = mem.data();
size_t size = buffer->metadata().planes[0].bytesused;
{