public enum Compression extends Enum<Compression>
Enum Constant and Description |
---|
B44
Channels of type HALF are split into blocks of four by four pixels or 32
bytes.
|
B44A
The same as
B44 , but the flat fields are compressed more. |
NONE
No compression is applied at all.
|
PIZ
A wavelet transform is applied to the pixel data, and the result is
Huffman-encoded.
|
PXR24
After reducing 32-bit floating-point data to 24 bits by rounding,
differences between horizontally adjacent pixels are compressed with
zlib, similar to ZIP.
|
RLE
Differences between horizontally adjacent pixels are run-length encoded.
|
ZIP
Differences between horizontally adjacent pixels are compressed using the
open source zlib library.
|
ZIPS
The same as
ZIP , but just one scan line at a time. |
Modifier and Type | Method and Description |
---|---|
boolean |
isLossless()
Indicates the kind of compression method.
|
int |
numScanLines()
Returns the maximum number of scan lines processed in a single
compression or decompression run.
|
static Compression |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Compression[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Compression NONE
public static final Compression RLE
public static final Compression ZIPS
ZIP
, but just one scan line at a time.ZIP
public static final Compression ZIP
Differences between horizontally adjacent pixels are compressed using the open source zlib library. ZIP decompression is faster than PIZ decompression, but ZIP compression is significantly slower. Photographic images tend to shrink to between 45 and 55 percent of their uncompressed size.
Multiresolution files are often used as texture maps for 3D renderers. For this application, fast read accesses are usually more important than fast writes, or maximum compression. For texture maps, ZIP is probably the best compression method.
This method encodes in blocks of 16 scan lines.
public static final Compression PIZ
public static final Compression PXR24
public static final Compression B44
public static final Compression B44A
B44
, but the flat fields are compressed more.B44
public static Compression[] values()
for (Compression c : Compression.values()) System.out.println(c);
public static Compression 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 nullpublic boolean isLossless()
true
if the method is lossless, false
if it is lossy.public int numScanLines()