1
1
// hyperion-v4l2 includes
2
2
#include " ImageHandler.h"
3
3
4
- ImageHandler::ImageHandler (const std::string &address, int priority, double signalThreshold, bool skipProtoReply) :
5
- _priority(priority),
6
- _connection(address),
7
- _signalThreshold(signalThreshold),
8
- _signalProcessor(100 , 50 , 0 , uint8_t (std::min(255 , std::max(0 , int (255 *signalThreshold)))))
4
+ ImageHandler::ImageHandler (const std::string & address, int priority, double signalThreshold, bool skipProtoReply) :
5
+ _priority(priority),
6
+ _connection(address),
7
+ _signalThreshold(signalThreshold),
8
+ _signalProcessor(100 , 50 , 0 , uint8_t (std::min(255 , std::max(0 , int (255 *signalThreshold)))))
9
9
{
10
10
_connection.setSkipReply (skipProtoReply);
11
11
}
12
12
13
- void ImageHandler::receiveImage (const Image<ColorRgb> &image)
13
+ void ImageHandler::receiveImage (const Image<ColorRgb> & image)
14
14
{
15
15
// check if we should do signal detection
16
16
if (_signalThreshold < 0 )
17
17
{
18
- _connection.setImage (image, _priority, 200 );
18
+ _connection.setImage (image, _priority, 1000 );
19
19
}
20
20
else
21
21
{
@@ -28,7 +28,7 @@ void ImageHandler::receiveImage(const Image<ColorRgb> &image)
28
28
// send the image to Hyperion if we have a signal
29
29
if (!_signalProcessor.getCurrentBorder ().unknown )
30
30
{
31
- _connection.setImage (image, _priority, 200 );
31
+ _connection.setImage (image, _priority, 1000 );
32
32
}
33
33
}
34
34
}
0 commit comments