public enum TiffCompression extends java.lang.Enum<TiffCompression> implements loci.common.enumeration.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 |
JPEGXR |
LURAWAVE |
LZW |
NIKON |
OLD_JPEG |
OLYMPUS_JPEG2000 |
PACK_BITS |
PROPRIETARY_DEFLATE |
THUNDERSCAN |
UNCOMPRESSED |
ZSTD |
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 java.lang.String |
codecName
Name of the TIFF compression codec.
|
private static org.slf4j.Logger |
LOGGER |
private static java.util.Map<java.lang.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() |
java.lang.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 java.util.Map<java.lang.Integer,TiffCompression> |
getCompressionMap() |
static void |
undifference(byte[] input,
IFD ifd)
Undoes in-place differencing according to the given predictor value.
|
static TiffCompression |
valueOf(java.lang.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
public static final TiffCompression JPEGXR
public static final TiffCompression ZSTD
private static final org.slf4j.Logger LOGGER
private int code
private Codec codec
private java.lang.String codecName
private static final java.util.Map<java.lang.Integer,TiffCompression> lookup
public static TiffCompression[] values()
for (TiffCompression c : TiffCompression.values()) System.out.println(c);
public static TiffCompression valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullprivate static java.util.Map<java.lang.Integer,TiffCompression> getCompressionMap()
public static TiffCompression get(int code)
code
- Integer "code" for the TIFF compression type.public int getCode()
getCode
in interface loci.common.enumeration.CodedEnum
public java.lang.String getCodecName()
public byte[] decompress(byte[] input, CodecOptions options) throws FormatException, java.io.IOException
FormatException
java.io.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, java.io.IOException
FormatException
java.io.IOException
public static void difference(byte[] input, IFD ifd) throws FormatException
FormatException
Copyright © 2022 Open Microscopy Environment