Class PLIOCompress.ShortPLIOCompressor

java.lang.Object
nom.tam.fits.compression.algorithm.plio.PLIOCompress
nom.tam.fits.compression.algorithm.plio.PLIOCompress.ShortPLIOCompressor
All Implemented Interfaces:
ICompressor<ShortBuffer>
Enclosing class:
PLIOCompress

public static class PLIOCompress.ShortPLIOCompressor extends PLIOCompress implements ICompressor<ShortBuffer>
  • Constructor Details

    • ShortPLIOCompressor

      public ShortPLIOCompressor()
  • Method Details

    • compress

      public boolean compress(ShortBuffer buffer, ByteBuffer compressed)
      Description copied from interface: ICompressor
      compress the buffer into the byte buffer. Attention enough space must already be allocated.
      Specified by:
      compress in interface ICompressor<ShortBuffer>
      Parameters:
      buffer - the buffer to compress.
      compressed - the compressed data
      Returns:
      true if the compression succeeded.
    • decompress

      public void decompress(ByteBuffer compressed, ShortBuffer buffer)
      Description copied from interface: ICompressor
      Decompress the byte buffer and restore the buffer from it, again enough space must already be allocated.
      Specified by:
      decompress in interface ICompressor<ShortBuffer>
      Parameters:
      compressed - the compressed data
      buffer - the buffer to fill with the uncompressed data.
    • nextPixel

      protected int nextPixel()
      Specified by:
      nextPixel in class PLIOCompress
    • put

      protected void put(int index, int pixel)
      Specified by:
      put in class PLIOCompress