Frame diff algo now working nicely and providing twice the frame rate.
5 #include <QQuickWindow>
8 class MiniDisplay : public QQuickItem
11 Q_DISABLE_COPY(MiniDisplay)
13 Q_PROPERTY(bool isOpen READ isOpen NOTIFY statusChanged)
14 Q_PROPERTY(bool offScreenMode READ offScreenMode WRITE setOffScreenMode NOTIFY offScreenModeChanged)
15 Q_PROPERTY(QFont font READ font WRITE setFont NOTIFY fontChanged)
16 Q_PROPERTY(QString vendor READ vendor)
17 Q_PROPERTY(QString product READ product)
18 Q_PROPERTY(QString serialNumber READ serialNumber)
19 Q_PROPERTY(int brightness READ brightness WRITE setBrightness NOTIFY brightnessChanged)
20 Q_PROPERTY(int maxBrightness READ maxBrightness NOTIFY opened)
21 Q_PROPERTY(int minBrightness READ minBrightness NOTIFY opened)
22 Q_PROPERTY(QPoint framePosition READ framePosition WRITE setFramePosition NOTIFY closed)
26 Q_INVOKABLE void open();
27 Q_INVOKABLE void close();
29 Q_INVOKABLE void clear();
30 Q_INVOKABLE void fill();
31 Q_INVOKABLE void swapBuffers();
33 Q_INVOKABLE void requestPowerStatus();
34 Q_INVOKABLE void requestDeviceId();
35 Q_INVOKABLE void requestFirmwareVersion();
37 Q_INVOKABLE void renderOwnWindow();
38 Q_INVOKABLE void renderWindow(QQuickWindow* aWindow);
39 Q_INVOKABLE void renderImage(QImage* aImage);
41 Q_INVOKABLE void setPixel(int x, int y, bool on);
49 QFont font() const {return iFont;}
50 void setFont(const QFont& aFont);
53 void setOffScreenMode(bool aOn);
57 QString serialNumber();
59 int maxBrightness() const;
60 int minBrightness() const;
61 int brightness() const;
62 void setBrightness(int aBrightness);
64 QPoint framePosition() const;
65 void setFramePosition(const QPoint& aPoint);
74 void brightnessChanged();
75 void offScreenModeChanged();
77 void powerStatus(bool powerOn);
78 void deviceId(QString deviceId);
79 void firmwareVersion(QString version);
86 MiniDisplay(QQuickItem *parent = 0);
94 QPoint iFramePosition;
97 #endif // MINIDISPLAY_H