hyperion.ng
X11Wrapper.h
1 #pragma once
2 
3 #include <hyperion/GrabberWrapper.h>
4 #include <grabber/X11Grabber.h>
5 // some include of xorg defines "None" this is also used by QT and has to be undefined to avoid collisions
6 #ifdef None
7  #undef None
8 #endif
9 
10 
17 {
18 public:
27  X11Wrapper(int cropLeft, int cropRight, int cropTop, int cropBottom, int pixelDecimation, const unsigned updateRate_Hz);
28 
32  virtual ~X11Wrapper() {};
33 
34 public slots:
38  virtual void action();
39 
40 private:
42  X11Grabber _grabber;
43 
44  bool _init;
45 };
virtual ~X11Wrapper()
Destructor of this framebuffer frame grabber.
Definition: X11Wrapper.h:32
virtual void action()
Performs a single frame grab and computes the led-colors.
Definition: X11Wrapper.cpp:9
This class will be inherted by FramebufferWrapper and others which contains the real capture interfac...
Definition: GrabberWrapper.h:23
X11Wrapper(int cropLeft, int cropRight, int cropTop, int cropBottom, int pixelDecimation, const unsigned updateRate_Hz)
Constructs the framebuffer frame grabber with a specified grab size and update rate.
Definition: X11Wrapper.cpp:3
Definition: X11Grabber.h:16
The X11Wrapper uses an instance of the X11Grabber to obtain ImageRgb&#39;s from the displayed content...
Definition: X11Wrapper.h:16