Class QuantizeProcessor.DoubleQuantCompressor

java.lang.Object
nom.tam.fits.compression.algorithm.quant.QuantizeProcessor
nom.tam.fits.compression.algorithm.quant.QuantizeProcessor.DoubleQuantCompressor
All Implemented Interfaces:
ICompressor<DoubleBuffer>
Direct Known Subclasses:
HCompressor.DoubleHCompressor, RiceCompressor.DoubleRiceCompressor
Enclosing class:
QuantizeProcessor

public static class QuantizeProcessor.DoubleQuantCompressor extends QuantizeProcessor implements ICompressor<DoubleBuffer>
  • Constructor Details

  • Method Details

    • compress

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

      public void decompress(ByteBuffer compressed, DoubleBuffer 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<DoubleBuffer>
      Parameters:
      compressed - the compressed data
      buffer - the buffer to fill with the uncompressed data.