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

Committer:
va009039
Date:
Mon Nov 05 22:47:05 2012 +0000
Revision:
3:a7547692071d
Parent:
2:5b1dd4e34857
Child:
6:d7ee458cacd1
change to AAN inverse DCT

Who changed what in which revision?

UserRevisionLine numberNew contents of line
va009039 2:5b1dd4e34857 1 #ifndef INVERSE_DCT_H
va009039 2:5b1dd4e34857 2 #define INVERSE_DCT_H
va009039 2:5b1dd4e34857 3
va009039 3:a7547692071d 4 #define USE_IDCT_AAN
va009039 3:a7547692071d 5 //#define USE_IDCT_TABLE
va009039 2:5b1dd4e34857 6
va009039 3:a7547692071d 7 #ifdef USE_IDCT_AAN
va009039 3:a7547692071d 8 #include "aanIDCT.h"
va009039 2:5b1dd4e34857 9 class inverseDCT {
va009039 2:5b1dd4e34857 10 public:
va009039 2:5b1dd4e34857 11 void inputBLOCK(int mcu, int block, int scan, int value);
va009039 3:a7547692071d 12 virtual void outputBLOCK(int mcu, int block, int8_t * values) = 0;
va009039 3:a7547692071d 13 private:
va009039 3:a7547692071d 14 int16_t m_s[64];
va009039 3:a7547692071d 15 aanIDCT idct;
va009039 3:a7547692071d 16 };
va009039 3:a7547692071d 17 #endif // USE_IDCT_AAN
va009039 3:a7547692071d 18
va009039 3:a7547692071d 19 #ifdef USE_IDCT_TABLE
va009039 3:a7547692071d 20 class inverseDCT {
va009039 3:a7547692071d 21 public:
va009039 3:a7547692071d 22 void inputBLOCK(int mcu, int block, int scan, int value);
va009039 3:a7547692071d 23 virtual void outputBLOCK(int mcu, int block, int8_t* values) = 0;
va009039 2:5b1dd4e34857 24 private:
va009039 2:5b1dd4e34857 25 int16_t m_sum[64];
va009039 2:5b1dd4e34857 26 };
va009039 3:a7547692071d 27 #endif // USE_IDCT_TABLE
va009039 3:a7547692071d 28
va009039 3:a7547692071d 29 #endif // INVERSE_DCT_H