summaryrefslogtreecommitdiff
path: root/src/libcamera/include/v4l2_videodevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcamera/include/v4l2_videodevice.h')
-rw-r--r--src/libcamera/include/v4l2_videodevice.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/libcamera/include/v4l2_videodevice.h b/src/libcamera/include/v4l2_videodevice.h
index 89565880..734b34f1 100644
--- a/src/libcamera/include/v4l2_videodevice.h
+++ b/src/libcamera/include/v4l2_videodevice.h
@@ -18,6 +18,7 @@
#include "formats.h"
#include "log.h"
+#include "v4l2_device.h"
namespace libcamera {
@@ -112,7 +113,7 @@ public:
const std::string toString() const;
};
-class V4L2VideoDevice : protected Loggable
+class V4L2VideoDevice : public V4L2Device
{
public:
explicit V4L2VideoDevice(const std::string &deviceNode);
@@ -123,13 +124,11 @@ public:
V4L2VideoDevice &operator=(const V4L2VideoDevice &) = delete;
int open();
- bool isOpen() const;
void close();
const char *driverName() const { return caps_.driver(); }
const char *deviceName() const { return caps_.card(); }
const char *busName() const { return caps_.bus_info(); }
- const std::string &deviceNode() const { return deviceNode_; }
int getFormat(V4L2DeviceFormat *format);
int setFormat(V4L2DeviceFormat *format);
@@ -171,8 +170,6 @@ private:
Buffer *dequeueBuffer();
void bufferAvailable(EventNotifier *notifier);
- std::string deviceNode_;
- int fd_;
V4L2Capability caps_;
enum v4l2_buf_type bufferType_;