Modifier and Type | Field and Description |
---|---|
private int |
pixelPtr |
private int |
rowPtr |
private int |
stride |
private int |
totalBlocks |
Constructor and Description |
---|
RPZACodec() |
Modifier and Type | Method and Description |
---|---|
byte[] |
compress(byte[] input,
CodecOptions options)
Compresses a block of data.
|
byte[] |
decompress(loci.common.RandomAccessInputStream in,
CodecOptions options)
|
private void |
unpack(short s,
byte[] array,
int offset,
int len) |
private void |
updateBlock(int width) |
compress, decompress, decompress, decompress, decompress, test
private int totalBlocks
private int pixelPtr
private int rowPtr
private int stride
public byte[] compress(byte[] input, CodecOptions options) throws FormatException
Codec
input
- The data to be compressed.options
- Options to be used during compression, if appropriate.FormatException
- If input is not a compressed data block of the
appropriate type.public byte[] decompress(loci.common.RandomAccessInputStream in, CodecOptions options) throws FormatException, IOException
decompress
in interface Codec
decompress
in class BaseCodec
in
- The stream from which to read compressed data.options
- Options to be used during decompression.FormatException
- If data is not valid compressed data for this
decompressor.IOException
Codec.decompress(RandomAccessInputStream, CodecOptions)
private void unpack(short s, byte[] array, int offset, int len)
private void updateBlock(int width)
Copyright © 2017 Open Microscopy Environment