Modifier and Type | Field and Description |
---|---|
private static int |
COM |
private static int |
DAC |
private static int |
DHP |
private static int |
DHT |
private static int |
DNL |
private static int |
DQT |
private static int |
DRI |
private static int |
EOI |
private static int |
EXP |
private static int |
JPG |
private static int |
RST_0 |
private static int |
RST_1 |
private static int |
RST_2 |
private static int |
RST_3 |
private static int |
RST_4 |
private static int |
RST_5 |
private static int |
RST_6 |
private static int |
RST_7 |
private static int |
SOF0 |
private static int |
SOF1 |
private static int |
SOF10 |
private static int |
SOF11 |
private static int |
SOF13 |
private static int |
SOF14 |
private static int |
SOF15 |
private static int |
SOF2 |
private static int |
SOF3 |
private static int |
SOF5 |
private static int |
SOF6 |
private static int |
SOF7 |
private static int |
SOF9 |
private static int |
SOI |
private static int |
SOS |
Constructor and Description |
---|
LosslessJPEGCodec() |
Modifier and Type | Method and Description |
---|---|
byte[] |
compress(byte[] data,
CodecOptions options)
Compresses a block of data.
|
byte[] |
decompress(loci.common.RandomAccessInputStream in,
CodecOptions options)
The CodecOptions parameter should have the following fields set:
interleaved
littleEndian |
compress, decompress, decompress, decompress, decompress, test
private static final int SOF0
private static final int SOF1
private static final int SOF2
private static final int SOF3
private static final int SOF5
private static final int SOF6
private static final int SOF7
private static final int JPG
private static final int SOF9
private static final int SOF10
private static final int SOF11
private static final int SOF13
private static final int SOF14
private static final int SOF15
private static final int DHT
private static final int DAC
private static final int RST_0
private static final int RST_1
private static final int RST_2
private static final int RST_3
private static final int RST_4
private static final int RST_5
private static final int RST_6
private static final int RST_7
private static final int SOI
private static final int EOI
private static final int SOS
private static final int DQT
private static final int DNL
private static final int DRI
private static final int DHP
private static final int EXP
private static final int COM
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(loci.common.RandomAccessInputStream in, CodecOptions options) throws FormatException, IOException
interleaved
littleEndian
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 © 2017 Open Microscopy Environment