public static class PLIOCompress.IntPLIOCompressor extends PLIOCompress implements ICompressor<java.nio.IntBuffer>
PLIOCompress.BytePLIOCompressor, PLIOCompress.IntPLIOCompressor, PLIOCompress.ShortPLIOCompressor| Constructor and Description |
|---|
IntPLIOCompressor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compress(java.nio.IntBuffer buffer,
java.nio.ByteBuffer compressed)
compress the buffer into the byte buffer.
|
void |
decompress(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 int |
nextPixel() |
protected void |
put(int index,
int pixel) |
compress, decompresspublic boolean compress(java.nio.IntBuffer buffer,
java.nio.ByteBuffer compressed)
ICompressorcompress in interface ICompressor<java.nio.IntBuffer>buffer - the buffer to compress.compressed - the compressed datapublic void decompress(java.nio.ByteBuffer compressed,
java.nio.IntBuffer buffer)
ICompressordecompress in interface ICompressor<java.nio.IntBuffer>compressed - the compressed databuffer - the buffer to fill with the uncompressed data.protected int nextPixel()
nextPixel in class PLIOCompressprotected void put(int index,
int pixel)
put in class PLIOCompress