mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
47 lines
1.5 KiB
C++
47 lines
1.5 KiB
C++
#pragma once
|
|
|
|
#include <hyperion/GrabberWrapper.h>
|
|
#include <grabber/MFGrabber.h>
|
|
|
|
class MFWrapper : public GrabberWrapper
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MFWrapper(const QString & device, const unsigned grabWidth, const unsigned grabHeight, const unsigned fps, const unsigned input, int pixelDecimation, QString flipMode);
|
|
~MFWrapper() override;
|
|
|
|
bool getSignalDetectionEnable() const;
|
|
bool getCecDetectionEnable() const;
|
|
|
|
public slots:
|
|
bool start() override;
|
|
void stop() override;
|
|
|
|
void setSignalThreshold(double redSignalThreshold, double greenSignalThreshold, double blueSignalThreshold, int noSignalCounterThreshold);
|
|
void setCropping(unsigned cropLeft, unsigned cropRight, unsigned cropTop, unsigned cropBottom) override;
|
|
void setSignalDetectionOffset(double verticalMin, double horizontalMin, double verticalMax, double horizontalMax);
|
|
void setSignalDetectionEnable(bool enable);
|
|
void setCecDetectionEnable(bool enable);
|
|
void setDeviceVideoStandard(const QString& device, VideoStandard videoStandard);
|
|
void handleSettingsUpdate(settings::type type, const QJsonDocument& config) override;
|
|
|
|
///
|
|
/// @brief set software decimation (v4l2)
|
|
///
|
|
void setFpsSoftwareDecimation(int decimation);
|
|
|
|
void setEncoding(QString enc);
|
|
|
|
void setBrightnessContrastSaturationHue(int brightness, int contrast, int saturation, int hue);
|
|
|
|
private slots:
|
|
void newFrame(const Image<ColorRgb> & image);
|
|
|
|
void action() override;
|
|
|
|
private:
|
|
/// The Media Foundation grabber
|
|
MFGrabber _grabber;
|
|
};
|