hyperion.ng
FramebufferFrameGrabber.h
1 #pragma once
2 
3 // Utils includes
4 #include <utils/ColorRgb.h>
5 #include <hyperion/Grabber.h>
6 
11 {
12 public:
20  FramebufferFrameGrabber(const QString & device, const unsigned width, const unsigned height);
22 
31  int grabFrame(Image<ColorRgb> & image);
32 
36  virtual void setDevicePath(const QString& path);
37 
38 private:
40  int _fbfd;
41 
43  unsigned char * _fbp;
44 
46  QString _fbDevice;
47 };
FramebufferFrameGrabber(const QString &device, const unsigned width, const unsigned height)
Construct a FramebufferFrameGrabber that will capture snapshots with specified dimensions.
Definition: FramebufferFrameGrabber.cpp:15
int grabFrame(Image< ColorRgb > &image)
Captures a single snapshot of the display and writes the data to the given image. ...
Definition: FramebufferFrameGrabber.cpp:28
virtual void setDevicePath(const QString &path)
Overwrite Grabber.h implememtation.
Definition: FramebufferFrameGrabber.cpp:78
The FramebufferFrameGrabber is used for creating snapshots of the display (screenshots) ...
Definition: FramebufferFrameGrabber.h:10
The Grabber class is responsible to apply image resizes (with or without ImageResampler) Overwrite th...
Definition: Grabber.h:17