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

inverseDCT.h

Committer:
va009039
Date:
2013-02-02
Revision:
6:d7ee458cacd1
Parent:
3:a7547692071d

File content as of revision 6:d7ee458cacd1:

// inverseDCT.h 2013/1/28
#ifndef INVERSE_DCT_H
#define INVERSE_DCT_H

#define USE_IDCT_AAN
//#define USE_IDCT_TABLE

#ifdef USE_IDCT_AAN
#include "aanIDCT.h"
class inverseDCT {
public:
    void inputBLOCK(int mcu, int block, int scan, int value);
    virtual void outputBLOCK(int mcu, int block, int8_t * values) = 0;
private:
    int16_t m_s[64];
    aanIDCT idct;
};
#endif // USE_IDCT_AAN

#ifdef USE_IDCT_TABLE
class inverseDCT {
public:
    void inputBLOCK(int mcu, int block, int scan, int value);
    virtual void outputBLOCK(int mcu, int block, int8_t* values) = 0;
private:
    int16_t m_sum[64];
};
#endif // USE_IDCT_TABLE
 
#endif // INVERSE_DCT_H