31 #ifndef _KAKADUIMAGE_H
32 #define _KAKADUIMAGE_H
40 #include <kdu_stripe_decompressor.h>
47 extern std::ofstream logfile;
58 { this->stream = stream; }
59 void put_text(
const char *
string)
60 { logfile << string; }
61 void flush(
bool end_of_message=
false){
63 if( end_of_message )
throw 1;
74 static kdu_message_formatter pretty_cout(&cout_message);
75 static kdu_message_formatter pretty_cerr(&cerr_message);
87 kdu_codestream codestream;
90 kdu_compressed_source *input;
99 jpx_codestream_source jpx_stream;
102 kdu_stripe_decompressor decompressor;
108 unsigned int max_layers;
111 unsigned int virtual_levels;
123 void process(
unsigned int r,
int l,
int x,
int y,
unsigned int w,
unsigned int h,
void* d )
throw (std::string);
131 tile_width = TILESIZE; tile_height = TILESIZE;
139 tile_width = TILESIZE; tile_height = TILESIZE;
147 tile_width = TILESIZE; tile_height = TILESIZE;
174 RawTile getTile(
int x,
int y,
unsigned int r,
int l,
unsigned int t ) throw (std::
string);
188 void getRegion(
int ha,
int va,
unsigned int r,
int l,
int x,
int y,
unsigned int w,
unsigned int h,
unsigned char* b ) throw (std::
string);