Class RiceCompressor.IntRiceCompressor
- java.lang.Object
-
- nom.tam.fits.compression.algorithm.rice.RiceCompressor<java.nio.IntBuffer>
-
- nom.tam.fits.compression.algorithm.rice.RiceCompressor.IntRiceCompressor
-
- All Implemented Interfaces:
ICompressor<java.nio.IntBuffer>
- Enclosing class:
- RiceCompressor<T extends java.nio.Buffer>
public static class RiceCompressor.IntRiceCompressor extends RiceCompressor<java.nio.IntBuffer>
-
-
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
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.IntBufferpixelBuffer
-
Constructor Summary
Constructors Constructor Description IntRiceCompressor(RiceCompressOption option)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancompress(java.nio.IntBuffer buffer, java.nio.ByteBuffer writeBuffer)compress the buffer into the byte buffer.voiddecompress(java.nio.ByteBuffer readBuffer, java.nio.IntBuffer buffer)Decompress the byte buffer and restore the buffer from it, again enough space must already be allocated.protected intnextPixel()protected voidnextPixel(int pixel)-
Methods inherited from class nom.tam.fits.compression.algorithm.rice.RiceCompressor
compress, decompressBuffer
-
-
-
-
Constructor Detail
-
IntRiceCompressor
public IntRiceCompressor(RiceCompressOption option)
-
-
Method Detail
-
compress
public boolean compress(java.nio.IntBuffer buffer, java.nio.ByteBuffer writeBuffer)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
public void decompress(java.nio.ByteBuffer readBuffer, java.nio.IntBuffer buffer)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<java.nio.IntBuffer>
-
nextPixel
protected void nextPixel(int pixel)
- Specified by:
nextPixelin classRiceCompressor<java.nio.IntBuffer>
-
-