public static class PLIOCompress.ShortPLIOCompressor extends PLIOCompress implements ICompressor<ShortBuffer>
PLIOCompress.BytePLIOCompressor, PLIOCompress.IntPLIOCompressor, PLIOCompress.ShortPLIOCompressor| Constructor and Description |
|---|
ShortPLIOCompressor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
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 |
nextPixel() |
protected void |
put(int index,
int pixel) |
compress, decompresspublic boolean compress(ShortBuffer buffer, ByteBuffer compressed)
ICompressorcompress in interface ICompressor<ShortBuffer>buffer - the buffer to compress.compressed - the compressed datapublic void decompress(ByteBuffer compressed, ShortBuffer buffer)
ICompressordecompress in interface ICompressor<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 PLIOCompressCopyright © 1996–2018 nom-tam-fits. All rights reserved.