/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * Copyright (C) 2019, Google Inc. * * framebuffer_allocator.h - FrameBuffer allocator */ #pragma once #include #include #include #include namespace libcamera { class Camera; class FrameBuffer; class Stream; class FrameBufferAllocator { public: FrameBufferAllocator(std::shared_ptr camera); ~FrameBufferAllocator(); int allocate(Stream *stream); int free(Stream *stream); bool allocated() const { return !buffers_.empty(); } const std::vector> &buffers(Stream *stream) const; private: LIBCAMERA_DISABLE_COPY(FrameBufferAllocator) std::shared_ptr camera_; std::map>> buffers_; }; } /* namespace libcamera */ a.git
Jacopo Mondi's clone of libcameragit repository hosting on libcamera.org
summaryrefslogtreecommitdiff
blob: a1099da335bfbbf742b086bf2ce62bf0fafce416 (plain)
1
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-watch"><circle cx="12" cy="12" r="7"></circle><polyline points="12 9 12 12 13.5 13.5"></polyline><path d="M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"></path></svg>