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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
compress
(IntBuffer buffer, ByteBuffer writeBuffer) compress the buffer into the byte buffer.void
decompress
(ByteBuffer readBuffer, IntBuffer buffer) Decompress the byte buffer and restore the buffer from it, again enough space must already be allocated.protected int
protected void
nextPixel
(int pixel) Methods inherited from class nom.tam.fits.compression.algorithm.rice.RiceCompressor
compress, decompressBuffer
-
Constructor Details
-
IntRiceCompressor
-
-
Method Details
-
compress
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
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 databuffer
- the buffer to fill with the uncompressed data.
-
nextPixel
protected int nextPixel()- Specified by:
nextPixel
in classRiceCompressor<IntBuffer>
-
nextPixel
protected void nextPixel(int pixel) - Specified by:
nextPixel
in classRiceCompressor<IntBuffer>
-