public final class T4AndT6Compression extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
compressModifiedHuffman(byte[] uncompressed,
int width,
int height)
Compressed with the "Modified Huffman" encoding of section 10 in the
TIFF6 specification.
|
static byte[] |
compressT4_1D(byte[] uncompressed,
int width,
int height,
boolean hasFill) |
static byte[] |
compressT4_2D(byte[] uncompressed,
int width,
int height,
boolean hasFill,
int parameterK) |
static byte[] |
compressT6(byte[] uncompressed,
int width,
int height) |
static byte[] |
decompressModifiedHuffman(byte[] compressed,
int width,
int height)
Decompresses the "Modified Huffman" encoding of section 10 in the TIFF6
specification.
|
static byte[] |
decompressT4_1D(byte[] compressed,
int width,
int height,
boolean hasFill)
Decompresses T.4 1D encoded data.
|
static byte[] |
decompressT4_2D(byte[] compressed,
int width,
int height,
boolean hasFill)
Decompressed T.4 2D encoded data.
|
static byte[] |
decompressT6(byte[] compressed,
int width,
int height)
Decompress T.6 encoded data.
|
public static final int WHITE
public static final int BLACK
public static byte[] compressModifiedHuffman(byte[] uncompressed, int width, int height) throws ImageWriteException
uncompressed
- uncompressed byte datawidth
- image widthheight
- image heightImageWriteException
- if it fails to write the compressed datapublic static byte[] decompressModifiedHuffman(byte[] compressed, int width, int height) throws ImageReadException
compressed
- compressed byte datawidth
- image widthheight
- image heightImageReadException
- if it fails to read the compressed datapublic static byte[] compressT4_1D(byte[] uncompressed, int width, int height, boolean hasFill) throws ImageWriteException
ImageWriteException
public static byte[] decompressT4_1D(byte[] compressed, int width, int height, boolean hasFill) throws ImageReadException
compressed
- compressed byte datawidth
- image widthheight
- image heighthasFill
- used to check the end of lineImageReadException
- if it fails to read the compressed datapublic static byte[] compressT4_2D(byte[] uncompressed, int width, int height, boolean hasFill, int parameterK) throws ImageWriteException
ImageWriteException
public static byte[] decompressT4_2D(byte[] compressed, int width, int height, boolean hasFill) throws ImageReadException
compressed
- compressed byte datawidth
- image widthheight
- image heighthasFill
- used to check the end of lineImageReadException
- if it fails to read the compressed datapublic static byte[] compressT6(byte[] uncompressed, int width, int height) throws ImageWriteException
ImageWriteException
public static byte[] decompressT6(byte[] compressed, int width, int height) throws ImageReadException
compressed
- compressed byte datawidth
- image widthheight
- image heightImageReadException
- if it fails to read the compressed dataCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.