test
Dependencies: Nanopb iSerial mbed BaseJpegDecode FatFileSystem SDFileSystem RingBuffer Camera_LS_Y201
extlib/BaseJpegDecode/HuffmanDecode.h@0:d69efd0ee139, 2014-09-18 (annotated)
- Committer:
- cgraham
- Date:
- Thu Sep 18 15:21:47 2014 +0000
- Revision:
- 0:d69efd0ee139
test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
cgraham | 0:d69efd0ee139 | 1 | #ifndef HUFFMAN_DECODE_H |
cgraham | 0:d69efd0ee139 | 2 | #define HUFFMAN_DECODE_H |
cgraham | 0:d69efd0ee139 | 3 | #include "BitPattern.h" |
cgraham | 0:d69efd0ee139 | 4 | |
cgraham | 0:d69efd0ee139 | 5 | typedef struct sthuff { |
cgraham | 0:d69efd0ee139 | 6 | int8_t run; |
cgraham | 0:d69efd0ee139 | 7 | int8_t value_size; |
cgraham | 0:d69efd0ee139 | 8 | int8_t code_size; |
cgraham | 0:d69efd0ee139 | 9 | uint16_t code; |
cgraham | 0:d69efd0ee139 | 10 | } Huff; |
cgraham | 0:d69efd0ee139 | 11 | |
cgraham | 0:d69efd0ee139 | 12 | class HuffmanDecode { |
cgraham | 0:d69efd0ee139 | 13 | public: |
cgraham | 0:d69efd0ee139 | 14 | Huff* Lookup(int tc, int th, BitPattern* bitpat); |
cgraham | 0:d69efd0ee139 | 15 | int getValue(Huff* huff, BitPattern* bitpat); |
cgraham | 0:d69efd0ee139 | 16 | }; |
cgraham | 0:d69efd0ee139 | 17 | |
cgraham | 0:d69efd0ee139 | 18 | #endif // HUFFMAN_DECODE_H |