Any changes are to allow conversion to BMP
Dependents: Color_Targeting_Catapult
Fork of BaseJpegDecode by
HuffmanDecode.h@7:5010d93af0b6, 2014-04-30 (annotated)
- Committer:
- kylepost3
- Date:
- Wed Apr 30 14:17:05 2014 +0000
- Revision:
- 7:5010d93af0b6
- Parent:
- 0:417b7ae90eff
Any changes are to allow conversion to BMP
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
va009039 | 0:417b7ae90eff | 1 | #ifndef HUFFMAN_DECODE_H |
va009039 | 0:417b7ae90eff | 2 | #define HUFFMAN_DECODE_H |
va009039 | 0:417b7ae90eff | 3 | #include "BitPattern.h" |
va009039 | 0:417b7ae90eff | 4 | |
va009039 | 0:417b7ae90eff | 5 | typedef struct sthuff { |
va009039 | 0:417b7ae90eff | 6 | int8_t run; |
va009039 | 0:417b7ae90eff | 7 | int8_t value_size; |
va009039 | 0:417b7ae90eff | 8 | int8_t code_size; |
va009039 | 0:417b7ae90eff | 9 | uint16_t code; |
va009039 | 0:417b7ae90eff | 10 | } Huff; |
va009039 | 0:417b7ae90eff | 11 | |
va009039 | 0:417b7ae90eff | 12 | class HuffmanDecode { |
va009039 | 0:417b7ae90eff | 13 | public: |
va009039 | 0:417b7ae90eff | 14 | Huff* Lookup(int tc, int th, BitPattern* bitpat); |
va009039 | 0:417b7ae90eff | 15 | int getValue(Huff* huff, BitPattern* bitpat); |
va009039 | 0:417b7ae90eff | 16 | }; |
va009039 | 0:417b7ae90eff | 17 | |
va009039 | 0:417b7ae90eff | 18 | #endif // HUFFMAN_DECODE_H |