Package ome.codecs
Class JPEG2000Codec
- java.lang.Object
-
- ome.codecs.BaseCodec
-
- ome.codecs.JPEG2000Codec
-
-
Constructor Summary
Constructors Constructor Description JPEG2000Codec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
compress(byte[] data, CodecOptions options)
The CodecOptions parameter should have the following fields set:width
height
bitsPerSample
channels
interleaved
littleEndian
lossless
byte[]
decompress(byte[] buf, CodecOptions options)
The CodecOptions parameter should have the following fields set:interleaved
littleEndian
byte[]
decompress(loci.common.RandomAccessInputStream in, CodecOptions options)
The CodecOptions parameter should have the following fields set:interleaved
littleEndian
-
Methods inherited from class ome.codecs.BaseCodec
compress, compress, decompress, decompress, decompress, test
-
-
-
-
Method Detail
-
compress
public byte[] compress(byte[] data, CodecOptions options) throws CodecException
The CodecOptions parameter should have the following fields set:width
height
bitsPerSample
channels
interleaved
littleEndian
lossless
- Parameters:
data
- The data to be compressed.options
- Options to be used during compression, if appropriate.- Returns:
- The compressed data.
- Throws:
CodecException
- If input is not a compressed data block of the appropriate type.- See Also:
Codec.compress(byte[], CodecOptions)
-
decompress
public byte[] decompress(loci.common.RandomAccessInputStream in, CodecOptions options) throws CodecException, IOException
The CodecOptions parameter should have the following fields set:interleaved
littleEndian
- Specified by:
decompress
in interfaceCodec
- Specified by:
decompress
in classBaseCodec
- Parameters:
in
- The stream from which to read compressed data.options
- Options to be used during decompression.- Returns:
- The decompressed data.
- Throws:
CodecException
- If data is not valid compressed data for this decompressor.IOException
- See Also:
Codec.decompress(RandomAccessInputStream, CodecOptions)
-
decompress
public byte[] decompress(byte[] buf, CodecOptions options) throws CodecException
The CodecOptions parameter should have the following fields set:interleaved
littleEndian
- Specified by:
decompress
in interfaceCodec
- Overrides:
decompress
in classBaseCodec
- Parameters:
buf
- the data to be decompressedoptions
- Options to be used during decompression.- Returns:
- the decompressed data.
- Throws:
CodecException
- If data is not valid.- See Also:
Codec.decompress(byte[], CodecOptions)
-
-