BaseJpegDeocde exampe program

Dependencies:   BaseJpegDecode Terminal BaseUsbHost mbed mbed-rtos

Fork of BaseJpegDecode by Norimasa Okamoto

HuffmanDecode.h

Committer:
va009039
Date:
2012-10-07
Revision:
0:7121d9fb45f4
Child:
1:58dfd5386a92

File content as of revision 0:7121d9fb45f4:

#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