[v1,1/5] pipeline: rpi: vc4: Memory map the Unicam image buffers
diff mbox series

Message ID 20261203130113.47873-2-david.plowman@raspberrypi.com
State New
Headers show
Series
  • Extra pipeline processing "stages" for Raspberry Pi
Related show

Commit Message

David Plowman Dec. 2, 2026, 4:13 p.m. UTC
Mmap the raw Bayer buffers on the VC4 platform, as we are already
doing on PiSP devices. This means we can add common code in future to
inspect or process those pixel values, without worrying about the
platform.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
---
 src/libcamera/pipeline/rpi/vc4/vc4.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/src/libcamera/pipeline/rpi/vc4/vc4.cpp b/src/libcamera/pipeline/rpi/vc4/vc4.cpp
index 200e3b58..8b8eb166 100644
--- a/src/libcamera/pipeline/rpi/vc4/vc4.cpp
+++ b/src/libcamera/pipeline/rpi/vc4/vc4.cpp
@@ -325,7 +325,8 @@  int PipelineHandlerVc4::platformRegister(std::unique_ptr<RPi::CameraData> &camer
 		return -ENOENT;
 
 	/* Locate and open the unicam video streams. */
-	data->unicam_[Unicam::Image] = RPi::Stream("Unicam Image", unicamImage);
+	data->unicam_[Unicam::Image] = RPi::Stream("Unicam Image", unicamImage,
+						   StreamFlag::RequiresMmap);
 
 	/* An embedded data node will not be present if the sensor does not support it. */
 	MediaEntity *unicamEmbedded = unicam->getEntityByName("unicam-embedded");