hyperion.ng
Public Slots | Signals | Public Member Functions | List of all members
DispmanxWrapper Class Reference

The DispmanxWrapper uses an instance of the DispmanxFrameGrabber to obtain ImageRgb's from the displayed content. More...

#include <DispmanxWrapper.h>

Inheritance diagram for DispmanxWrapper:
GrabberWrapper

Public Slots

virtual void action ()
 Performs a single frame grab and computes the led-colors.
 
- Public Slots inherited from GrabberWrapper
virtual void action ()=0
 virtual method, should perform single frame grab and computes the led-colors
 
virtual void setVideoMode (const VideoMode &videoMode)
 Set the video mode (2D/3D) More...
 
virtual void setCropping (unsigned cropLeft, unsigned cropRight, unsigned cropTop, unsigned cropBottom)
 Set the crop values. More...
 
virtual void handleSettingsUpdate (const settings::type &type, const QJsonDocument &config)
 Handle settings update from HyperionDaemon Settingsmanager emit. More...
 

Signals

void sig_screenshot (const Image< ColorRgb > &screenshot)
 
- Signals inherited from GrabberWrapper
void systemImage (const QString &name, const Image< ColorRgb > &image)
 Emit the final processed image.
 

Public Member Functions

 DispmanxWrapper (const unsigned grabWidth, const unsigned grabHeight, const unsigned updateRate_Hz)
 Constructs the dispmanx frame grabber with a specified grab size and update rate. More...
 
virtual ~DispmanxWrapper ()
 Destructor of this dispmanx frame grabber. More...
 
 DispmanxWrapper (const unsigned grabWidth, const unsigned grabHeight, const VideoMode &videoMode, const unsigned cropLeft, const unsigned cropRight, const unsigned cropTop, const unsigned cropBottom, const unsigned updateRate_Hz)
 
const Image< ColorRgb > & getScreenshot ()
 
void start ()
 Starts the timed capturing of screenshots.
 
void stop ()
 Stop grabber.
 
- Public Member Functions inherited from GrabberWrapper
 GrabberWrapper (QString grabberName, Grabber *ggrabber, unsigned width, unsigned height, const unsigned updateRate_Hz=0)
 
template<typename Grabber_T >
bool transferFrame (Grabber_T &grabber)
 

Additional Inherited Members

- Static Public Member Functions inherited from GrabberWrapper
static QStringList availableGrabbers ()
 
- Protected Attributes inherited from GrabberWrapper
QString _grabberName
 
QTimer * _timer
 The timer for generating events with the specified update rate.
 
int _updateInterval_ms
 The calced update rate [ms].
 
Logger_log
 The Logger instance.
 
Grabber_ggrabber
 
Image< ColorRgb_image
 The image used for grabbing frames.
 

Detailed Description

The DispmanxWrapper uses an instance of the DispmanxFrameGrabber to obtain ImageRgb's from the displayed content.

This ImageRgb is forwarded to all Hyperion instances via HyperionDaemon

Constructor & Destructor Documentation

§ DispmanxWrapper()

DispmanxWrapper::DispmanxWrapper ( const unsigned  grabWidth,
const unsigned  grabHeight,
const unsigned  updateRate_Hz 
)

Constructs the dispmanx frame grabber with a specified grab size and update rate.

Parameters
[in]grabWidthThe width of the grabbed image [pixels]
[in]grabHeightThe height of the grabbed images [pixels]
[in]updateRate_HzThe image grab rate [Hz]

§ ~DispmanxWrapper()

virtual DispmanxWrapper::~DispmanxWrapper ( )
inlinevirtual

Destructor of this dispmanx frame grabber.

Releases any claimed resources.


The documentation for this class was generated from the following files: