blob: 372ee4aff69b1b08159af15980185f68222a6130 (
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
* Copyright (C) 2020, Google Inc.
*
* v4l2_camera_file.h - V4L2 compatibility camera file information
*/
#include "v4l2_camera_file.h"
#include <linux/videodev2.h>
#include "v4l2_camera_proxy.h"
using namespace libcamera;
V4L2CameraFile::V4L2CameraFile(int efd, bool nonBlocking, V4L2CameraProxy *proxy)
: proxy_(proxy), nonBlocking_(nonBlocking), efd_(efd),
priority_(V4L2_PRIORITY_DEFAULT)
{
proxy_->open(this);
}
V4L2CameraFile::~V4L2CameraFile()
{
proxy_->close(this);
}
|