mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2026-04-30 00:00:01 -04:00
#257, #229: Fixed LZW writing for < 8 bit, fixed StripByteCounts for uncompressed < 8 bit, disabled Predictor for < 8 bit.
Bonus rework of sequence writing and restored writing of uncompressed data for less fseeking.
This commit is contained in:
+1
-1
@@ -1605,7 +1605,7 @@ public abstract class ImageReaderAbstractTest<T extends ImageReader> {
|
||||
/**
|
||||
* Slightly fuzzy RGB equals method. Variable tolerance.
|
||||
*/
|
||||
protected void assertRGBEquals(String message, int expectedRGB, int actualRGB, int tolerance) {
|
||||
public static void assertRGBEquals(String message, int expectedRGB, int actualRGB, int tolerance) {
|
||||
assertEquals(message, (expectedRGB >>> 24) & 0xff, (actualRGB >>> 24) & 0xff, 0);
|
||||
assertEquals(message, (expectedRGB >> 16) & 0xff, (actualRGB >> 16) & 0xff, tolerance);
|
||||
assertEquals(message, (expectedRGB >> 8) & 0xff, (actualRGB >> 8) & 0xff, tolerance);
|
||||
|
||||
Reference in New Issue
Block a user