Class PLIOCompress.IntPLIOCompressor
java.lang.Object
nom.tam.fits.compression.algorithm.plio.PLIOCompress
nom.tam.fits.compression.algorithm.plio.PLIOCompress.IntPLIOCompressor
- All Implemented Interfaces:
ICompressor<IntBuffer>
- Enclosing class:
- PLIOCompress
public static class PLIOCompress.IntPLIOCompressor
extends PLIOCompress
implements ICompressor<IntBuffer>
Attention int values are limited to 24 bits!
-
Nested Class Summary
Nested classes/interfaces inherited from class nom.tam.fits.compression.algorithm.plio.PLIOCompress
PLIOCompress.BytePLIOCompressor, PLIOCompress.IntPLIOCompressor, PLIOCompress.ShortPLIOCompressor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
compress
(IntBuffer buffer, ByteBuffer compressed) compress the buffer into the byte buffer.void
decompress
(ByteBuffer compressed, IntBuffer buffer) Decompress the byte buffer and restore the buffer from it, again enough space must already be allocated.protected int
protected void
put
(int index, int pixel) Methods inherited from class nom.tam.fits.compression.algorithm.plio.PLIOCompress
compress, decompress
-
Constructor Details
-
IntPLIOCompressor
public IntPLIOCompressor()
-
-
Method Details
-
compress
Description copied from interface:ICompressor
compress the buffer into the byte buffer. Attention enough space must already be allocated.- Specified by:
compress
in interfaceICompressor<IntBuffer>
- Parameters:
buffer
- the buffer to compress.compressed
- 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.- Specified by:
decompress
in interfaceICompressor<IntBuffer>
- Parameters:
compressed
- the compressed databuffer
- the buffer to fill with the uncompressed data.
-
nextPixel
protected int nextPixel()- Specified by:
nextPixel
in classPLIOCompress
-
put
protected void put(int index, int pixel) - Specified by:
put
in classPLIOCompress
-