public class TLcdNITFUncompressedImageDecoder extends ALcdTileDecoder
ILcdTileDecoder
decodes uncompressed images in NITF files.
The image index passed when decoding an image is interpreted as the offset
of the image in the NITF file.
This class is not meant to be used directly or extended from.
This class is thread-safe.
Constructor and Description |
---|
TLcdNITFUncompressedImageDecoder(int aWidth,
int aHeight,
int aBandCount,
int aBitsPerPixelPerBand,
char aMode,
ColorModel aColorModel)
Deprecated.
this constructor does not allow adequate configuration of the decoder.
Its options are too limited and will most likely result in exceptions later on.
|
TLcdNITFUncompressedImageDecoder(int aWidth,
int aHeight,
List<ELcdNITFBandRepresentation> aBands,
int aBitsPerPixelPerBand,
char aMode,
ColorModel aColorModel)
Deprecated.
this constructor does not allow adequate configuration of the decoder.
Its options are too limited and will most likely result in exceptions later on.
|
Modifier and Type | Method and Description |
---|---|
protected ILcdTileInfo |
readTileFromStream(InputStream aInputStream,
int aOffset,
int aSubTileWidth,
int aSubTileHeight,
int aRowIndex,
int aColumnIndex,
ILcdBuffer aBuffer)
Reads a sub-tile from an input stream.
|
getInputStreamFactory, isTraceOn, readTile, readTile, setClassTraceOn, setInputStreamFactory, setTraceOn
@Deprecated public TLcdNITFUncompressedImageDecoder(int aWidth, int aHeight, int aBandCount, int aBitsPerPixelPerBand, char aMode, ColorModel aColorModel) throws IOException
aWidth
- the image width, expressed in pixels.aHeight
- the image height, expressed in pixels.aBandCount
- the number of color bands.aBitsPerPixelPerBand
- the number of bits per pixel and per color band (bpb).
Only multiples of 8 (whole bytes) are supported.aMode
- the interleaving mode ('P', 'R', 'B' or 'S').aColorModel
- the color model. Ignored.IOException
- for any IO exception.TLcdNITFUncompressedImageDecoder(int, int, java.util.List, int, char, java.awt.image.ColorModel)
@Deprecated public TLcdNITFUncompressedImageDecoder(int aWidth, int aHeight, List<ELcdNITFBandRepresentation> aBands, int aBitsPerPixelPerBand, char aMode, ColorModel aColorModel) throws IOException
aWidth
- the image width, expressed in pixels.aHeight
- the image height, expressed in pixels.aBands
- the color bands in the image.aBitsPerPixelPerBand
- the number of bits per pixel and per color band (bpb).
Only multiples of 8 (whole bytes) are supported.aMode
- the interleaving mode ('P', 'R', 'B' or 'S').aColorModel
- the color model. Ignored.IOException
- for any IO exception.protected ILcdTileInfo readTileFromStream(InputStream aInputStream, int aOffset, int aSubTileWidth, int aSubTileHeight, int aRowIndex, int aColumnIndex, ILcdBuffer aBuffer) throws TLcdCodecException
ALcdTileDecoder
readTileFromStream
in class ALcdTileDecoder
aInputStream
- the input stream from which the tile data can be read.aOffset
- the index of the tile in the given input stream (if applicable).aSubTileWidth
- the width of the sub-tiles, expressed in pixels.aSubTileHeight
- the height of the sub-tiles, expressed in pixels.aRowIndex
- the row number of the sub-tile to be decoded.aColumnIndex
- the column number of the sub-tile to be decoded.aBuffer
- the buffer in which the decoded bytes will be stored.ILcdTileInfo
information about the decoded tile.TLcdCodecException
- in case of decoding problems.