diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2020-10-03 13:21:50 +0200 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2020-10-07 16:09:20 +0200 |
commit | b84e35dc97059716c7e90f73ce1df2709c5a7f6e (patch) | |
tree | f72e2644b64318dea44440f388320cce33a1c35d /test/meson.build | |
parent | 6c8837da5e8f9ba31aed338f8f6bbe578ddd638a (diff) |
android: camera_stream: Create buffer pool
Add a FrameBufferAllocator class member to the CameraStream class.
The allocator is constructed for CameraStream instances that needs
internal allocation and automatically deleted.
Allocate FrameBuffers using the allocator_ class member in the
CameraStream class at CameraStream::configure() time and add two
methods to the CameraStream class to get and put FrameBuffer pointers
from the pool of allocated buffers. As buffer allocation can take place
only after the Camera has been configured, move the CameraStream
configuration loop in the CameraDevice class after camera_->configure()
call.
The newly created pool will be used to provide buffers to CameraStream
that need to provide memory to libcamera where to deliver frames.
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'test/meson.build')
0 files changed, 0 insertions, 0 deletions