Any changes are to allow conversion to BMP
Dependents: Color_Targeting_Catapult
Fork of BaseJpegDecode by
inverseDCT.h@7:5010d93af0b6, 2014-04-30 (annotated)
- Committer:
- kylepost3
- Date:
- Wed Apr 30 14:17:05 2014 +0000
- Revision:
- 7:5010d93af0b6
- Parent:
- 6:d7ee458cacd1
Any changes are to allow conversion to BMP
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 |