mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Fix v4l2 signal threshold comparison
Former-commit-id: 698a22af752fc42e778e97587938ed6542653bd9
This commit is contained in:
parent
932b3d7f5a
commit
c3ba03e0ee
@ -1 +1 @@
|
||||
0172259694aa374d6ae32dcbd122a62ce5bd3b05
|
||||
90bef144811aa3c3db8620622b57e76f699f0121
|
@ -55,3 +55,9 @@ inline bool operator<(const ColorRgb & lhs, const ColorRgb & rhs)
|
||||
{
|
||||
return (lhs.red < rhs.red) && (lhs.green < rhs.green) && (lhs.blue < rhs.blue);
|
||||
}
|
||||
|
||||
/// Compare operator to check if a color is 'smaller' than or 'equal' to another color
|
||||
inline bool operator<=(const ColorRgb & lhs, const ColorRgb & rhs)
|
||||
{
|
||||
return (lhs.red <= rhs.red) && (lhs.green <= rhs.green) && (lhs.blue <= rhs.blue);
|
||||
}
|
||||
|
@ -695,7 +695,7 @@ void V4L2Grabber::process_image(const uint8_t * data)
|
||||
|
||||
ColorRgb & rgb = image(xDest, yDest);
|
||||
yuv2rgb(y, u, v, rgb.red, rgb.green, rgb.blue);
|
||||
noSignal &= rgb < _noSignalThresholdColor;
|
||||
noSignal &= rgb <= _noSignalThresholdColor;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user