summaryrefslogtreecommitdiff
path: root/src/cam/buffer_writer.h
blob: 7bf785d1e83235ff74259c6aa1c6b3f3868df107 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright (C) 2019, Google Inc.
 *
 * buffer_writer.h - Buffer writer
 */
#ifndef __LIBCAMERA_BUFFER_WRITER_H__
#define __LIBCAMERA_BUFFER_WRITER_H__

#include <string>

#include <libcamera/buffer.h>

class BufferWriter
{
public:
	BufferWriter(const std::string &pattern = "frame-#.bin");

	int write(libcamera::Buffer *buffer, const std::string &streamName);

private:
	std::string pattern_;
};

#endif /* __LIBCAMERA_BUFFER_WRITER_H__ */