mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
13205a9d11
* Add Xcb grabber * update compile instruction Signed-off-by: Paulchen Panther <Paulchen-Panter@protonmail.com> * Fix problem on resolution change + Make XCB default if X11 is not avaialable * Fix decimation problem Co-authored-by: Paulchen Panther <16664240+Paulchen-Panther@users.noreply.github.com> Co-authored-by: Paulchen Panther <Paulchen-Panter@protonmail.com>
25 lines
509 B
C++
25 lines
509 B
C++
#pragma once
|
|
|
|
#include <hyperion/GrabberWrapper.h>
|
|
#include <grabber/XcbGrabber.h>
|
|
|
|
// some include of xorg defines "None" this is also used by QT and has to be undefined to avoid collisions
|
|
#ifdef None
|
|
#undef None
|
|
#endif
|
|
|
|
class XcbWrapper: public GrabberWrapper
|
|
{
|
|
public:
|
|
XcbWrapper(int cropLeft, int cropRight, int cropTop, int cropBottom, int pixelDecimation, const unsigned updateRate_Hz);
|
|
~XcbWrapper() override;
|
|
|
|
public slots:
|
|
virtual void action();
|
|
|
|
private:
|
|
XcbGrabber _grabber;
|
|
|
|
bool _init;
|
|
};
|