Any changes are to allow conversion to BMP

Dependents:   Color_Targeting_Catapult

Fork of BaseJpegDecode by Norimasa Okamoto

HuffmanDecode.h

Committer:
kylepost3
Date:
2014-04-30
Revision:
7:5010d93af0b6
Parent:
0:417b7ae90eff

File content as of revision 7:5010d93af0b6:

#ifndef HUFFMAN_DECODE_H
#define HUFFMAN_DECODE_H
#include "BitPattern.h"

typedef struct sthuff {
    int8_t run;
    int8_t value_size;
    int8_t code_size;
    uint16_t code;
} Huff;

class HuffmanDecode {
public:
    Huff* Lookup(int tc, int th, BitPattern* bitpat);
    int getValue(Huff* huff, BitPattern* bitpat);
};

#endif // HUFFMAN_DECODE_H