huffmancode to decode in real-time for motion-jpeg

Dependents:   BaseJpegDecode_example SimpleJpegDecode_example Dumb_box_rev2

example code:

Import programBaseJpegDecode_example

BaseJpegDeocde exampe program

Import programSimpleJpegDecode_example

convert JPEG stream data to bitmap, BaseJpegDecode example program

HuffmanDecode.h

Committer:
va009039
Date:
2013-02-02
Revision:
6:d7ee458cacd1
Parent:
0:417b7ae90eff

File content as of revision 6:d7ee458cacd1:

#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