/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2019, Google Inc. * * buffer_writer.h - Buffer writer */ #ifndef __CAM_BUFFER_WRITER_H__ #define __CAM_BUFFER_WRITER_H__ #include #include #include class BufferWriter { public: BufferWriter(const std::string &pattern = "frame-#.bin"); ~BufferWriter(); void mapBuffer(libcamera::FrameBuffer *buffer); int write(libcamera::FrameBuffer *buffer, const std::string &streamName); private: std::string pattern_; std::map> mappedBuffers_; }; #endif /* __CAM_BUFFER_WRITER_H__ */ 'libcamera/vivid.git' href='/libcamera/vivid.git/'>libcamera/vivid.git
libcamera pipeline handler for VIVIDgit repository hosting on libcamera.org
summaryrefslogtreecommitdiff
blob: bcedb8b5cdd1d7115499be1b371d4bb931b5eb35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22