Webcam Server.
Dependencies: uvchost FatFileSystem mbed HTTPServer NetServicesMin
WebcamInput.h
- Committer:
- va009039
- Date:
- 2012-08-14
- Revision:
- 1:7a4f2c038803
- Parent:
- 0:2b4ea8a138e5
File content as of revision 1:7a4f2c038803:
#ifndef WEBCAM_INPUT_H #define WEBCAM_INPUT_H #include "usb_mjpeg.h" #define INTERVAL_MS 1000 #define IMAGE_SIZE 4096 class WebcamInput : public usb_stream { public: WebcamInput(int cam = 0); virtual void input(uint16_t frame, uint8_t* buf, int len); int m_seq; uint8_t m_bfh; int m_pos; int m_size; uint8_t* m_image_buf; Timer m_t; int m_cam; }; #endif //WEBCAM_INPUT_H