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@6:d7ee458cacd1, 2013-02-02 (annotated)
- Committer:
- va009039
- Date:
- Sat Feb 02 01:18:15 2013 +0000
- Revision:
- 6:d7ee458cacd1
- Parent:
- 3:a7547692071d
aanIDCT add range_limit()
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
va009039 | 6:d7ee458cacd1 | 1 | // inverseDCT.h 2013/1/28 |
va009039 | 2:5b1dd4e34857 | 2 | #ifndef INVERSE_DCT_H |
va009039 | 2:5b1dd4e34857 | 3 | #define INVERSE_DCT_H |
va009039 | 2:5b1dd4e34857 | 4 | |
va009039 | 3:a7547692071d | 5 | #define USE_IDCT_AAN |
va009039 | 3:a7547692071d | 6 | //#define USE_IDCT_TABLE |
va009039 | 2:5b1dd4e34857 | 7 | |
va009039 | 3:a7547692071d | 8 | #ifdef USE_IDCT_AAN |
va009039 | 3:a7547692071d | 9 | #include "aanIDCT.h" |
va009039 | 2:5b1dd4e34857 | 10 | class inverseDCT { |
va009039 | 2:5b1dd4e34857 | 11 | public: |
va009039 | 2:5b1dd4e34857 | 12 | void inputBLOCK(int mcu, int block, int scan, int value); |
va009039 | 3:a7547692071d | 13 | virtual void outputBLOCK(int mcu, int block, int8_t * values) = 0; |
va009039 | 3:a7547692071d | 14 | private: |
va009039 | 3:a7547692071d | 15 | int16_t m_s[64]; |
va009039 | 3:a7547692071d | 16 | aanIDCT idct; |
va009039 | 3:a7547692071d | 17 | }; |
va009039 | 3:a7547692071d | 18 | #endif // USE_IDCT_AAN |
va009039 | 3:a7547692071d | 19 | |
va009039 | 3:a7547692071d | 20 | #ifdef USE_IDCT_TABLE |
va009039 | 3:a7547692071d | 21 | class inverseDCT { |
va009039 | 3:a7547692071d | 22 | public: |
va009039 | 3:a7547692071d | 23 | void inputBLOCK(int mcu, int block, int scan, int value); |
va009039 | 3:a7547692071d | 24 | virtual void outputBLOCK(int mcu, int block, int8_t* values) = 0; |
va009039 | 2:5b1dd4e34857 | 25 | private: |
va009039 | 2:5b1dd4e34857 | 26 | int16_t m_sum[64]; |
va009039 | 2:5b1dd4e34857 | 27 | }; |
va009039 | 3:a7547692071d | 28 | #endif // USE_IDCT_TABLE |
va009039 | 3:a7547692071d | 29 | |
va009039 | 3:a7547692071d | 30 | #endif // INVERSE_DCT_H |