mirror of
				https://github.com/hyperion-project/hyperion.ng.git
				synced 2025-03-01 10:33:28 +00:00 
			
		
		
		
	* fix: Resolve the enable state for v4l and screen capture * Use instance index instead of pointer * Second try * fix(QtGrabber): QScreen ownership * Remove v4l2 compState listener
		
			
				
	
	
		
			41 lines
		
	
	
		
			992 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			992 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#pragma once
 | 
						|
 | 
						|
#include <hyperion/GrabberWrapper.h>
 | 
						|
#include <grabber/V4L2Grabber.h>
 | 
						|
 | 
						|
class V4L2Wrapper : public GrabberWrapper
 | 
						|
{
 | 
						|
	Q_OBJECT
 | 
						|
 | 
						|
public:
 | 
						|
	V4L2Wrapper(const QString & device,
 | 
						|
			VideoStandard videoStandard,
 | 
						|
			PixelFormat pixelFormat,
 | 
						|
			int pixelDecimation );
 | 
						|
	virtual ~V4L2Wrapper() {};
 | 
						|
 | 
						|
	bool getSignalDetectionEnable();
 | 
						|
 | 
						|
public slots:
 | 
						|
	bool start();
 | 
						|
	void stop();
 | 
						|
 | 
						|
	void setSignalThreshold(double redSignalThreshold, double greenSignalThreshold, double blueSignalThreshold);
 | 
						|
	void setCropping(int cropLeft, int cropRight, int cropTop, int cropBottom);
 | 
						|
	void setSignalDetectionOffset(double verticalMin, double horizontalMin, double verticalMax, double horizontalMax);
 | 
						|
	void setSignalDetectionEnable(bool enable);
 | 
						|
	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;
 | 
						|
};
 |