Modifier and Type | Field and Description |
---|---|
private static int[] |
DEFAULT_LINEARIZATION_TABLE |
private static short[] |
LOSSLESS_DECODER_CONFIGURATION_12 |
private static short[] |
LOSSLESS_DECODER_CONFIGURATION_14 |
private static short[] |
LOSSY_DECODER_CONFIGURATION_12 |
private static short[] |
LOSSY_DECODER_CONFIGURATION_14 |
private static short[] |
SPLIT_LOSSY_DECODER_CONFIGURATION_12 |
private static short[] |
SPLIT_LOSSY_DECODER_CONFIGURATION_14 |
Constructor and Description |
---|
NikonCodec() |
Modifier and Type | Method and Description |
---|---|
byte[] |
compress(byte[] data,
CodecOptions options)
Compresses a block of data.
|
byte[] |
decompress(RandomAccessInputStream in,
CodecOptions options)
The CodecOptions parameter must be an instance of
NikonCodecOptions , and should have the following fields set:
lossless
vPredictor
curve
split
bitsPerSample
maxBytes
width
height |
compress, decompress, decompress, decompress, decompress, test
private static final int[] DEFAULT_LINEARIZATION_TABLE
private static final short[] LOSSY_DECODER_CONFIGURATION_12
private static final short[] SPLIT_LOSSY_DECODER_CONFIGURATION_12
private static final short[] LOSSLESS_DECODER_CONFIGURATION_12
private static final short[] LOSSY_DECODER_CONFIGURATION_14
private static final short[] SPLIT_LOSSY_DECODER_CONFIGURATION_14
private static final short[] LOSSLESS_DECODER_CONFIGURATION_14
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
NikonCodecOptions
, and should have the following fields set:
lossless
vPredictor
curve
split
bitsPerSample
maxBytes
width
height
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)
Copyright © 2016 Open Microscopy Environment