39#include <kdu_stripe_decompressor.h>
45#if KDU_MAJOR_VERSION > 7 || (KDU_MAJOR_VERSION == 7 && KDU_MINOR_VERSION >= 5)
46using namespace kdu_supp;
57 kdu_codestream codestream;
60 kdu_compressed_source *input;
69 jpx_codestream_source jpx_stream;
72 kdu_stripe_decompressor decompressor;
86 void process(
unsigned int r,
int l,
int x,
int y,
unsigned int w,
unsigned int h,
void* d );
91 void delete_buffer(
void* b );
98 tile_widths.push_back(TILESIZE); tile_heights.push_back(TILESIZE); input = NULL;
105 tile_widths.push_back(TILESIZE); tile_heights.push_back(TILESIZE); input = NULL;
117 tile_widths.push_back(TILESIZE); tile_heights.push_back(TILESIZE); input = NULL;
124 if(
this != &image ){
176 RawTile getRegion(
int ha,
int va,
unsigned int r,
int l,
int x,
int y,
unsigned int w,
unsigned int h );
Main class to handle the pyramidal image source.
Definition: IIPImage.h:76
IIPImage & operator=(IIPImage image)
Assignment operator.
Definition: IIPImage.h:457
std::vector< unsigned int > tile_widths
The tile dimensions for each resolution.
Definition: IIPImage.h:139
Image class for Kakadu JPEG2000 Images: Inherits from IIPImage. Uses the Kakadu library.
Definition: KakaduImage.h:52
KDU_READMODE kdu_readmode
Read-mode.
Definition: KakaduImage.h:185
KakaduImage()
Constructor.
Definition: KakaduImage.h:97
bool regionDecoding()
Return whether this image type directly handles region decoding.
Definition: KakaduImage.h:153
KakaduImage(const std::string &path)
Constructor.
Definition: KakaduImage.h:104
static void setupLogging()
Overloaded static function for seting up logging for codec library.
void openImage()
Overloaded function for opening a TIFF image.
void loadImageInfo(int x, int y)
Overloaded function for loading TIFF image information.
~KakaduImage()
Destructor.
Definition: KakaduImage.h:133
RawTile getTile(int x, int y, unsigned int r, int l, unsigned int t)
Overloaded function for getting a particular tile.
void closeImage()
Overloaded function for closing a JPEG2000 image.
KDU_READMODE
Read-mode types.
Definition: KakaduImage.h:179
@ KDU_FUSSY
Fussy mode.
Definition: KakaduImage.h:180
@ KDU_RESILIENT
Reslient mode for damaged JP2 streams.
Definition: KakaduImage.h:181
@ KDU_FAST
Default fast mode.
Definition: KakaduImage.h:179
KakaduImage(const KakaduImage &image)
Copy Constructor.
Definition: KakaduImage.h:111
KakaduImage(const IIPImage &image)
Constructor from IIPImage object.
Definition: KakaduImage.h:116
KakaduImage & operator=(KakaduImage image)
Assignment Operator.
Definition: KakaduImage.h:123
RawTile getRegion(int ha, int va, unsigned int r, int l, int x, int y, unsigned int w, unsigned int h)
Overloaded function for returning a region for a given angle and resolution.
Class to represent a single image tile.
Definition: RawTile.h:47