Class RiceCompressor.IntRiceCompressor

java.lang.Object
nom.tam.fits.compression.algorithm.rice.RiceCompressor<IntBuffer>
nom.tam.fits.compression.algorithm.rice.RiceCompressor.IntRiceCompressor
All Implemented Interfaces:
ICompressor<IntBuffer>
Enclosing class:
RiceCompressor<T extends Buffer>

public static class RiceCompressor.IntRiceCompressor extends RiceCompressor<IntBuffer>
  • Constructor Details

  • Method Details

    • compress

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

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

      protected int nextPixel()
      Specified by:
      nextPixel in class RiceCompressor<IntBuffer>
    • nextPixel

      protected void nextPixel(int pixel)
      Specified by:
      nextPixel in class RiceCompressor<IntBuffer>