public static class QuantizeProcessor.DoubleQuantCompressor extends QuantizeProcessor implements ICompressor<DoubleBuffer>
QuantizeProcessor.DoubleQuantCompressor, QuantizeProcessor.FloatQuantCompressor
quantizeOption
Constructor and Description |
---|
DoubleQuantCompressor(QuantizeOption quantizeOption,
ICompressor<IntBuffer> postCompressor) |
Modifier and Type | Method and Description |
---|---|
boolean |
compress(DoubleBuffer buffer,
ByteBuffer compressed)
compress the buffer into the byte buffer.
|
void |
decompress(ByteBuffer compressed,
DoubleBuffer buffer)
Decompress the byte buffer and restore the buffer from it, again enough
space must already be allocated.
|
getQuantize, quantize, quantize, unquantize
public DoubleQuantCompressor(QuantizeOption quantizeOption, ICompressor<IntBuffer> postCompressor)
public boolean compress(DoubleBuffer buffer, ByteBuffer compressed)
ICompressor
compress
in interface ICompressor<DoubleBuffer>
buffer
- the buffer to compress.compressed
- the compressed datapublic void decompress(ByteBuffer compressed, DoubleBuffer buffer)
ICompressor
decompress
in interface ICompressor<DoubleBuffer>
compressed
- the compressed databuffer
- the buffer to fill with the uncompressed data.Copyright © 1996–2016 nom-tam-fits. All rights reserved.