mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
2ccdfeb9e1
- Increases linker performance under Linux builds by using Gold linker, if available - ccache is used if available - removed statistic class (Stats.cpp) from project due to the missing result (sorry @Brindosch) - add LGTM bandges for code analysis overview Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>
31 lines
643 B
C++
31 lines
643 B
C++
#pragma once
|
|
|
|
// Qt includes
|
|
#include <QObject>
|
|
#include <QRectF>
|
|
|
|
// hyperionincludes
|
|
#include <utils/Image.h>
|
|
#include <utils/ColorRgb.h>
|
|
|
|
/// This class handles callbacks from the V4L2 grabber
|
|
class ScreenshotHandler : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
ScreenshotHandler(const QString & filename, const QRectF & signalDetectionOffset);
|
|
virtual ~ScreenshotHandler();
|
|
|
|
public slots:
|
|
/// Handle a single image
|
|
/// @param image The image to process
|
|
void receiveImage(const Image<ColorRgb> & image);
|
|
|
|
private:
|
|
bool findNoSignalSettings(const Image<ColorRgb> & image);
|
|
|
|
const QString _filename;
|
|
const QRectF _signalDetectionOffset;
|
|
};
|