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_;
const std::vector< std::unique_ptr< FrameBuffer > > & buffers(Stream *stream) const
Retrieve the buffers allocated for a stream.
Definition: framebuffer_allocator.cpp:148
Utilities to help constructing class interfaces.
FrameBuffer allocator for applications.
Definition: framebuffer_allocator.h:22
FrameBufferAllocator(std::shared_ptr< Camera > camera)
Construct a FrameBufferAllocator serving a camera.
Definition: framebuffer_allocator.cpp:61
Video stream for a camera.
Definition: stream.h:73
Top-level libcamera namespace.
Definition: backtrace.h:17
bool allocated() const
Check if the allocator has allocated buffers for any stream.
Definition: framebuffer_allocator.h:31
#define LIBCAMERA_DISABLE_COPY(klass)
Disable copy construction and assignment of the klass.
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