- void Print( std::ostream &os = std::cout, std::string indent = "" );
- void DecompressJPEGFramesFromFile(std::ifstream *fp, uint8_t *buffer, int nBits);
- void DecompressJPEGSingleFrameFragmentsFromFile(JOCTET *buffer, size_t totalLength, uint8_t* raw, int nBits);
- void DecompressJPEGFragmentedFramesFromFile(JOCTET *buffer, uint8_t* raw, int nBits, size_t &howManyRead, size_t &howManyWritten, size_t totalLength);
+ void Print( std::ostream &os = std::cout, std::string const &indent = "" );
+ void DecompressJPEGFramesFromFile(std::ifstream *fp,
+ uint8_t *buffer, int nBits,
+ int &statesuspension);
+
+ bool ReadJPEGFile8 (std::ifstream *fp, void *image_buffer, int &statesuspension );
+ bool ReadJPEGFile12 (std::ifstream *fp, void *image_buffer, int &statesuspension );
+ bool ReadJPEGFile16 (std::ifstream *fp, void *image_buffer, int &statesuspension );
+
+ void SetLength(uint32_t length) { Length = length; }
+ uint32_t GetLength() { return Length; }
+ void SetOffset(uint32_t offset) { Offset = offset; }
+ uint32_t GetOffset() { return Offset; }
+ uint8_t *GetImage() { return pImage; }