Constructor and Description |
---|
QTRLECodec() |
Modifier and Type | Method and Description |
---|---|
byte[] |
compress(byte[] data,
CodecOptions options)
Compresses a block of data.
|
byte[] |
decompress(byte[] data,
CodecOptions options)
The CodecOptions parameter should have the following fields set:
width
height
bitsPerSample
previousImage |
byte[] |
decompress(RandomAccessInputStream in,
CodecOptions options)
Decompresses data from the given RandomAccessInputStream.
|
compress, decompress, decompress, decompress, test
public byte[] compress(byte[] data, CodecOptions options) throws FormatException
Codec
data
- 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(RandomAccessInputStream in, CodecOptions options) throws FormatException, IOException
Codec
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
public byte[] decompress(byte[] data, CodecOptions options) throws FormatException
width
height
bitsPerSample
previousImage
decompress
in interface Codec
decompress
in class BaseCodec
data
- the data to be decompressedoptions
- Options to be used during decompression.FormatException
- If data is not valid.Codec.decompress(byte[], CodecOptions)
Copyright © 2015 Open Microscopy Environment