Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
FramePixelBuffer.h
1// Author: Kang Lin <kl222@126.com>
2
3#ifndef CFRAMEPIXELBUFFER_H
4#define CFRAMEPIXELBUFFER_H
5
6#include <rfb/PixelBuffer.h>
7#include <QImage>
8#include <QObject>
9
10class CFramePixelBuffer : public QObject,
11 public rfb::FullFramePixelBuffer
12{
13 Q_OBJECT
14
15public:
16 explicit CFramePixelBuffer(int width, int height, QObject *parent = nullptr);
17 virtual ~CFramePixelBuffer();
18
19 const QImage& getImage();
20
21private:
22 QImage m_FrameBuffer;
23};
24
25#endif // CFRAMEPIXELBUFFER_H