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_;
Utilities to help constructing class interfaces.
#define LIBCAMERA_DISABLE_COPY(klass)
Disable copy construction and assignment of the klass.
FrameBuffer allocator for applications.
Definition: framebuffer_allocator.h:23
int free(Stream *stream)
Free buffers previously allocated for a stream.
Definition: framebuffer_allocator.cpp:118
int allocate(Stream *stream)
Allocate buffers for a configured stream.
Definition: framebuffer_allocator.cpp:89
const std::vector< std::unique_ptr< FrameBuffer > > & buffers(Stream *stream) const
Retrieve the buffers allocated for a stream.
Definition: framebuffer_allocator.cpp:149
bool allocated() const
Check if the allocator has allocated buffers for any stream.
Definition: framebuffer_allocator.h:31
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:75
Top-level libcamera namespace.
Definition: backtrace.h:17