6 #include <utils/ColorRgb.h> 7 #include <hyperion/Grabber.h> 11 #include <X11/extensions/Xrender.h> 12 #include <X11/extensions/XShm.h> 20 X11Grabber(
int cropLeft,
int cropRight,
int cropTop,
int cropBottom,
int pixelDecimation);
59 virtual void setCropping(
unsigned cropLeft,
unsigned cropRight,
unsigned cropTop,
unsigned cropBottom);
62 bool _XShmAvailable, _XShmPixmapAvailable, _XRenderAvailable;
65 XShmSegmentInfo _shminfo;
70 XWindowAttributes _windowAttr;
73 XRenderPictFormat* _srcFormat;
74 XRenderPictFormat* _dstFormat;
75 XRenderPictureAttributes _pictAttr;
79 XTransform _transform;
82 unsigned _screenWidth;
83 unsigned _screenHeight;
90 void setupResources();
int updateScreenDimensions(bool force=false)
update dimension according current screen
Definition: X11Grabber.cpp:192
virtual bool setWidthHeight(int width, int height)
Apply new width/height values, overwrite Grabber.h implementation as X11 doesn't use width/height...
Definition: X11Grabber.h:45
virtual int grabFrame(Image< ColorRgb > &image, bool forceUpdate=false)
Captures a single snapshot of the display and writes the data to the given image. ...
Definition: X11Grabber.cpp:117
virtual void setCropping(unsigned cropLeft, unsigned cropRight, unsigned cropTop, unsigned cropBottom)
Set the crop values.
Definition: X11Grabber.cpp:291
The Grabber class is responsible to apply image resizes (with or without ImageResampler) Overwrite th...
Definition: Grabber.h:17
virtual void setPixelDecimation(int pixelDecimation)
Apply new pixelDecimation.
Definition: X11Grabber.cpp:282
Definition: X11Grabber.h:16
virtual void setVideoMode(VideoMode mode)
Set the video mode (2D/3D)
Definition: X11Grabber.cpp:276