public static class PLIOCompress.ShortPLIOCompressor extends PLIOCompress implements ICompressor<java.nio.ShortBuffer>
PLIOCompress.BytePLIOCompressor, PLIOCompress.IntPLIOCompressor, PLIOCompress.ShortPLIOCompressor| Constructor and Description |
|---|
ShortPLIOCompressor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compress(java.nio.ShortBuffer buffer,
java.nio.ByteBuffer compressed)
compress the buffer into the byte buffer.
|
void |
decompress(java.nio.ByteBuffer compressed,
java.nio.ShortBuffer 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.ShortBuffer buffer,
java.nio.ByteBuffer compressed)
ICompressorcompress in interface ICompressor<java.nio.ShortBuffer>buffer - the buffer to compress.compressed - the compressed datapublic void decompress(java.nio.ByteBuffer compressed,
java.nio.ShortBuffer buffer)
ICompressordecompress in interface ICompressor<java.nio.ShortBuffer>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