Axeda Ready Demo for Freescale FRDM-KL46Z as accident alert system
Dependencies: FRDM_MMA8451Q KL46Z-USBHost MAG3110 SocketModem TSI mbed FATFileSystem
Fork of AxedaGo-Freescal_FRDM-KL46Z revert by
KL46Z_USBHostC270/decodeMJPEG.h@1:5ad12c581db4, 2014-07-02 (annotated)
- Committer:
- AxedaCorp
- Date:
- Wed Jul 02 15:59:38 2014 +0000
- Revision:
- 1:5ad12c581db4
- Parent:
- 0:65004368569c
url ip switch
;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AxedaCorp | 0:65004368569c | 1 | // decodeMJPEG.h 2012/12/9 |
AxedaCorp | 0:65004368569c | 2 | #ifndef DECODE_MJPEG_H |
AxedaCorp | 0:65004368569c | 3 | #define DECODE_MJPEG_H |
AxedaCorp | 0:65004368569c | 4 | |
AxedaCorp | 0:65004368569c | 5 | #define JPEG_NONE 0 |
AxedaCorp | 0:65004368569c | 6 | #define JPEG_START 1 |
AxedaCorp | 0:65004368569c | 7 | #define JPEG_END 2 |
AxedaCorp | 0:65004368569c | 8 | #define JPEG_ERROR 3 |
AxedaCorp | 0:65004368569c | 9 | |
AxedaCorp | 0:65004368569c | 10 | class decodeMJPEG { |
AxedaCorp | 0:65004368569c | 11 | public: |
AxedaCorp | 0:65004368569c | 12 | decodeMJPEG(); |
AxedaCorp | 0:65004368569c | 13 | void inputPacket(const uint8_t* buf, int len); |
AxedaCorp | 0:65004368569c | 14 | virtual void outputJPEG(uint8_t c, int status = JPEG_NONE) = 0; |
AxedaCorp | 0:65004368569c | 15 | protected: |
AxedaCorp | 0:65004368569c | 16 | void input(uint8_t c); |
AxedaCorp | 0:65004368569c | 17 | int m_seq; |
AxedaCorp | 0:65004368569c | 18 | uint8_t m_mark; |
AxedaCorp | 0:65004368569c | 19 | uint16_t m_seg_pos; |
AxedaCorp | 0:65004368569c | 20 | uint16_t m_seg_len; |
AxedaCorp | 0:65004368569c | 21 | bool m_bDHT; |
AxedaCorp | 0:65004368569c | 22 | bool m_output_desable; |
AxedaCorp | 0:65004368569c | 23 | }; |
AxedaCorp | 0:65004368569c | 24 | |
AxedaCorp | 0:65004368569c | 25 | #endif // DECODE_MJPEG_H |