Class XTIFFFaxTileCodec

java.lang.Object
org.libtiff.jai.codec.XTIFFTileCodecImpl
org.libtiff.jai.codecimpl.XTIFFFaxTileCodec
All Implemented Interfaces:
XTIFFTileCodec

public class XTIFFFaxTileCodec extends XTIFFTileCodecImpl
This codec encapsulates all the logic for the TIFF "lzw" decoding codec algorithm.
  • Constructor Details

    • XTIFFFaxTileCodec

      public XTIFFFaxTileCodec()
      Public constructor
  • Method Details

    • create

      public XTIFFTileCodec create()
      Creation method
      Specified by:
      create in class XTIFFTileCodecImpl
    • canEncode

      public boolean canEncode()
      Description copied from class: XTIFFTileCodecImpl
      Indicate whether this codec can encode data. Override to return true only if your codec implments encoding.
      Overrides:
      canEncode in class XTIFFTileCodecImpl
    • register

      public void register()
      Registration method
      Specified by:
      register in interface XTIFFTileCodec
      Specified by:
      register in class XTIFFTileCodecImpl
      See Also:
    • initializeDecoding

      public void initializeDecoding()
      The initialization method particular to Fax decoding.
      Overrides:
      initializeDecoding in class XTIFFTileCodecImpl
    • decodeTilePixels

      public void decodeTilePixels(byte[] input, Rectangle newRect, byte[] bdata)
      Decode a rectangle of pixels
      Specified by:
      decodeTilePixels in class XTIFFTileCodecImpl
      Parameters:
      input - the byte array of compressed input data
      newRect - the rectangular shape of the target pixels
      bdata - the target decompressed pixels.
    • decodeTilePixels

      public void decodeTilePixels(byte[] input, Rectangle newRect, short[] sdata)
      Decode a rectangle of pixels
      Specified by:
      decodeTilePixels in class XTIFFTileCodecImpl
      Parameters:
      input - the byte array of compressed input data
      newRect - the rectangular shape of the target pixels
      sdata - the target decompressed pixels.