/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * Copyright (C) 2020, Google Inc. * * v4l2_camera_file.h - V4L2 compatibility camera file information */ #pragma once #include #include class V4L2CameraProxy; class V4L2CameraFile { public: V4L2CameraFile(int dirfd, const char *path, int efd, bool nonBlocking, V4L2CameraProxy *proxy); ~V4L2CameraFile(); V4L2CameraProxy *proxy() const { return proxy_; } bool nonBlocking() const { return nonBlocking_; } int efd() const { return efd_; } enum v4l2_priority priority() const { return priority_; } void setPriority(enum v4l2_priority priority) { priority_ = priority; } const std::string &description() const; private: V4L2CameraProxy *proxy_; std::string description_; bool nonBlocking_; int efd_; enum v4l2_priority priority_; }; /a>
Laurent Pinchart's clone of libcameragit repository hosting on libcamera.org
summaryrefslogtreecommitdiff
blob: d0fc136598b6921a1505040817c70d9f5f10e08f (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61