USB Host Driver with Socket Modem support. Works with revision 323 of mbed-src but broken with any later version.

Dependencies:   FATFileSystem

Fork of F401RE-USBHost by Norimasa Okamoto

USBHostC270/decodeMJPEG.h

Committer:
fritz291
Date:
2015-06-26
Revision:
26:53970cabf56d
Parent:
13:8774c07f12a5

File content as of revision 26:53970cabf56d:

// decodeMJPEG.h 2012/12/9
#ifndef DECODE_MJPEG_H
#define DECODE_MJPEG_H

#define JPEG_NONE  0
#define JPEG_START 1
#define JPEG_END   2
#define JPEG_ERROR 3

class decodeMJPEG {
public:
    decodeMJPEG();
    void inputPacket(const uint8_t* buf, int len);
    virtual void outputJPEG(uint8_t c, int status = JPEG_NONE) = 0;
protected:
    void input(uint8_t c);
    int m_seq;
    uint8_t m_mark;
    uint16_t m_seg_pos; 
    uint16_t m_seg_len;
    bool m_bDHT;
    bool m_output_desable;
};

#endif // DECODE_MJPEG_H