summaryrefslogtreecommitdiff
path: root/include/libcamera/camera_manager.h
blob: 9d032d71c4c0841a4472cc594b751fa51fddb0e4 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
 * Copyright (C) 2018, Google Inc.
 *
 * camera_manager.h - Camera management
 */
#ifndef __LIBCAMERA_CAMERA_MANAGER_H__
#define __LIBCAMERA_CAMERA_MANAGER_H__

#include <vector>
#include <string>

namespace libcamera {

class Camera;
class DeviceEnumerator;
class PipelineHandler;

class CameraManager
{
public:
	CameraManager();

	int start();
	void stop();

	std::vector<std::string> list() const;
	Camera *get(const std::string &name);
	void put(Camera *camera);

private:
	DeviceEnumerator *enumerator_;
	std::vector<PipelineHandler *> pipes_;
};

} /* namespace libcamera */

#endif /* __LIBCAMERA_CAMERA_MANAGER_H__ */