hyperion.ng
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
GrabberWrapper Class Referenceabstract

This class will be inherted by FramebufferWrapper and others which contains the real capture interface. More...

#include <GrabberWrapper.h>

Inheritance diagram for GrabberWrapper:
AmlogicWrapper DispmanxWrapper FramebufferWrapper OsxWrapper QtWrapper V4L2Wrapper X11Wrapper

Public Slots

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 systemImage (const QString &name, const Image< ColorRgb > &image)
 Emit the final processed image.
 

Public Member Functions

 GrabberWrapper (QString grabberName, Grabber *ggrabber, unsigned width, unsigned height, const unsigned updateRate_Hz=0)
 
virtual bool start ()
 Starts the grabber wich produces led values with the specified update rate.
 
virtual void stop ()
 Stop grabber.
 
template<typename Grabber_T >
bool transferFrame (Grabber_T &grabber)
 

Static Public Member Functions

static QStringList availableGrabbers ()
 

Protected Attributes

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

This class will be inherted by FramebufferWrapper and others which contains the real capture interface.

Member Function Documentation

§ handleSettingsUpdate

void GrabberWrapper::handleSettingsUpdate ( const settings::type &  type,
const QJsonDocument &  config 
)
virtualslot

Handle settings update from HyperionDaemon Settingsmanager emit.

Parameters
typesettingyType from enum
configconfiguration object

§ setCropping

void GrabberWrapper::setCropping ( unsigned  cropLeft,
unsigned  cropRight,
unsigned  cropTop,
unsigned  cropBottom 
)
virtualslot

Set the crop values.

Parameters
cropLeftLeft pixel crop
cropRightRight pixel crop
cropTopTop pixel crop
cropBottomBottom pixel crop

§ setVideoMode

void GrabberWrapper::setVideoMode ( const VideoMode &  videoMode)
virtualslot

Set the video mode (2D/3D)

Parameters
[in]modeThe new video mode

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