Class PLIOCompress.IntPLIOCompressor

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

public static class PLIOCompress.IntPLIOCompressor extends PLIOCompress implements ICompressor<IntBuffer>
Attention int values are limited to 24 bits!
  • Constructor Details

    • IntPLIOCompressor

      public IntPLIOCompressor()
  • Method Details

    • compress

      public boolean compress(IntBuffer 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<IntBuffer>
      Parameters:
      buffer - the buffer to compress.
      compressed - the compressed data
      Returns:
      true if the compression succeeded.
    • decompress

      public void decompress(ByteBuffer compressed, IntBuffer 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<IntBuffer>
      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