Package com.luciad.format.bci
Class TLcdBCITileDecoder
java.lang.Object
com.luciad.format.raster.ALcdTileDecoder
com.luciad.format.bci.TLcdBCITileDecoder
- All Implemented Interfaces:
ILcdTileDecoder
,ILcdInputStreamFactoryCapable
This class is an
ILcdTileDecoder
for BCI tiles.- Since:
- 7.0.17
-
Constructor Summary
ConstructorDescriptionTLcdBCITileDecoder
(ColorModel aColorModel) Creates a newTLcdBCITileDecoder
object with a given color model.TLcdBCITileDecoder
(ColorModel aColorModel, int[][] aDecompressionLookupTable) Creates a newTLcdBCITileDecoder
object with a given color model and a decompression lookup table. -
Method Summary
Modifier and TypeMethodDescriptionprotected ILcdTileInfo
readTileFromStream
(InputStream aInputStream, int aImageIndex, int aSubTileWidth, int aSubTileHeight, int aSubTileRowIndex, int aSubTileColumnIndex, ILcdBuffer aBuffer) Reads a sub-tile from an input stream.Methods inherited from class com.luciad.format.raster.ALcdTileDecoder
getInputStreamFactory, isTraceOn, readTile, readTile, setClassTraceOn, setInputStreamFactory, setTraceOn
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.format.raster.ILcdTileDecoder
readTile, readTile
-
Constructor Details
-
TLcdBCITileDecoder
Creates a newTLcdBCITileDecoder
object with a given color model.- Parameters:
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.
-
TLcdBCITileDecoder
Creates a newTLcdBCITileDecoder
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.- Parameters:
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).
-
-
Method Details
-
readTileFromStream
protected ILcdTileInfo readTileFromStream(InputStream aInputStream, int aImageIndex, int aSubTileWidth, int aSubTileHeight, int aSubTileRowIndex, int aSubTileColumnIndex, ILcdBuffer aBuffer) throws TLcdCodecException Description copied from class:ALcdTileDecoder
Reads a sub-tile from an input stream.- Specified by:
readTileFromStream
in classALcdTileDecoder
- Parameters:
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.- Returns:
ILcdTileInfo
information about the decoded tile.- Throws:
TLcdCodecException
- in case of decoding problems.
-