public static class PLIOCompress.BytePLIOCompressor extends PLIOCompress implements ICompressor<ByteBuffer>
PLIOCompress.BytePLIOCompressor, PLIOCompress.IntPLIOCompressor, PLIOCompress.ShortPLIOCompressor
Constructor and Description |
---|
BytePLIOCompressor() |
Modifier and Type | Method and Description |
---|---|
boolean |
compress(ByteBuffer buffer,
ByteBuffer compressed)
compress the buffer into the byte buffer.
|
void |
decompress(ByteBuffer compressed,
ByteBuffer 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, decompress
public boolean compress(ByteBuffer buffer, ByteBuffer compressed)
ICompressor
compress
in interface ICompressor<ByteBuffer>
buffer
- the buffer to compress.compressed
- the compressed datapublic void decompress(ByteBuffer compressed, ByteBuffer buffer)
ICompressor
decompress
in interface ICompressor<ByteBuffer>
compressed
- the compressed databuffer
- the buffer to fill with the uncompressed data.protected int nextPixel()
nextPixel
in class PLIOCompress
protected void put(int index, int pixel)
put
in class PLIOCompress
Copyright © 1996–2016 nom-tam-fits. All rights reserved.