hyperion.ng
AmlogicGrabber.h
1 #pragma once
2 
3 // Utils includes
4 #include <utils/ColorBgr.h>
5 #include <utils/ColorRgba.h>
6 #include <hyperion/Grabber.h>
7 #include <grabber/FramebufferFrameGrabber.h>
8 
11 class AmlogicGrabber : public Grabber
12 {
13 public:
20  AmlogicGrabber(const unsigned width, const unsigned height);
21  ~AmlogicGrabber();
22 
32  int grabFrame(Image<ColorRgb> & image);
33 
34 private:
39  bool isVideoPlaying();
40  void closeDev(int &fd);
41  bool openDev(int &fd, const char* dev);
42 
43  int grabFrame_amvideocap(Image<ColorRgb> & image);
44 
46  int _captureDev;
47  int _videoDev;
48 
49  Image<ColorBgr> _image_bgr;
50  void* _image_ptr;
51  ssize_t _bytesToRead;
52 
53  int _lastError;
54  bool _videoPlaying;
55  FramebufferFrameGrabber _fbGrabber;
56  int _grabbingModeNotification;
57 };
AmlogicGrabber(const unsigned width, const unsigned height)
Construct a AmlogicGrabber that will capture snapshots with specified dimensions. ...
Definition: AmlogicGrabber.cpp:23
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
Definition: AmlogicGrabber.h:11
int grabFrame(Image< ColorRgb > &image)
Captures a single snapshot of the display and writes the data to the given image. ...
Definition: AmlogicGrabber.cpp:86