public enum TiffCompression extends Enum<TiffCompression> implements CodedEnum
Enum Constant and Description |
---|
ALT_JPEG |
ALT_JPEG2000 |
CCITT_1D |
DEFAULT_UNCOMPRESSED |
DEFLATE |
GROUP_3_FAX |
GROUP_4_FAX |
JPEG |
JPEG_2000 |
JPEG_2000_LOSSY |
LURAWAVE |
LZW |
NIKON |
OLD_JPEG |
OLYMPUS_JPEG2000 |
PACK_BITS |
PROPRIETARY_DEFLATE |
THUNDERSCAN |
UNCOMPRESSED |
Modifier and Type | Field and Description |
---|---|
private int |
code
Code for the TIFF compression in the actual TIFF file.
|
private Codec |
codec
TIFF compression codec.
|
private String |
codecName
Name of the TIFF compression codec.
|
private static org.slf4j.Logger |
LOGGER |
private static Map<Integer,TiffCompression> |
lookup
Reverse lookup of code to TIFF compression enumerate value.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
compress(byte[] input,
CodecOptions options)
Encodes a strip of data.
|
byte[] |
decompress(byte[] input,
CodecOptions options)
Decodes a strip of data.
|
static void |
difference(byte[] input,
IFD ifd)
Performs in-place differencing according to the given predictor value.
|
static TiffCompression |
get(int code)
Retrieves a TIFF compression instance by code.
|
int |
getCode()
Retrieves the integer "code" for this enumeration.
|
String |
getCodecName()
Retrieves the name of the TIFF compression codec.
|
CodecOptions |
getCompressionCodecOptions(IFD ifd)
Creates a set of codec options for compression.
|
CodecOptions |
getCompressionCodecOptions(IFD ifd,
CodecOptions opt)
Creates a set of codec options for compression.
|
private static Map<Integer,TiffCompression> |
getCompressionMap() |
static void |
undifference(byte[] input,
IFD ifd)
Undoes in-place differencing according to the given predictor value.
|
static TiffCompression |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TiffCompression[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TiffCompression DEFAULT_UNCOMPRESSED
public static final TiffCompression UNCOMPRESSED
public static final TiffCompression CCITT_1D
public static final TiffCompression GROUP_3_FAX
public static final TiffCompression GROUP_4_FAX
public static final TiffCompression LZW
public static final TiffCompression OLD_JPEG
public static final TiffCompression JPEG
public static final TiffCompression PACK_BITS
public static final TiffCompression PROPRIETARY_DEFLATE
public static final TiffCompression DEFLATE
public static final TiffCompression THUNDERSCAN
public static final TiffCompression JPEG_2000
public static final TiffCompression JPEG_2000_LOSSY
public static final TiffCompression ALT_JPEG2000
public static final TiffCompression ALT_JPEG
public static final TiffCompression OLYMPUS_JPEG2000
public static final TiffCompression NIKON
public static final TiffCompression LURAWAVE
private static final org.slf4j.Logger LOGGER
private int code
private Codec codec
private String codecName
private static final Map<Integer,TiffCompression> lookup
public static TiffCompression[] values()
for (TiffCompression c : TiffCompression.values()) System.out.println(c);
public static TiffCompression valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprivate static Map<Integer,TiffCompression> getCompressionMap()
public static TiffCompression get(int code)
code
- Integer "code" for the TIFF compression type.public int getCode()
CodedEnum
public String getCodecName()
public byte[] decompress(byte[] input, CodecOptions options) throws FormatException, IOException
FormatException
IOException
public static void undifference(byte[] input, IFD ifd) throws FormatException
FormatException
public CodecOptions getCompressionCodecOptions(IFD ifd) throws FormatException
ifd
- The IFD to create codec options for.ifd
.FormatException
public CodecOptions getCompressionCodecOptions(IFD ifd, CodecOptions opt) throws FormatException
ifd
- The IFD to create codec options for.opt
- The codec options to copy.ifd
.FormatException
public byte[] compress(byte[] input, CodecOptions options) throws FormatException, IOException
FormatException
IOException
public static void difference(byte[] input, IFD ifd) throws FormatException
FormatException
Copyright © 2016 Open Microscopy Environment