29 #include "kdu_stripe_decompressor.h"
32 #define MIN_STRIPE_HEIGHT 256
33 #define MAX_STRIPE_HEIGHT 8192
106 inline int GetSampleDimension()
const {
111 inline int GetLineDimension()
const {
116 inline int GetBandDimension()
const {
121 inline int GetPixelBytes()
const {
126 inline bool GetSignedData()
const {
131 void Read(
unsigned char **inbuf);
134 void Read(
short int **inbuf);
136 static bool IsJP2(QString filename);
147 unsigned int p_resolutionLevel;
148 unsigned int p_highestResLevel;
150 int *p_maxStripeHeights;
156 int *p_stripeHeights;
160 unsigned int p_pixelBits;
164 kdu_dims p_imageDims;
165 jp2_family_src *JP2_Stream;
166 jp2_source *JP2_Source;
167 kdu_codestream *JPEG2000_Codestream;
168 kdu_stripe_decompressor p_decompressor;
~JP2Decoder()
JP2Decoder destructor.
bool p_signedData
Set to true if data in JP2 file is signed.
unsigned int p_numBands
Number of bands in JP2 file.
Kakadu error messaging class.
QString p_jp2File
Input file name.
JP2Error * Kakadu_Error
JP2 Error handling facility.
void Read(unsigned char **inbuf)
Read data from JP2 file containing 8-bit data.
unsigned int p_numSamples
Number of samples in JP2 file.
unsigned int p_pixelBytes
Number of bytes per pixel in JP2 file.
JP2Decoder(const QString &jp2file)
Constructs a JPEG2000 decoder object.
void SetResolutionAndRegion()
Sets resolution of data that will be decompressed. <Also determines th...
unsigned int p_numLines
Number of lines in JP2 file.
void OpenFile()
Open the JPEG2000 file.