mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Kill "Rainbow lights" when v4l grabber has no signal (#334)
* on v4l screenshot, print out nosignal threshold values * separate fractional parameters for no signal detection * fully implement handling for "rainbow grabber"
This commit is contained in:
@@ -582,6 +582,11 @@ void HyperionDaemon::createGrabberV4L2()
|
||||
grabberConfig["cropRight"].toInt(0),
|
||||
grabberConfig["cropTop"].toInt(0),
|
||||
grabberConfig["cropBottom"].toInt(0));
|
||||
grabber->setSignalDetectionOffset(
|
||||
grabberConfig["signalDetectionHorizontalOffsetMin"].toDouble(0.25),
|
||||
grabberConfig["signalDetectionVerticalOffsetMin"].toDouble(0.25),
|
||||
grabberConfig["signalDetectionHorizontalOffsetMax"].toDouble(0.75),
|
||||
grabberConfig["signalDetectionVerticalOffsetMax"].toDouble(0.75));
|
||||
Debug(_log, "V4L2 grabber created");
|
||||
|
||||
QObject::connect(grabber, SIGNAL(emitImage(int, const Image<ColorRgb>&, const int)), _protoServer, SLOT(sendImageToProtoSlaves(int, const Image<ColorRgb>&, const int)));
|
||||
|
Reference in New Issue
Block a user