Webcam Server.

Dependencies:   uvchost FatFileSystem mbed HTTPServer NetServicesMin

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers WebcamInput.h Source File

WebcamInput.h

00001 #ifndef WEBCAM_INPUT_H
00002 #define WEBCAM_INPUT_H
00003 #include "usb_mjpeg.h"
00004 
00005 #define INTERVAL_MS 1000
00006 #define IMAGE_SIZE  4096
00007 
00008 class WebcamInput : public usb_stream {
00009 public:
00010     WebcamInput(int cam = 0);
00011     virtual void input(uint16_t frame, uint8_t* buf, int len);
00012     int m_seq;
00013     uint8_t m_bfh;
00014     int m_pos;
00015     int m_size;
00016     uint8_t* m_image_buf;
00017     Timer m_t;
00018     int m_cam;
00019 };
00020 
00021 #endif //WEBCAM_INPUT_H