hyperion.ng/include/grabber/V4L2Wrapper.h

44 lines
1.1 KiB
C
Raw Normal View History

#pragma once
#include <hyperion/GrabberWrapper.h>
#include <grabber/V4L2Grabber.h>
class V4L2Wrapper : public GrabberWrapper
{
Q_OBJECT
public:
V4L2Wrapper(const QString & device,
const unsigned grabWidth,
const unsigned grabHeight,
const unsigned fps,
2020-06-17 20:55:57 +02:00
const unsigned input,
VideoStandard videoStandard,
PixelFormat pixelFormat,
2018-12-27 23:11:32 +01:00
int pixelDecimation );
bool getSignalDetectionEnable();
public slots:
bool start();
void stop();
2018-12-27 23:11:32 +01:00
void setSignalThreshold(double redSignalThreshold, double greenSignalThreshold, double blueSignalThreshold);
void setCropping(unsigned cropLeft, unsigned cropRight, unsigned cropTop, unsigned cropBottom);
void setSignalDetectionOffset(double verticalMin, double horizontalMin, double verticalMax, double horizontalMax);
void setSignalDetectionEnable(bool enable);
2019-02-13 09:09:34 +01:00
void setDeviceVideoStandard(QString device, VideoStandard videoStandard);
signals:
private slots:
void newFrame(const Image<ColorRgb> & image);
void readError(const char* err);
virtual void action();
private:
/// The V4L2 grabber
V4L2Grabber _grabber;
};