2015-08-07 14:37:41 +02:00
|
|
|
#pragma once
|
|
|
|
|
2016-08-11 07:13:55 +02:00
|
|
|
#include <hyperion/GrabberWrapper.h>
|
2017-08-12 07:55:32 +02:00
|
|
|
#include <grabber/AmlogicGrabber.h>
|
2015-08-07 14:37:41 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
/// The DispmanxWrapper uses an instance of the DispmanxFrameGrabber to obtain ImageRgb's from the
|
|
|
|
/// displayed content. This ImageRgb is processed to a ColorRgb for each led and commmited to the
|
|
|
|
/// attached Hyperion.
|
|
|
|
///
|
2016-08-11 07:13:55 +02:00
|
|
|
class AmlogicWrapper : public GrabberWrapper
|
2015-08-07 14:37:41 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
/// Constructs the dispmanx frame grabber with a specified grab size and update rate.
|
|
|
|
///
|
|
|
|
/// @param[in] grabWidth The width of the grabbed image [pixels]
|
|
|
|
/// @param[in] grabHeight The height of the grabbed images [pixels]
|
|
|
|
///
|
2019-03-27 09:07:20 +01:00
|
|
|
AmlogicWrapper(const unsigned grabWidth, const unsigned grabHeight);
|
2015-08-07 14:37:41 +02:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
///
|
|
|
|
/// Performs a single frame grab and computes the led-colors
|
|
|
|
///
|
2016-08-11 07:13:55 +02:00
|
|
|
virtual void action();
|
2015-08-07 14:37:41 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
/// The actual grabber
|
2017-08-12 07:55:32 +02:00
|
|
|
AmlogicGrabber _grabber;
|
2015-08-07 14:37:41 +02:00
|
|
|
};
|