public class TLcdBCITileDecoder extends ALcdTileDecoder implements ILcdTileDecoder
ILcdTileDecoder
for BCI tiles.Constructor and Description |
---|
TLcdBCITileDecoder(ColorModel aColorModel)
Creates a new
TLcdBCITileDecoder object with a given color
model. |
TLcdBCITileDecoder(ColorModel aColorModel,
int[][] aDecompressionLookupTable)
Creates a new
TLcdBCITileDecoder object with a given color
model and a decompression lookup table. |
Modifier and Type | Method and Description |
---|---|
protected ILcdTileInfo |
readTileFromStream(InputStream aInputStream,
int aImageIndex,
int aSubTileWidth,
int aSubTileHeight,
int aSubTileRowIndex,
int aSubTileColumnIndex,
ILcdBuffer aBuffer)
Reads a sub-tile from an input stream.
|
getInputStreamFactory, isTraceOn, readTile, readTile, setClassTraceOn, setInputStreamFactory, setTraceOn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readTile, readTile
public TLcdBCITileDecoder(ColorModel aColorModel)
TLcdBCITileDecoder
object with a given color
model.aColorModel
- the color model to be used for decoded tiles.
The color model must be an 8-bit (image maps)
or 16-bit (elevation maps) IndexColorModel.public TLcdBCITileDecoder(ColorModel aColorModel, int[][] aDecompressionLookupTable)
TLcdBCITileDecoder
object with a given color
model and a decompression lookup table. The decompression lookup table is
required when the tiles are compressed using vector quantization. It is
the decoded version of the file "vqtable
" that can be
associated with a BCI raster.aColorModel
- the color model to be used for decoded
tiles. The color model must be an 8-bit
(image maps) or 16-bit (elevation maps)
IndexColorModel.aDecompressionLookupTable
- the decompression lookup table to be used
for decoded tiles (4 x 4096 elements).protected ILcdTileInfo readTileFromStream(InputStream aInputStream, int aImageIndex, int aSubTileWidth, int aSubTileHeight, int aSubTileRowIndex, int aSubTileColumnIndex, ILcdBuffer aBuffer) throws TLcdCodecException
ALcdTileDecoder
readTileFromStream
in class ALcdTileDecoder
aInputStream
- the input stream from which the tile data can be read.aImageIndex
- 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.aSubTileRowIndex
- the row number of the sub-tile to be decoded.aSubTileColumnIndex
- 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.