[libcamera-devel] [PATCH v3 25/30] py: MappedFrameBuffer: Add 'fb' property
Tomi Valkeinen
tomi.valkeinen at ideasonboard.com
Fri May 27 16:44:42 CEST 2022
Add 'fb' property to expose the underlying FrameBuffer.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen at ideasonboard.com>
---
src/py/libcamera/utils/MappedFrameBuffer.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/py/libcamera/utils/MappedFrameBuffer.py b/src/py/libcamera/utils/MappedFrameBuffer.py
index 4b20f904..c25371c2 100644
--- a/src/py/libcamera/utils/MappedFrameBuffer.py
+++ b/src/py/libcamera/utils/MappedFrameBuffer.py
@@ -99,3 +99,7 @@ class MappedFrameBuffer:
raise RuntimeError('MappedFrameBuffer not mmapped')
return self.__planes
+
+ @property
+ def fb(self):
+ return self.__fb
--
2.34.1
More information about the libcamera-devel
mailing list