From 4ff18e95063bbb70f6e0971774fcd2a1b0ad2b58 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 15 Mar 2020 01:27:43 +0200 Subject: libcamera: framebuffer_allocator: Lift camera restrictions on allocator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Camera class currently requires the allocator to have no allocated buffer before the camera is reconfigured, and the allocator to be destroyed before the camera is released. There's no basis for these restrictions anymore, remove them. Signed-off-by: Laurent Pinchart Reviewed-by: Niklas Söderlund --- include/libcamera/framebuffer_allocator.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'include/libcamera/framebuffer_allocator.h') diff --git a/include/libcamera/framebuffer_allocator.h b/include/libcamera/framebuffer_allocator.h index 42812253..78f13539 100644 --- a/include/libcamera/framebuffer_allocator.h +++ b/include/libcamera/framebuffer_allocator.h @@ -20,8 +20,7 @@ class Stream; class FrameBufferAllocator { public: - static FrameBufferAllocator *create(std::shared_ptr camera); - + FrameBufferAllocator(std::shared_ptr camera); FrameBufferAllocator(const Camera &) = delete; FrameBufferAllocator &operator=(const Camera &) = delete; @@ -34,8 +33,6 @@ public: const std::vector> &buffers(Stream *stream) const; private: - FrameBufferAllocator(std::shared_ptr camera); - std::shared_ptr camera_; std::map>> buffers_; }; -- cgit v1.2.1