Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
PixelSource.h@5:fa9eb887e9a6, 2018-10-17 (annotated)
- Committer:
- HarryChen
- Date:
- Wed Oct 17 14:05:23 2018 +0000
- Revision:
- 5:fa9eb887e9a6
- Parent:
- 1:6ae4383194a1
Update
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
HarryChen | 1:6ae4383194a1 | 1 | #ifndef PIXELSOURCE_H |
HarryChen | 1:6ae4383194a1 | 2 | #define PIXELSOURCE_H |
HarryChen | 1:6ae4383194a1 | 3 | |
HarryChen | 1:6ae4383194a1 | 4 | namespace GDE { |
HarryChen | 1:6ae4383194a1 | 5 | |
HarryChen | 1:6ae4383194a1 | 6 | class PixelSource { |
HarryChen | 1:6ae4383194a1 | 7 | public: |
HarryChen | 1:6ae4383194a1 | 8 | virtual void init() { |
HarryChen | 1:6ae4383194a1 | 9 | count = 0; |
HarryChen | 5:fa9eb887e9a6 | 10 | } |
HarryChen | 1:6ae4383194a1 | 11 | virtual unsigned char nextPixelGroup() { |
HarryChen | 1:6ae4383194a1 | 12 | return 0xff; |
HarryChen | 1:6ae4383194a1 | 13 | } |
HarryChen | 1:6ae4383194a1 | 14 | virtual bool hasNext() { |
HarryChen | 1:6ae4383194a1 | 15 | return count < 640 * 384 / 8; |
HarryChen | 1:6ae4383194a1 | 16 | } |
HarryChen | 1:6ae4383194a1 | 17 | protected: |
HarryChen | 1:6ae4383194a1 | 18 | int count; |
HarryChen | 1:6ae4383194a1 | 19 | }; |
HarryChen | 1:6ae4383194a1 | 20 | |
HarryChen | 1:6ae4383194a1 | 21 | } |
HarryChen | 1:6ae4383194a1 | 22 | |
HarryChen | 1:6ae4383194a1 | 23 | #endif |