| Constructor and Description |
|---|
JPEGCodec() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
compress(byte[] data,
CodecOptions options)
The CodecOptions parameter should have the following fields set:
width
height
channels
bitsPerSample
interleaved
littleEndian
signed |
byte[] |
decompress(loci.common.RandomAccessInputStream in,
CodecOptions options)
The CodecOptions parameter should have the following fields set:
interleaved
littleEndian |
compress, decompress, decompress, decompress, decompress, testpublic byte[] compress(byte[] data,
CodecOptions options)
throws FormatException
width
height
channels
bitsPerSample
interleaved
littleEndian
signeddata - 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.Codec.compress(byte[], CodecOptions)public byte[] decompress(loci.common.RandomAccessInputStream in,
CodecOptions options)
throws FormatException,
IOException
interleaved
littleEndiandecompress in interface Codecdecompress in class BaseCodecin - 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.IOExceptionCodec.decompress(RandomAccessInputStream, CodecOptions)Copyright © 2017 Open Microscopy Environment