test
Dependencies: Nanopb iSerial mbed BaseJpegDecode FatFileSystem SDFileSystem RingBuffer Camera_LS_Y201
extlib/BaseJpegDecode/inverseDCT.h@0:d69efd0ee139, 2014-09-18 (annotated)
- Committer:
- cgraham
- Date:
- Thu Sep 18 15:21:47 2014 +0000
- Revision:
- 0:d69efd0ee139
test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
cgraham | 0:d69efd0ee139 | 1 | // inverseDCT.h 2013/1/28 |
cgraham | 0:d69efd0ee139 | 2 | #ifndef INVERSE_DCT_H |
cgraham | 0:d69efd0ee139 | 3 | #define INVERSE_DCT_H |
cgraham | 0:d69efd0ee139 | 4 | |
cgraham | 0:d69efd0ee139 | 5 | #define USE_IDCT_AAN |
cgraham | 0:d69efd0ee139 | 6 | //#define USE_IDCT_TABLE |
cgraham | 0:d69efd0ee139 | 7 | |
cgraham | 0:d69efd0ee139 | 8 | #ifdef USE_IDCT_AAN |
cgraham | 0:d69efd0ee139 | 9 | #include "aanIDCT.h" |
cgraham | 0:d69efd0ee139 | 10 | class inverseDCT { |
cgraham | 0:d69efd0ee139 | 11 | public: |
cgraham | 0:d69efd0ee139 | 12 | void inputBLOCK(int mcu, int block, int scan, int value); |
cgraham | 0:d69efd0ee139 | 13 | virtual void outputBLOCK(int mcu, int block, int8_t * values) = 0; |
cgraham | 0:d69efd0ee139 | 14 | private: |
cgraham | 0:d69efd0ee139 | 15 | int16_t m_s[64]; |
cgraham | 0:d69efd0ee139 | 16 | aanIDCT idct; |
cgraham | 0:d69efd0ee139 | 17 | }; |
cgraham | 0:d69efd0ee139 | 18 | #endif // USE_IDCT_AAN |
cgraham | 0:d69efd0ee139 | 19 | |
cgraham | 0:d69efd0ee139 | 20 | #ifdef USE_IDCT_TABLE |
cgraham | 0:d69efd0ee139 | 21 | class inverseDCT { |
cgraham | 0:d69efd0ee139 | 22 | public: |
cgraham | 0:d69efd0ee139 | 23 | void inputBLOCK(int mcu, int block, int scan, int value); |
cgraham | 0:d69efd0ee139 | 24 | virtual void outputBLOCK(int mcu, int block, int8_t* values) = 0; |
cgraham | 0:d69efd0ee139 | 25 | private: |
cgraham | 0:d69efd0ee139 | 26 | int16_t m_sum[64]; |
cgraham | 0:d69efd0ee139 | 27 | }; |
cgraham | 0:d69efd0ee139 | 28 | #endif // USE_IDCT_TABLE |
cgraham | 0:d69efd0ee139 | 29 | |
cgraham | 0:d69efd0ee139 | 30 | #endif // INVERSE_DCT_H |