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>
-
Nested Class Summary
Nested classes/interfaces inherited from class nom.tam.fits.compression.algorithm.quant.QuantizeProcessor
QuantizeProcessor.DoubleQuantCompressor, QuantizeProcessor.FloatQuantCompressor -
Field Summary
Fields inherited from class nom.tam.fits.compression.algorithm.quant.QuantizeProcessor
quantizeOption -
Constructor Summary
ConstructorsConstructorDescriptionDoubleQuantCompressor(QuantizeOption quantizeOption, ICompressor<IntBuffer> compressor) -
Method Summary
Modifier and TypeMethodDescriptionbooleancompress(DoubleBuffer buffer, ByteBuffer compressed) compress the buffer into the byte buffer.voiddecompress(ByteBuffer compressed, DoubleBuffer buffer) Decompress the byte buffer and restore the buffer from it, again enough space must already be allocated.Methods inherited from class nom.tam.fits.compression.algorithm.quant.QuantizeProcessor
getQuantize, quantize, quantize, unquantize
-
Constructor Details
-
DoubleQuantCompressor
-
-
Method Details
-
compress
Description copied from interface:ICompressorcompress the buffer into the byte buffer. Attention enough space must already be allocated.- Specified by:
compressin interfaceICompressor<DoubleBuffer>- Parameters:
buffer- the buffer to compress.compressed- the compressed data- Returns:
- true if the compression succeeded.
-
decompress
Description copied from interface:ICompressorDecompress the byte buffer and restore the buffer from it, again enough space must already be allocated.- Specified by:
decompressin interfaceICompressor<DoubleBuffer>- Parameters:
compressed- the compressed databuffer- the buffer to fill with the uncompressed data.
-