mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-03 03:25:28 -04:00
Merge pull request #255 from Schmidor/ccitt_getnextchangingelement
Fix getNextChangingElement
This commit is contained in:
commit
3d36159982
@ -221,7 +221,11 @@ final class CCITTFaxDecoderStream extends FilterInputStream {
|
||||
}
|
||||
|
||||
private int getNextChangingElement(final int a0, final boolean white) throws IOException {
|
||||
int start = (lastChangingElement & 0xFFFF_FFFC) + (white ? 0 : 1);
|
||||
int start = (lastChangingElement & 0xFFFF_FFFE) + (white ? 0 : 1);
|
||||
if (start > 2) {
|
||||
start -= 2;
|
||||
}
|
||||
|
||||
if (a0 == 0) {
|
||||
return start;
|
||||
}
|
||||
|
@ -97,6 +97,7 @@ public class TIFFImageReaderTest extends ImageReaderAbstractTest<TIFFImageReader
|
||||
new TestData(getClassLoaderResource("/tiff/ccitt/group4.tif"), new Dimension(6, 4)), // B/W, CCITT T6 1D
|
||||
new TestData(getClassLoaderResource("/tiff/ccitt_tolessrows.tif"), new Dimension(6, 6)), // CCITT, metadata claiming 6 rows, stream contains only 4
|
||||
new TestData(getClassLoaderResource("/tiff/fivepages-scan-causingerrors.tif"), new Dimension(2480, 3518)), // B/W, CCITT T4
|
||||
new TestData(getClassLoaderResource("/tiff/CCITTgetNextChangingElement.tif"), new Dimension(2402,195)),
|
||||
// CIELab
|
||||
new TestData(getClassLoaderResource("/tiff/ColorCheckerCalculator.tif"), new Dimension(798, 546)), // CIELab 8 bit/sample
|
||||
// Gray
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user