trunk 20080912
[gitenigma.git] / include / lib / codecs / picjpeg.h
blob7e0a0f9e3d5e4cbfbf1c8c46aa03a3e60577a588
1 #ifndef DISABLE_FILE
3 #ifndef __include_lib_codecs_picjpeg_h
4 #define __include_lib_codecs_picjpeg_h
6 #include <lib/base/eerror.h>
7 #include <jpeglib.h>
8 #include <lib/codecs/pic.h>
10 class ePictureDecoderJPEG: ePictureDecoder
12 jpeg_decompress_struct cinfo;
13 jpeg_error_mgr jerr;
14 JSAMPARRAY buffer;
15 int row_stride;
16 enum { stateHeader, stateStartDecompression, stateOutput, stateFinishDecompression, stateEnd } state;
17 public:
18 ePictureDecoderJPEG(eIOBuffer &input);
19 ~ePictureDecoderJPEG();
20 int decodeMore(int maxscanlines);
23 #endif
25 #endif // DISABLE_FILE