14#include <libcamera/base/class.h>
31 bool allocated()
const {
return !buffers_.empty(); }
32 const std::vector<std::unique_ptr<FrameBuffer>> &
buffers(
Stream *stream)
const;
37 std::shared_ptr<Camera> camera_;
38 std::map<Stream *, std::vector<std::unique_ptr<FrameBuffer>>> buffers_;
FrameBuffer allocator for applications.
Definition framebuffer_allocator.h:23
int free(Stream *stream)
Free buffers previously allocated for a stream.
Definition framebuffer_allocator.cpp:119
int allocate(Stream *stream)
Allocate buffers for a configured stream.
Definition framebuffer_allocator.cpp:86
const std::vector< std::unique_ptr< FrameBuffer > > & buffers(Stream *stream) const
Retrieve the buffers allocated for a stream.
Definition framebuffer_allocator.cpp:148
bool allocated() const
Check if the allocator has allocated buffers for any stream.
Definition framebuffer_allocator.h:31
Video stream for a camera.
Definition stream.h:76
Top-level libcamera namespace.
Definition bound_method.h:15