Webcam Server.

Dependencies:   uvchost FatFileSystem mbed HTTPServer NetServicesMin

Revision:
0:2b4ea8a138e5
Child:
1:7a4f2c038803
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/WebcamInput.h	Wed Jun 06 11:47:06 2012 +0000
@@ -0,0 +1,20 @@
+#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;
+    char* m_image_buf;
+    Timer m_t;
+    int m_cam;
+};
+
+#endif //WEBCAM_INPUT_H
\ No newline at end of file