9 #include <utils/Logger.h> 10 #include <utils/Components.h> 11 #include <utils/Image.h> 12 #include <utils/ColorRgb.h> 13 #include <utils/VideoMode.h> 14 #include <utils/settings.h> 27 GrabberWrapper(QString grabberName,
Grabber * ggrabber,
unsigned width,
unsigned height,
const unsigned updateRate_Hz = 0);
41 static QStringList availableGrabbers();
44 template <
typename Grabber_T>
45 bool transferFrame(Grabber_T &grabber)
47 unsigned w = grabber.getImageWidth();
48 unsigned h = grabber.getImageHeight();
54 int ret = grabber.grabFrame(
_image);
82 virtual void setCropping(
unsigned cropLeft,
unsigned cropRight,
unsigned cropTop,
unsigned cropBottom);
QTimer * _timer
The timer for generating events with the specified update rate.
Definition: GrabberWrapper.h:102
virtual void setCropping(unsigned cropLeft, unsigned cropRight, unsigned cropTop, unsigned cropBottom)
Set the crop values.
Definition: GrabberWrapper.cpp:97
virtual void action()=0
virtual method, should perform single frame grab and computes the led-colors
unsigned height() const
Returns the height of the image.
Definition: Image.h:129
virtual void setVideoMode(const VideoMode &videoMode)
Set the video mode (2D/3D)
Definition: GrabberWrapper.cpp:88
Image< ColorRgb > _image
The image used for grabbing frames.
Definition: GrabberWrapper.h:113
Logger * _log
The Logger instance.
Definition: GrabberWrapper.h:108
Singleton instance for simple signal sharing across threads, should be never used with Qt:DirectConne...
Definition: GlobalSignals.h:13
unsigned width() const
Returns the width of the image.
Definition: Image.h:119
void systemImage(const QString &name, const Image< ColorRgb > &image)
Emit the final processed image.
int _updateInterval_ms
The calced update rate [ms].
Definition: GrabberWrapper.h:105
void resize(const unsigned width, const unsigned height)
Resize the image.
Definition: Image.h:178
This class will be inherted by FramebufferWrapper and others which contains the real capture interfac...
Definition: GrabberWrapper.h:23
The Grabber class is responsible to apply image resizes (with or without ImageResampler) Overwrite th...
Definition: Grabber.h:17
virtual void stop()
Stop grabber.
Definition: GrabberWrapper.cpp:46
virtual bool start()
Starts the grabber wich produces led values with the specified update rate.
Definition: GrabberWrapper.cpp:39
virtual void handleSettingsUpdate(const settings::type &type, const QJsonDocument &config)
Handle settings update from HyperionDaemon Settingsmanager emit.
Definition: GrabberWrapper.cpp:102