/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2020, Google Inc. * * buffer_source.h - libcamera camera test helper to create FrameBuffers */ #ifndef __LIBCAMERA_BUFFER_SOURCE_TEST_H__ #define __LIBCAMERA_BUFFER_SOURCE_TEST_H__ #include #include "libcamera/internal/media_device.h" #include "libcamera/internal/v4l2_videodevice.h" using namespace libcamera; class BufferSource { public: BufferSource(); ~BufferSource(); int allocate(const StreamConfiguration &config); const std::vector> &buffers(); private: std::shared_ptr media_; std::vector> buffers_; }; #endif /* __LIBCAMERA_BUFFER_SOURCE_TEST_H__ */ mera/jmondi/libcamera.git' href='/libcamera/jmondi/libcamera.git/'>libcamera/jmondi/libcamera.git
Jacopo Mondi's clone of libcameragit repository hosting on libcamera.org
summaryrefslogtreecommitdiff
blob: 074d7c1a4a536acc894fab84bd8b2d437dcee398 (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-bar-chart"><line x1="12" y1="20" x2="12" y2="10"></line><line x1="18" y1="20" x2="18" y2="4"></line><line x1="6" y1="20" x2="6" y2="16"></line></svg>