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: FatFileSystem TB6612FNG2 mbed
uvc/usb_mjpeg.h@0:de03cbbcd0ff, 2015-11-30 (annotated)
- Committer:
- mbed_Cookbook_SE
- Date:
- Mon Nov 30 09:32:15 2015 +0000
- Revision:
- 0:de03cbbcd0ff
??
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 1 | #ifndef USB_MJPEG_H |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 2 | #define USB_MJPEG_H |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 3 | #include "UsbInc.h" |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 4 | |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 5 | class usb_stream { |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 6 | public: |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 7 | virtual void input(uint16_t frame, uint8_t* buf, int len) = 0; |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 8 | }; |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 9 | |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 10 | class usb_mjpeg : public usb_stream { |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 11 | public: |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 12 | usb_mjpeg(uint8_t* buf = NULL, int size = 4800); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 13 | ~usb_mjpeg(); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 14 | virtual void input(uint16_t frame, uint8_t* buf, int len); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 15 | int status(); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 16 | uint16_t ReportErrorFID; |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 17 | uint16_t ReportErrorPTS; |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 18 | private: |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 19 | void _open(); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 20 | void _wrtie(uint8_t* buf, int len); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 21 | void _close(); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 22 | |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 23 | uint8_t* m_buf; |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 24 | int m_pos; |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 25 | bool check_SOI(uint8_t* buf, int len); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 26 | bool check_EOI(uint8_t* buf, int len); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 27 | void analyticsJPEG(uint8_t* buf, int len); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 28 | int m_seq; |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 29 | int m_size; |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 30 | uint8_t m_bfh; |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 31 | uint32_t m_pts; |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 32 | }; |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 33 | #endif //USB_MJPEG_H |