[libcamera-devel] [PATCH v3 25/30] py: MappedFrameBuffer: Add 'fb' property

Laurent Pinchart laurent.pinchart at ideasonboard.com
Mon May 30 11:23:17 CEST 2022


Hi Tomi,

Thank you for the patch.

On Fri, May 27, 2022 at 05:44:42PM +0300, Tomi Valkeinen wrote:
> Add 'fb' property to expose the underlying FrameBuffer.
> 
> Signed-off-by: Tomi Valkeinen <tomi.valkeinen at ideasonboard.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart 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

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list