Class TLcdNITFUncompressedImageDecoder

java.lang.Object
com.luciad.format.raster.ALcdTileDecoder
com.luciad.format.nitf.TLcdNITFUncompressedImageDecoder
All Implemented Interfaces:
ILcdTileDecoder, ILcdInputStreamFactoryCapable

public class TLcdNITFUncompressedImageDecoder extends ALcdTileDecoder
This 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.

Since:
3.0
  • Constructor Details

    • TLcdNITFUncompressedImageDecoder

      @Deprecated public TLcdNITFUncompressedImageDecoder(int aWidth, int aHeight, int aBandCount, int aBitsPerPixelPerBand, char aMode, ColorModel aColorModel) throws IOException
      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.
      Creates a new TLcdNITFUncompressedImageDecoder. The image bands are inferred from the band count:
      • 1 band: M
      • 3 bands: R, G, B
      • 4 bands: R, G, B, M
      • 5 bands: R, G, B, M, LU
      • other combinations cannot be inferred automatically and will throw an exception
      The pixel value type defaults to signed integer (SI). Tile sizes are determined at decode-time.
      Parameters:
      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.
      Throws:
      IOException - for any IO exception.
      See Also:
    • TLcdNITFUncompressedImageDecoder

      @Deprecated public TLcdNITFUncompressedImageDecoder(int aWidth, int aHeight, List<ELcdNITFBandRepresentation> aBands, int aBitsPerPixelPerBand, char aMode, ColorModel aColorModel) throws IOException
      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.
      Creates a new TLcdNITFUncompressedImageDecoder. The pixel value type defaults to signed integer (SI). Tile sizes are determined at decode-time.
      Parameters:
      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.
      Throws:
      IOException - for any IO exception.
  • Method Details

    • readTileFromStream

      protected ILcdTileInfo readTileFromStream(InputStream aInputStream, int aOffset, int aSubTileWidth, int aSubTileHeight, int aRowIndex, int aColumnIndex, ILcdBuffer aBuffer) throws TLcdCodecException
      Description copied from class: ALcdTileDecoder
      Reads a sub-tile from an input stream.
      Specified by:
      readTileFromStream in class ALcdTileDecoder
      Parameters:
      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.
      Returns:
      ILcdTileInfo information about the decoded tile.
      Throws:
      TLcdCodecException - in case of decoding problems.