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:
- 2012-10-30
- Revision:
- 2:5b1dd4e34857
- Child:
- 3:a7547692071d
File content as of revision 2:5b1dd4e34857:
#ifndef INVERSE_DCT_H #define INVERSE_DCT_H #define DCT_USE_INT 1 #ifdef DCT_USE_INT class inverseDCT { public: inverseDCT(); void inputBLOCK(int mcu, int block, int scan, int value); virtual void outputBLOCK(int mcu, int block, unsigned char* values) = 0; private: int16_t m_sum[64]; int8_t m_cosxu[64]; int8_t m_cucv[64]; }; #else class inverseDCT { public: inverseDCT(); void input(int mcu, int block, int scan, int value); int m_result[64]; private: int m_sum[64]; void calc(int mcu, int block, int s[]); int m_s[64]; void outputDot(int mcu, int block, int x, int y, int value); }; #endif #endif // INVERSE_DCT_H