hyperion.ng
V4L2Wrapper.h
1 #pragma once
2 
3 #include <hyperion/GrabberWrapper.h>
4 #include <grabber/V4L2Grabber.h>
5 
6 class V4L2Wrapper : public GrabberWrapper
7 {
8  Q_OBJECT
9 
10 public:
11  V4L2Wrapper(const QString & device,
12  VideoStandard videoStandard,
13  PixelFormat pixelFormat,
14  int pixelDecimation );
15  virtual ~V4L2Wrapper() {};
16 
17  bool getSignalDetectionEnable();
18 
19 public slots:
20  bool start();
21  void stop();
22 
23  void setSignalThreshold(double redSignalThreshold, double greenSignalThreshold, double blueSignalThreshold);
24  void setCropping(int cropLeft, int cropRight, int cropTop, int cropBottom);
25  void setSignalDetectionOffset(double verticalMin, double horizontalMin, double verticalMax, double horizontalMax);
26  void setSignalDetectionEnable(bool enable);
27  void setDeviceVideoStandard(QString device, VideoStandard videoStandard);
28 
29 private slots:
30  void newFrame(const Image<ColorRgb> & image);
31  void readError(const char* err);
32 
33  virtual void action();
34 
35 private:
37  V4L2Grabber _grabber;
38 };
Definition: V4L2Wrapper.h:6
This class will be inherted by FramebufferWrapper and others which contains the real capture interfac...
Definition: GrabberWrapper.h:23
Capture class for V4L2 devices.
Definition: V4L2Grabber.h:28