Kyle Post / BaseJpegDecode

Dependents:   Color_Targeting_Catapult

Fork of BaseJpegDecode by Norimasa Okamoto

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers HuffmanDecode.h Source File

HuffmanDecode.h

00001 #ifndef HUFFMAN_DECODE_H
00002 #define HUFFMAN_DECODE_H
00003 #include "BitPattern.h"
00004 
00005 typedef struct sthuff {
00006     int8_t run;
00007     int8_t value_size;
00008     int8_t code_size;
00009     uint16_t code;
00010 } Huff;
00011 
00012 class HuffmanDecode {
00013 public:
00014     Huff* Lookup(int tc, int th, BitPattern* bitpat);
00015     int getValue(Huff* huff, BitPattern* bitpat);
00016 };
00017 
00018 #endif // HUFFMAN_DECODE_H