public static class RiceCompressor.IntRiceCompressor extends RiceCompressor<IntBuffer>
RiceCompressor.ByteRiceCompressor, RiceCompressor.DoubleRiceCompressor, RiceCompressor.FloatRiceCompressor, RiceCompressor.IntRiceCompressor, RiceCompressor.ShortRiceCompressor
Constructor and Description |
---|
IntRiceCompressor(RiceCompressOption option) |
Modifier and Type | Method and Description |
---|---|
boolean |
compress(IntBuffer buffer,
ByteBuffer writeBuffer)
compress the buffer into the byte buffer.
|
void |
decompress(ByteBuffer readBuffer,
IntBuffer buffer)
Decompress the byte buffer and restore the buffer from it, again enough
space must already be allocated.
|
protected int |
nextPixel() |
protected void |
nextPixel(int pixel) |
compress, decompressBuffer
public IntRiceCompressor(RiceCompressOption option)
public boolean compress(IntBuffer buffer, ByteBuffer writeBuffer)
ICompressor
buffer
- the buffer to compress.writeBuffer
- the compressed datapublic void decompress(ByteBuffer readBuffer, IntBuffer buffer)
ICompressor
readBuffer
- the compressed databuffer
- the buffer to fill with the uncompressed data.protected int nextPixel()
nextPixel
in class RiceCompressor<IntBuffer>
protected void nextPixel(int pixel)
nextPixel
in class RiceCompressor<IntBuffer>
Copyright © 1996–2016 nom-tam-fits. All rights reserved.