public static class RiceCompressor.ByteRiceCompressor extends RiceCompressor<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(ByteBuffer buffer,
ByteBuffer writeBuffer)
compress the buffer into the byte buffer.
|
void |
decompress(ByteBuffer readBuffer,
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(ByteBuffer buffer, ByteBuffer writeBuffer)
ICompressorbuffer - the buffer to compress.writeBuffer - the compressed datapublic void decompress(ByteBuffer readBuffer, ByteBuffer buffer)
ICompressorreadBuffer - the compressed databuffer - the buffer to fill with the uncompressed data.protected int nextPixel()
nextPixel in class RiceCompressor<ByteBuffer>protected void nextPixel(int pixel)
nextPixel in class RiceCompressor<ByteBuffer>Copyright © 1996–2018 nom-tam-fits. All rights reserved.