![](/media/cache/profiles/f095cedd23b99f1696fc8caecbcf257e.jpg.50x50_q85.jpg)
see: http://mbed.org/users/okini3939/notebook/wifi_webcam/
Dependencies: GSwifiInterface_ap_webcam USBHost mbed
USBHostC270/decodeMJPEG/decodeMJPEG.h@0:8558bdecb0fa, 2014-06-06 (annotated)
- Committer:
- okini3939
- Date:
- Fri Jun 06 00:44:06 2014 +0000
- Revision:
- 0:8558bdecb0fa
1st build
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
okini3939 | 0:8558bdecb0fa | 1 | // decodeMJPEG.h 2012/12/9 |
okini3939 | 0:8558bdecb0fa | 2 | #ifndef DECODE_MJPEG_H |
okini3939 | 0:8558bdecb0fa | 3 | #define DECODE_MJPEG_H |
okini3939 | 0:8558bdecb0fa | 4 | |
okini3939 | 0:8558bdecb0fa | 5 | #define JPEG_NONE 0 |
okini3939 | 0:8558bdecb0fa | 6 | #define JPEG_START 1 |
okini3939 | 0:8558bdecb0fa | 7 | #define JPEG_END 2 |
okini3939 | 0:8558bdecb0fa | 8 | #define JPEG_ERROR 3 |
okini3939 | 0:8558bdecb0fa | 9 | |
okini3939 | 0:8558bdecb0fa | 10 | class decodeMJPEG { |
okini3939 | 0:8558bdecb0fa | 11 | public: |
okini3939 | 0:8558bdecb0fa | 12 | decodeMJPEG(); |
okini3939 | 0:8558bdecb0fa | 13 | void inputPacket(const uint8_t* buf, int len); |
okini3939 | 0:8558bdecb0fa | 14 | virtual void outputJPEG(uint8_t c, int status = JPEG_NONE) = 0; |
okini3939 | 0:8558bdecb0fa | 15 | protected: |
okini3939 | 0:8558bdecb0fa | 16 | void input(uint8_t c); |
okini3939 | 0:8558bdecb0fa | 17 | int m_seq; |
okini3939 | 0:8558bdecb0fa | 18 | uint8_t m_mark; |
okini3939 | 0:8558bdecb0fa | 19 | uint16_t m_seg_pos; |
okini3939 | 0:8558bdecb0fa | 20 | uint16_t m_seg_len; |
okini3939 | 0:8558bdecb0fa | 21 | bool m_bDHT; |
okini3939 | 0:8558bdecb0fa | 22 | bool m_output_desable; |
okini3939 | 0:8558bdecb0fa | 23 | }; |
okini3939 | 0:8558bdecb0fa | 24 | |
okini3939 | 0:8558bdecb0fa | 25 | #endif // DECODE_MJPEG_H |