huffmancode to decode in real-time for motion-jpeg
Dependents: BaseJpegDecode_example SimpleJpegDecode_example Dumb_box_rev2
example code:
Import programBaseJpegDecode_example
BaseJpegDeocde exampe program
Import programSimpleJpegDecode_example
convert JPEG stream data to bitmap, BaseJpegDecode example program
BitPattern.h
- Committer:
- va009039
- Date:
- 2013-02-02
- Revision:
- 6:d7ee458cacd1
- Parent:
- 0:417b7ae90eff
File content as of revision 6:d7ee458cacd1:
#ifndef BIT_PATTERN_H #define BIT_PATTERN_H #include "mbed.h" class BitPattern { public: BitPattern(); BitPattern(uint32_t value, int size); BitPattern(const char* s); void clear(); void operator +=(uint8_t c); int operator [](int index); void put(uint32_t value, int size = 8); uint32_t peek(int size = 8); uint32_t get(int size = 8); int size(); bool match(BitPattern& b); bool match(const char* s); void operator =(const char* s); void operator +=(const char* s); bool operator ==(BitPattern& b); private: uint32_t m_pat; int m_size; }; #endif // BIT_PATTERN_H