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.
Dependencies: uvchost FatFileSystem mbed HTTPServer NetServicesMin
WebcamInput.h@0:2b4ea8a138e5, 2012-06-06 (annotated)
- Committer:
- va009039
- Date:
- Wed Jun 06 11:47:06 2012 +0000
- Revision:
- 0:2b4ea8a138e5
- Child:
- 1:7a4f2c038803
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| va009039 | 0:2b4ea8a138e5 | 1 | #ifndef WEBCAM_INPUT_H |
| va009039 | 0:2b4ea8a138e5 | 2 | #define WEBCAM_INPUT_H |
| va009039 | 0:2b4ea8a138e5 | 3 | #include "usb_mjpeg.h" |
| va009039 | 0:2b4ea8a138e5 | 4 | |
| va009039 | 0:2b4ea8a138e5 | 5 | #define INTERVAL_MS 1000 |
| va009039 | 0:2b4ea8a138e5 | 6 | #define IMAGE_SIZE 4096 |
| va009039 | 0:2b4ea8a138e5 | 7 | |
| va009039 | 0:2b4ea8a138e5 | 8 | class WebcamInput : public usb_stream { |
| va009039 | 0:2b4ea8a138e5 | 9 | public: |
| va009039 | 0:2b4ea8a138e5 | 10 | WebcamInput(int cam = 0); |
| va009039 | 0:2b4ea8a138e5 | 11 | virtual void input(uint16_t frame, uint8_t* buf, int len); |
| va009039 | 0:2b4ea8a138e5 | 12 | int m_seq; |
| va009039 | 0:2b4ea8a138e5 | 13 | uint8_t m_bfh; |
| va009039 | 0:2b4ea8a138e5 | 14 | int m_pos; |
| va009039 | 0:2b4ea8a138e5 | 15 | char* m_image_buf; |
| va009039 | 0:2b4ea8a138e5 | 16 | Timer m_t; |
| va009039 | 0:2b4ea8a138e5 | 17 | int m_cam; |
| va009039 | 0:2b4ea8a138e5 | 18 | }; |
| va009039 | 0:2b4ea8a138e5 | 19 | |
| va009039 | 0:2b4ea8a138e5 | 20 | #endif //WEBCAM_INPUT_H |