[libcamera-devel] [PATCH v2 10/19] py: examples: Add simple-capture.py

Tomi Valkeinen tomi.valkeinen at ideasonboard.com
Fri May 27 08:16:01 CEST 2022


On 27/05/2022 09:14, Laurent Pinchart wrote:

>>>> +        with libcamera.utils.MappedFrameBuffer(fb) as mfb:
>>>> +            crcs = [binascii.crc32(p) for p in mfb.planes]
>>>
>>> Mapping buffers is expensive, this should be done before starting the
>>> camera.
>>
>> Hmm... How do we invalidate the caches if we keep the buffers mapped?
> 
> QBUF/DQBUF are supposed to handle that.

Ah, ok. Isn't that horribly inefficient if you never actually access the 
buffer with CPU?

  Tomi


More information about the libcamera-devel mailing list