public class LosslessJPEGCodec extends AbstractCodec
| Modifier and Type | Field and Description |
|---|---|
static int |
COM |
static int |
DAC |
static int |
DHP |
static int |
DHT |
static int |
DNL |
static int |
DQT |
static int |
DRI |
static int |
EOI |
static int |
EXP |
static int |
JPG |
static int |
RST_0 |
static int |
RST_1 |
static int |
RST_2 |
static int |
RST_3 |
static int |
RST_4 |
static int |
RST_5 |
static int |
RST_6 |
static int |
RST_7 |
static int |
SOF0 |
static int |
SOF1 |
static int |
SOF10 |
static int |
SOF11 |
static int |
SOF13 |
static int |
SOF14 |
static int |
SOF15 |
static int |
SOF2 |
static int |
SOF3 |
static int |
SOF5 |
static int |
SOF6 |
static int |
SOF7 |
static int |
SOF9 |
static int |
SOI |
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(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> in,
CodecOptions options)
The CodecOptions parameter should have the following fields set:
interleaved
littleEndian |
compress, decompress, decompress, decompress, decompress, testgetVersion, loggetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVersion, loggetIdentifiercontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationpublic static final int SOF0
public static final int SOF1
public static final int SOF2
public static final int SOF3
public static final int SOF5
public static final int SOF6
public static final int SOF7
public static final int JPG
public static final int SOF9
public static final int SOF10
public static final int SOF11
public static final int SOF13
public static final int SOF14
public static final int SOF15
public static final int DHT
public static final int DAC
public static final int RST_0
public static final int RST_1
public static final int RST_2
public static final int RST_3
public static final int RST_4
public static final int RST_5
public static final int RST_6
public static final int RST_7
public static final int SOI
public static final int EOI
public static final int SOS
public static final int DQT
public static final int DNL
public static final int DRI
public static final int DHP
public static final int EXP
public static final int COM
public byte[] compress(byte[] data,
CodecOptions options)
throws FormatException
Codecdata - 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(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> in, CodecOptions options) throws FormatException, IOException
interleaved
littleEndianin - 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(DataHandle, CodecOptions)Copyright © 2011–2026 SCIFIO. All rights reserved.