Class PLIOCompress.ShortPLIOCompressor
java.lang.Object
nom.tam.fits.compression.algorithm.plio.PLIOCompress
nom.tam.fits.compression.algorithm.plio.PLIOCompress.ShortPLIOCompressor
- All Implemented Interfaces:
ICompressor<ShortBuffer>
- Enclosing class:
- PLIOCompress
public static class PLIOCompress.ShortPLIOCompressor
extends PLIOCompress
implements ICompressor<ShortBuffer>
-
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
(ShortBuffer buffer, ByteBuffer compressed) compress the buffer into the byte buffer.void
decompress
(ByteBuffer compressed, ShortBuffer 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
-
ShortPLIOCompressor
public ShortPLIOCompressor()
-
-
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<ShortBuffer>
- 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<ShortBuffer>
- 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
-