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<java.nio.IntBuffer>
- Enclosing class:
- PLIOCompress
public static class PLIOCompress.IntPLIOCompressor extends PLIOCompress implements ICompressor<java.nio.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
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.IntBufferpixelData
-
Constructor Summary
Constructors Constructor Description IntPLIOCompressor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancompress(java.nio.IntBuffer buffer, java.nio.ByteBuffer compressed)compress the buffer into the byte buffer.voiddecompress(java.nio.ByteBuffer compressed, java.nio.IntBuffer buffer)Decompress the byte buffer and restore the buffer from it, again enough space must already be allocated.protected intnextPixel()protected voidput(int index, int pixel)-
Methods inherited from class nom.tam.fits.compression.algorithm.plio.PLIOCompress
compress, decompress
-
-
-
-
Method Detail
-
compress
public boolean compress(java.nio.IntBuffer buffer, java.nio.ByteBuffer compressed)Description copied from interface:ICompressorcompress the buffer into the byte buffer. Attention enough space must already be allocated.- Specified by:
compressin interfaceICompressor<java.nio.IntBuffer>- Parameters:
buffer- the buffer to compress.compressed- the compressed data- Returns:
- true if the compression succeeded.
-
decompress
public void decompress(java.nio.ByteBuffer compressed, 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.- Specified by:
decompressin interfaceICompressor<java.nio.IntBuffer>- Parameters:
compressed- the compressed databuffer- the buffer to fill with the uncompressed data.
-
nextPixel
protected int nextPixel()
- Specified by:
nextPixelin classPLIOCompress
-
put
protected void put(int index, int pixel)- Specified by:
putin classPLIOCompress
-
-