22 #ifndef _JPEGCOMPRESSOR_H
23 #define _JPEGCOMPRESSOR_H
45 struct jpeg_destination_mgr pub;
66 unsigned int width, height, channels;
72 unsigned char header[1024];
78 unsigned int header_size;
81 struct jpeg_compress_struct cinfo;
82 struct jpeg_error_mgr jerr;
97 if( factor < 0 ) Q = 0;
98 else if( factor > 100 ) Q = 100;
120 unsigned int CompressStrip(
unsigned char* s,
unsigned int tile_height )
throw (std::string);
123 unsigned int Finish() throw (std::
string);