summaryrefslogtreecommitdiff
path: root/src/libcamera/include/v4l2_device.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcamera/include/v4l2_device.h')
-rw-r--r--src/libcamera/include/v4l2_device.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libcamera/include/v4l2_device.h b/src/libcamera/include/v4l2_device.h
index 988e646c..983b9d90 100644
--- a/src/libcamera/include/v4l2_device.h
+++ b/src/libcamera/include/v4l2_device.h
@@ -15,6 +15,8 @@
#include <libcamera/signal.h>
+#include "log.h"
+
namespace libcamera {
class Buffer;
@@ -76,7 +78,7 @@ public:
unsigned int planesCount;
};
-class V4L2Device
+class V4L2Device : protected Loggable
{
public:
explicit V4L2Device(const std::string &deviceNode);
@@ -106,6 +108,9 @@ public:
int streamOn();
int streamOff();
+protected:
+ std::string logPrefix() const;
+
private:
int getFormatSingleplane(V4L2DeviceFormat *format);
int setFormatSingleplane(V4L2DeviceFormat *format);