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]
|
|
|
|
///
|
2020-08-08 13:09:15 +02:00
|
|
|
AmlogicWrapper(unsigned grabWidth, unsigned grabHeight);
|
2015-08-07 14:37:41 +02:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
///
|
|
|
|
/// Performs a single frame grab and computes the led-colors
|
|
|
|
///
|
2020-08-02 22:35:09 +02:00
|
|
|
void action() override;
|
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
|
|
|
};
|