mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-10-03 23:53:15 -04:00
CCITT EncodedByteAlign now default for RLE, always overridable.
This commit is contained in:
@@ -72,7 +72,8 @@ final class CCITTFaxDecoderStream extends FilterInputStream {
|
||||
|
||||
/**
|
||||
* Creates a CCITTFaxDecoderStream.
|
||||
* This is used for CCITT streams from PDF files, which use EncodedByteAlign.
|
||||
* This constructor may be used for CCITT streams embedded in PDF files,
|
||||
* which use EncodedByteAlign.
|
||||
*
|
||||
* @param stream the compressed CCITT stream.
|
||||
* @param columns the number of columns in the stream.
|
||||
@@ -144,7 +145,7 @@ final class CCITTFaxDecoderStream extends FilterInputStream {
|
||||
*/
|
||||
public CCITTFaxDecoderStream(final InputStream stream, final int columns, final int type, final int fillOrder,
|
||||
final long options) {
|
||||
this(stream, columns, type, fillOrder, options, false);
|
||||
this(stream, columns, type, fillOrder, options, type == TIFFBaseline.COMPRESSION_CCITT_MODIFIED_HUFFMAN_RLE);
|
||||
}
|
||||
|
||||
private void fetch() throws IOException {
|
||||
|
Reference in New Issue
Block a user