public static class RiceCompressor.ByteRiceCompressor extends RiceCompressor<java.nio.ByteBuffer>
RiceCompressor.ByteRiceCompressor, RiceCompressor.DoubleRiceCompressor, RiceCompressor.FloatRiceCompressor, RiceCompressor.IntRiceCompressor, RiceCompressor.ShortRiceCompressor| Constructor and Description |
|---|
ByteRiceCompressor(RiceCompressOption option) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compress(java.nio.ByteBuffer buffer,
java.nio.ByteBuffer writeBuffer)
compress the buffer into the byte buffer.
|
void |
decompress(java.nio.ByteBuffer readBuffer,
java.nio.ByteBuffer 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, decompressBufferpublic ByteRiceCompressor(RiceCompressOption option)
public boolean compress(java.nio.ByteBuffer buffer,
java.nio.ByteBuffer writeBuffer)
ICompressorbuffer - the buffer to compress.writeBuffer - the compressed datapublic void decompress(java.nio.ByteBuffer readBuffer,
java.nio.ByteBuffer buffer)
ICompressorreadBuffer - the compressed databuffer - the buffer to fill with the uncompressed data.protected int nextPixel()
nextPixel in class RiceCompressor<java.nio.ByteBuffer>protected void nextPixel(int pixel)
nextPixel in class RiceCompressor<java.nio.ByteBuffer>