hyperion.ng/src/hyperion-aml/AmlogicWrapper.h
Portisch f2eef4ecea Amlogic: implement CAP_FLAG_AT_END mode
The OSD will use 20Hz for frame capture frequency
The video capture frequency is based on the amlvideodri capture module
2019-04-10 13:34:37 +00:00

42 lines
779 B
C++

// QT includes
#include <QThread>
// Hyperion-Dispmanx includes
#include <grabber/AmlogicGrabber.h>
class AmlogicWrapper : public QObject
{
Q_OBJECT
public:
AmlogicWrapper(const unsigned grabWidth, const unsigned grabHeight);
const Image<ColorRgb> & getScreenshot();
///
/// Starts the threaded capturing of screenshots
///
void start();
void stop();
signals:
void sig_screenshot(const Image<ColorRgb> & screenshot);
private slots:
///
/// Performs screenshot captures and publishes the capture screenshot on the screenshot signal.
///
void capture();
private:
/// The QT thread to generate capture-publish events
QThread _thread;
/// The grabber for creating screenshots
AmlogicGrabber _grabber;
// image buffers
Image<ColorRgb> _screenshot;
};