Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BaseJpegDecode Terminal BaseUsbHost mbed mbed-rtos
Fork of BaseJpegDecode by
Diff: BaseJpegDecode.h
- Revision:
- 0:7121d9fb45f4
diff -r 000000000000 -r 7121d9fb45f4 BaseJpegDecode.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/BaseJpegDecode.h Sun Oct 07 12:03:40 2012 +0000
@@ -0,0 +1,33 @@
+#ifndef BASE_JPEG_DECODE_H
+#define BASE_JPEG_DECODE_H
+#include "HuffmanDecode.h"
+#include "BitPattern.h"
+
+#define JPEG_MCU_YBLOCKS 2
+
+class BaseJpegDecode {
+public:
+ BaseJpegDecode();
+ void clear();
+ void input(uint8_t c);
+ void input(uint8_t* buf, int len);
+ virtual void outputDC(int mcu, int block, int value) = 0;
+ virtual void outputAC(int mcu, int block, int scan, int value) = 0;
+ virtual void outputMARK(uint8_t c) = 0;
+private:
+ void inputScan(uint8_t c);
+ void restart();
+protected:
+ int m_seq;
+ int m_mcu;
+ int m_block;
+ int m_scan;
+ Huff* m_huff;
+ int m_old_DC_value[2];
+ BitPattern m_bitpat;
+ int m_skip;
+ uint8_t m_mark;
+ HuffmanDecode* pHD;
+ int m_yblocks;
+};
+#endif // BASE_JPEG_DECODE_H
