[libcamera-devel,v4,09/16] py: MappedFrameBuffer: Add 'fb' property
diff mbox series

Message ID 20220530142722.57618-10-tomi.valkeinen@ideasonboard.com
State Accepted
Headers show
Series
  • More misc Python patches
Related show

Commit Message

Tomi Valkeinen May 30, 2022, 2:27 p.m. UTC
Add 'fb' property to expose the underlying FrameBuffer.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 src/py/libcamera/utils/MappedFrameBuffer.py | 4 ++++
 1 file changed, 4 insertions(+)

Patch
diff mbox series

diff --git a/src/py/libcamera/utils/MappedFrameBuffer.py b/src/py/libcamera/utils/MappedFrameBuffer.py
index c300a6d7..329e51fa 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