Isis Developer Reference
|
JPEG2000 decoder class. More...
#include <JP2Decoder.h>
Public Member Functions | |
JP2Decoder (const QString &jp2file) | |
Constructs a JPEG2000 decoder object. More... | |
~JP2Decoder () | |
JP2Decoder destructor. More... | |
JP2Error * | kakadu_error () const |
void | OpenFile () |
Open the JPEG2000 file. More... | |
int | GetSampleDimension () const |
int | GetLineDimension () const |
int | GetBandDimension () const |
int | GetPixelBytes () const |
bool | GetSignedData () const |
void | Read (unsigned char **inbuf) |
Read data from JP2 file containing 8-bit data. More... | |
void | Read (short int **inbuf) |
Read data from JP2 file containing 16-bit data. More... | |
Static Public Member Functions | |
static bool | IsJP2 (QString filename) |
JPEG2000 decoder class.
This class is used to decode a JPEG2000 image.
Here is an example of how to use JP2Decoder
If you would like to see JP2Decoder being used in implementation, see std2isis.cpp or for a class that implements JP2Decoder, see ProcessImport
Isis::JP2Decoder::JP2Decoder | ( | const QString & | jp2file | ) |
Constructs a JPEG2000 decoder object.
jp2file | The name of the JP2 file that needs to be decoded. |
References _FILEINFO_.
Isis::JP2Decoder::~JP2Decoder | ( | ) |
JP2Decoder destructor.
|
inline |
|
inline |
Referenced by Isis::JP2Importer::JP2Importer(), and Isis::ProcessImport::ProcessJp2().
|
inline |
Referenced by Isis::JP2Importer::JP2Importer().
|
inline |
Referenced by Isis::JP2Importer::JP2Importer(), and Isis::ProcessImport::ProcessJp2().
|
inline |
Referenced by Isis::JP2Importer::JP2Importer().
|
static |
Referenced by Isis::ImageImporter::fromFileName().
|
inline |
void Isis::JP2Decoder::OpenFile | ( | ) |
Open the JPEG2000 file.
References _FILEINFO_, MAX_STRIPE_HEIGHT, and MIN_STRIPE_HEIGHT.
Referenced by Isis::JP2Importer::JP2Importer(), and Isis::ProcessImport::ProcessJp2().
void Isis::JP2Decoder::Read | ( | short int ** | inbuf | ) |
Read data from JP2 file containing 16-bit data.
inbuf | The array of pointers to byte buffers that will be used to read in the image data. One byte buffer is required for each band in the image. Kakadu reads in a BIL manner. It is up to the calling routine to do the casting necessary to convert the byte data to the actual pixel type (UnsignedByte, UnsignedWord, SignedWord). |
void Isis::JP2Decoder::Read | ( | unsigned char ** | inbuf | ) |
Read data from JP2 file containing 8-bit data.
inbuf | The array of pointers to byte buffers that will be used to read in the image data. One byte buffer is required for each band in the image. Kakadu reads in a BIL manner. It is up to the calling routine to do the casting necessary to convert the byte data to the actual pixel type (UnsignedByte, UnsignedWord, SignedWord). |
Referenced by Isis::ProcessImport::ProcessJp2(), and Isis::JP2Importer::updateRawBuffer().