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>
-
Nested Class Summary
Nested classes/interfaces inherited from class nom.tam.fits.compression.algorithm.rice.RiceCompressor
RiceCompressor.ByteRiceCompressor, RiceCompressor.DoubleRiceCompressor, RiceCompressor.FloatRiceCompressor, RiceCompressor.IntRiceCompressor, RiceCompressor.ShortRiceCompressor -
Constructor Summary
ConstructorsConstructorDescriptionRice compression of 32-bit integer streams with the default block size of 32.IntRiceCompressor(RiceCompressOption option) -
Method Summary
Modifier and TypeMethodDescriptionbooleancompress(IntBuffer buffer, ByteBuffer writeBuffer) compress the buffer into the byte buffer.voiddecompress(ByteBuffer readBuffer, IntBuffer buffer) Decompress the byte buffer and restore the buffer from it, again enough space must already be allocated.protected intprotected voidnextPixel(int pixel) Methods inherited from class nom.tam.fits.compression.algorithm.rice.RiceCompressor
compress, decompressBuffer
-
Constructor Details
-
IntRiceCompressor
public IntRiceCompressor()Rice compression of 32-bit integer streams with the default block size of 32.- Since:
- 1.19.1
-
IntRiceCompressor
-
-
Method Details
-
compress
Description copied from interface:ICompressorcompress 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
Description copied from interface:ICompressorDecompress the byte buffer and restore the buffer from it, again enough space must already be allocated.- Parameters:
readBuffer- the compressed databuffer- the buffer to fill with the uncompressed data.
-
nextPixel
protected int nextPixel()- Specified by:
nextPixelin classRiceCompressor<IntBuffer>
-
nextPixel
protected void nextPixel(int pixel) - Specified by:
nextPixelin classRiceCompressor<IntBuffer>
-